hmm. I see now where I was going wrong. I thought the route command
wrote a static route table. duh.
I still don't understand though why the local host isn't by default
set to to through lo.
helps loads (reading nag.html now!)
Ger.
> Under RH5.x and RH6.x static routes are configured by either
> linuxconf or the file /etc/sysconfig/static-routes. Take a look
> at the script /etc/sysconfig/network-scripts/ifup-routes.
>> If you are using linuxconf, then I can't help you.
>> If you are not, then create the static-routes file something like this:
>> eth0 host 140.203.1.130 netmask 255.255.255.255
>> The first field is the name of the interface that this route
> will go through. The remainder is all the other arguments
> to a 'route' command (less the '-' in -host or -net) so the
> above line corresponds to
>> # route add -host 140.203.1.130 netmask 255.255.255.255 eth0
>> There should not be any space before the interface name at the
> beginning of the line.
>> If you bring up the eth0 network via the Redhat scripts (i.e.
> _not_ by doing 'ifconfig eth0 up') then this route will be added.
>> > am I also right in thinking that the kernel edits the table if
> > it finds a particular network unreachable?
>> No. A routing daemon using one of the Internet routing protocols
> (such as RIP, OSPF, etc) will talk to other routers and exchange
> info about which networks are accessible and update the routing
> table accordingly (by doing the equivalent of /sbin/route add
> and /sbin/route del). The kernel itself won't.
>> Note that you probably _don't_ want to run a routing daemon.
> Easily 99% of all scenarios can be handled simply without one.
> And 99% of them won't need static routes either. A misconfigured
> routing daemon can cause all sorts of grief.
>> For more info, take a look at the Linux Network Administator's
> Guide (which you probably have installed in /usr/doc/LDP/nag)
> for general networking info and the RedHat docs for the
> Redhat-specific stuff. Alternatively, take a look through
> etc/rc.d/init.d/network and the scripts in /etc/sysconfig/network-scripts.
> Much can be learned.
>> Hope this helps.
>> Later,
> Kenn
>>> --
> Irish Linux Users' Group: ilug at linux.ie>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie>
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!