lkml.org 
[lkml]   [1996]   [Dec]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kernels > 2.1.14 can't /sbin/route add -net 127.0.0.0


All,

Well, I had a few suggestions (thanks), but:

>> > [root@endor:/home/meyer] 4# /sbin/route add -net 127.0.0.0
>> > SIOCADDRT: Invalid argument
>>
>> Add 'netmask 255.0.0.0' to the command.

# /sbin/route add -net 127.0.0.0 netmask 255.0.0.0
SIOCADDRT: No such device

>> have you tried
>>
>> # /sbin/route add -net 127.0.0.0 dev [presumably lo]

# /sbin/route add -net 127.0.0.0 dev lo
SIOCADDRT: Invalid argument

>> You might want to route add -net 127.0.0.0 lo

# /sbin/route add -net 127.0.0.0 lo
SIOCADDRT: Invalid argument

Also,

# /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 dev lo
SIOCADDRT: File exists


All this with

# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0
TX packets:12 errors:0 dropped:0 overruns:0

eth0 Link encap:10Mbps Ethernet HWaddr 00:C0:4F:D9:46:AB
inet addr:128.223.72.29 Bcast:128.223.72.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12471 errors:0 dropped:0 overruns:0
TX packets:3177 errors:0 dropped:0 overruns:0
Interrupt:11 Base address:0xdce0


and

# netstat -rn
Kernel routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
128.223.72.0 0.0.0.0 255.255.255.0 U 32767 0 0 eth0
0.0.0.0 128.223.72.1 0.0.0.0 UG 1 0 0 eth0


Confused.

Dave


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