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

Re: Ifup/ifdown



On Sun, Jan 11, 2004 at 03:15:41PM +1100, Russell Shaw wrote:
> I tried:
> 
>   auto lo eth0
>   iface lo inet loopback
>   iface eth0 inet static
>       address 192.168.0.1
>       netmask 255.255.255.0
>       network 192.168.0.0
>       gateway 127.0.0.1
> 
> but ifup -av gives:
> 
>   Configuring interface lo=lo (inet)
>   run-parts /etc/network/if-pre-up.d
>   ifconfig lo 127.0.0.1 up
>   run-parts /etc/network/if-up.d
>   Configuring interface eth0=eth0 (inet)
>   run-parts /etc/network/if-pre-up.d
>   ifconfig eth0 192.168.0.1 netmask 255.255.255.0                  up
>    route add default gw 127.0.0.1 eth0
>   SIOCADDRT: Network is unreachable
> 
> I see this as wrong: route add default gw 127.0.0.1 eth0
> 
> I downloaded the source and read the docs, but didn't help.

The addresses that beginning with 127. (a.k.a. loopback address)is
reserved for use in testing network. 
the protocol softwares don't deak with such address.

Assign another one on it, and then retry!

I hope it'd be help.



Reply to: