lkml.org 
[lkml]   [1997]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: adding localhost route
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.

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.032 / U:0.964 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site