[lkml]   [2001]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
From: Colonel <>
In-reply-to: <>
Subject: Re: Routing table problems
References: <>

From: "Rajasekhar Inguva" <>
Date: Sat, 29 Dec 2001 17:17:48 +0530

I am facing a problem ( ???, maybe it works that way, but i really dont
know ) with regards to routing table behavior when using ifconfig on a
network interface.

1) netstat -nr Shows my default gateway for network

2) ifconfig eth0 down

3) netstat -nr No entry for the default gateway is shown (
understandable )

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 !!.
Pinging any IP outside of my subnet, results in "Network is unreachable"

While the linux kernel is certainly omnipotent, it's crystal ball is
sometimes hazy. How would it know what the default gateway should
be??? Typically after the interface is configured, you command:

/sbin/route add default gw $GATEWAY netmask metric 1

Some routing daemons will handle that for you, but even they need
appropriate configuration.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [W:0.021 / U:1.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site