Click to See Complete Forum and Search --> : Editing routing table


Mecca
11-13-2000, 04:31 PM
I just installed Debian 2.2 and am having trouble getting my network working. I have narrowed the problem down to my routing table, but don't know how to edit it. I saved my working table from Mandrake just incase:



Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
24.9.85.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 24.9.85.1 0.0.0.0 UG 0 0 0 eth0





My new table looks like this:


Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
24.9.85.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 24.9.85.1 0.0.0.0 UG 0 0 0 eth0



I need to add this line:

Destination Gateway Genmask Flags MSS Window irtt Iface
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo


to my new routing table. What command do i issue to do this?

Thanks,
Anthony


[This message has been edited by Mecca (edited 13 November 2000).]

[This message has been edited by Mecca (edited 13 November 2000).]

nunder
11-13-2000, 04:38 PM
I believe that it's :
route add -net 127.0.0.0 netmask 255.0.0.0 gw 0.0.0.0

You can check man route to verify. Hope this helps.

<shameless_plug> http://www.greatcommunities.net
</shameless_plug>

Mecca
11-13-2000, 04:48 PM
That's the command I was trying but I get this error:

SIOADDRT: Invalid arguement

Mecca
11-14-2000, 05:49 PM
Is this route 'add -net 127.0.0.0 netmask 255.0.0.0 gw 0.0.0.0 ' the correct command? And if so, why am I getting this error: 'SIOADDRT: Invalid arguement'?

Thanks
Anthony