LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] static routing

[ILUG] static routing

Dave Rynne dave at esat.net
Mon Oct 11 22:25:59 IST 1999


) 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....

Digging around in /etc/sysconfig/network-scripts reveals
        #note the trailing space in the grep gets rid of aliases
        grep "^$1 " /etc/sysconfig/static-routes | while read device args; do
            /sbin/route add -$args $device
        done

in ifup-routes.

So try something putting something like
"lo 140.203.1.130 netmask 255.255.255.255"
in /etc/sysconfig/static-routes and see if it makes a difference.

BTW -- is 140.203.1.130 assigned to eth0 ?? That would prob explain
why it keeps resetting upon reboot.

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


Dave (kinda confused as what you're trying to achieve above).




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell