Re: Routing table problems

Catalin Marinas (c_marinas@yahoo.com)
Thu, 29 Nov 2001 18:57:01 +0000 (GMT)


On Sat, 29 Dec 2001, Rajasekhar Inguva wrote:

> 4) ifconfig eth0 up
>
> After the the 4'th command, my interface is up and has it's IP address set
> correctly. But .....
>
> netstat -nr does not show my default gateway for network 0.0.0.0 !!.

ifconfig just brings the interface up, it does not set the routes. It is
not a kernel problem.

Usually, an interface is brought up by the /sbin/ifup (or
/etc/sysconfig/network-scripts/ifup) script which calls ifconfig and then
adds the default route by calling /sbin/route.

-- 
Catalin

_____________________________________________________________________ This message has been checked for all known viruses by the MessageLabs Virus Scanning Service. For further information visit http://www.messagelabs.com/stats.asp

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/