static-route

static routeの追加方法(Centとかの場合)

OSやバージョンによって書式が違うので、必ず /etc/init.d/network の中身は確認しないと。

route add -host 192.168.0.11(HostIP) gw GatewayIP
route add -net 192.168.200.0/24 gw 192.168.0.1

cat /etc/init.d/network | grep any

grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
# Run this again to catch any interface-specific actions

cat /etc/sysconfig/static-routes

any net 192.168.200.0 netmask 255.255.255.0 gw 10.0.11.13
any host 192.20.50.49 gw 10.0.11.13 dev eth0:0