[Coco] Linux box needs ethernet connection to router/web/LAN

Gene Heskett gene.heskett at verizon.net
Tue Apr 24 10:22:23 EDT 2007

On Tuesday 24 April 2007, Manney wrote:
>Manney wrote:
>I'm getting really pissed off with this thing now! (No comments about
>Thunderbird, please! ;) )
>>>> mannequin at emil:~$ cat /etc/hosts
>>>>       localhost
>>>>       emil
>>>> ...
>>>> 'emil' being my laptop's name.
Then you have emil on a different subnet entirely and may have to jump through 
flaming hoops to get the routing to work.

It is much preferred to have everything on the same subnet, and as part of my 
own security model, I don't use the common, everybodies routers default to it  As none of the 192.168.x.x is ever transmitted across a router 
to the modem/wan port by any compliant router without the router invoking 
some iptables NAT and MASQUERADE rules, one can reset the to 
192.168.xx.1 where xx is the subdomain your network is on, but the xx, at 
least in a home network environment (depends on your MASK, usually must match for all machines.  That gives you 253 usable 
addresses and that should be enough for most home networks.  If you need >254 
<510 addresses, then the mask becomes etc etc.

Here I use an /etc/hosts file which contains the FQDN to address relations for 
all local machines, including some that are history.  Yours could resemble 
this in format:
# Do not remove the following line, or various programs
# that require network functionality will fail.	localhost.localdomain	localhost
192.168.xx.	domain	coyote.den
192.168.xx.1	router.coyote.den	router
# this is my old, now shutdown firewall box
# 192.168.xx.1	gene.coyote.den		gene
# and my poor old amiga 2k if I ever resuscitate it
192.168.xx.2	amiga.coyote.den	amiga
192.168.xx.3	coyote.coyote.den	coyote
192.168.xx.4	shop.coyote.den		shop
192.168.xx.15	ipaq.coyote.den		ipaq
192.168.xx.101	wap11.coyote.den	wap11
# my lappy comes in on dhcp so this is _usually_ correct
192.168.xx.104  diablo.coyote.den	diablo

I hope this helps explain the network requirements, at least for this aspect 
of it, for those who are just now getting their feet wet.

Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
The Law of the Letter:
	The best way to inspire fresh thoughts is to seal the envelope.

More information about the Coco mailing list