On Mon, 15 Sep 2008, reinhardgruber2000 wrote:
> from where does the system know the subnetmask for eth0?
> my linuxrc file looks like:
>
> ...
> hostname ts7000
> ifconfig lo 127.0.0.1 up
> route add -net 127.0.0.0 netmask 255.0.0.0 lo
> ifconfig eth0 192.168.0.50 up
> #route add default gateway 192.168.0.1 eth0
> /sbin/telnetd
In the absense of you telling it the subnet mask, it will use the default
one. 192.168.0.0 is in the class C subnet range and hence has a default
subnet mask of 24 bits, or 255.255.255.0
see
http://www.tcpipguide.com/free/t_IPDefaultSubnetMasksForAddressClassesABandC.htm
for more info
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|