How to add a route with a 2.2.x kernel ?

Extracted from debian-user
Tip provided by Gregory T. Norris
> I've just upgraded my kernel to 2.2.1. Now I cannot
> add a route for the loopback interface:
>
> fire:~# route add -net 127.0.0.0 dev lo
> SIOCADDRT: Invalid argument
 
 The 2.2.x kernels require that you specify the netmask when you add a
 route... 2.0.x would use a default value if it was not explicitly given.
 Try replacing the above with:
 
      route add -net 127.0.0.0 netmask 255.0.0.0 dev lo

Follow-up :
| Previous | Next | Index of category | Main Index | Submit |


Appears in section(s) : net kernel
Tip recorded : 21-03-1999 19:51:21
HTML page last changed : 27-07-1999 20:09:24