[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: static route



Kancha . a écrit :

>hi all
>  
>
Hi,

>How can i add static route in debian sarge so that it
>is retained even after a reboot.
>  
>
You can use the 'up' and 'down' directives in /etc/network/interfaces:

iface lan inet static
  address ...
  ...
  up route add -net a.b.c.d/m gw x.x.x.x
  down route del -net a.b.c.d/m gw x.x.x.x

it work with dhcp too.

cu.



Reply to: