[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Routing doesn't start automatically



On 14 Oct 2002, 14:48:49, Andrew Perrin wrote
> In setting up my new machine, I've run into an odd problem.  When the
> machine boots, the routing table doesn't get restored correctly.  I have
> to type the following:

Either your Gateway or your NetMask are set incorrectly.

If your NetMask really is 255.255.255.252, then with an IP address of 192.168.0.14,
the ONLY valid Gateway address is 192.168.0.13 and NOT .0.3 (did you mae
a typo here?)

If your gateway really is 192.168.0.3, then your netmask has to be 255.255.255.240
(a /28) or less (.0, .128, .192, or .224 (/24, /25, /26, or /27, respectively)
).

> route add 192.168.0.3 eth0
> route add default gw 192.168.0.3
> 
> in order to use any networking.
> 
> Here's my /etc/network/interfaces:
> # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
> 
> # The loopback interface
> auto lo
> iface lo inet loopback
> 
> # The first network card - this entry was created during the Debian
> installation
> # (network, broadcast and gateway are optional)
> auto eth0
> iface eth0 inet static
>         address 192.168.0.14
>         netmask 255.255.255.252
>         network 192.168.0.12
>         broadcast 192.168.0.15
>         gateway 192.168.0.3
> 
> 
> 
> Any ideas?
> 
> ----------------------------------------------------------------------
> Andrew J Perrin - http://www.unc.edu/~aperrin
> Assistant Professor of Sociology, U of North Carolina, Chapel Hill
> clists@perrin.socsci.unc.edu * andrew_perrin (at) unc.edu
> 
> 
> 


-- 
Doug MacFarlane
madmac@covad.net



Reply to: