Debian: set static route

systems Add comments

Static routes would be configured in /etc/network/interfaces in the section for the respective network adapter:

iface eth1 inet static
address 192.168.14.80
netmask 255.255.255.0
network 192.168.14.0
broadcast 192.168.14.255
up route add -net 10.10.1.0 netmask 255.255.255.0 gw 192.168.14.82
down route del -net 10.10.1.0 netmask 255.255.255.0 gw 192.168.14.82

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in