adding localhost route

Jeff Coy Jr. (jcoy@flash.net)
Thu, 29 May 1997 10:28:26 -0700 (MST)


I've not been able to add a route for localhost since I started
using beta kernels (around 2.1.36). I can ifconfig the device ok, but
route complains there is no such device.

I am using the commands:

ifconfig lo 127.0.0.1 netmask 255.0.0.0
route add -net 127.0.0.0 netmask 255.0.0.0

once I have ifconfig'd the device, I can use it (ie: telnet 127.0.0.1
works), but I can't get it to show up in the routing tables
(attempts to add the route give SIOADDRT: No such device).

I am currently using net-tools v1.41, kernel v2.1.41, and am doing SMP on
a duel ppro-166. I can provide more details if needed (strace output &c),
but my guess is this is a simple operator error.

Thanks-
jeff