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.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to