Re: adding localhost route

A.N.Kuznetsov (kuznet@ms2.inr.ac.ru)
Sun, 20 Jul 1997 22:46:21 +0400


In article <Pine.LNX.3.95q.970720093020.3410A-200000@jcoy.tucson.az> you wrote:
: I can't add localhost to my routing table with newer kernels. I am using
: net tools v1.41 and using the following lines:

: /sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0 up
: /sbin/route add -net 127.0.0.0 netmask 255.0.0.0

: I get a "SIOCADDRT: No such device" when I run the route command.

Well, when someone complains "No such device", add it! :-) :-)

/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 dev lo

Seriously, this command is more not necessary.
This route is added automatically.

Alexey Kuznetsov.