Static routing
Debian で Static Routing を定義するサンプル。10.10.0.0/24 のネットワークに対しては、10.0.0.254 経由でという意味。それ以外は 10.0.0.1 経由でアクセスを試みる。
# The primary network interface auto eth0 iface eth0 inet static address 10.0.0.100 gateway 10.0.0.1 netmask 255.255.255.0 up route add -net 10.10.0.0 netmask 255.255.255.0 gw 10.0.0.254 pre-down route del -net 10.10.0.0 netmask 255.255.255.0 gw 10.0.0.254