RE: [ILUG] static routing

From: Ger Gorman (gormo at domain epona.physics.ucg.ie)
Date: Mon 11 Oct 1999 - 21:35:24 IST


>
> > ok..I've rtfm'ed and I still can't find an answer. Just for the hell of it
> > I included an entry to the routing table (using route add ...) to explicity
> > state that packets sent to gonzo.ie are routed through lo. (gonzo.ie being
> > the name of the local host). On a reboot I find that when I do a netstat -rn
> > the device for gonzo.ie is set to eth0!!! I've tested this a few times.
> >
> > Does anyone know what changes the table and why? A simple yes answer will not do!
>
> What distribution? Different distributions store the network
> configuration stuff in different places.
>
> And let's see the output of netstat -rn.
>
> Kenn
I'm running rh6.0.

table before rebooting:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
140.203.1.130 0.0.0.0 255.255.255.255 UH 0 0 0 lo
192.168.2.2 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
140.203.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

table after rebooting:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
140.203.1.130 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
192.168.2.2 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
140.203.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

what do you think....

am I also right in thinking that the kernel edits the table if it finds a particular network unreachable?

ger.



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:42 GMT