Adding Static Route on Startup

Create if /etc/sysconfig/static-routes does not exist.

# Routing to HK
eth0 net 192.168.2.0 netmask 255.255.255.0 gw 172.16.1.6
eth0 net 192.168.1.8 netmask 255.255.255.248 gw 172.16.1.6
# Routing to Japan
eth0 net 192.168.3.0 netmask 255.255.255.0 gw 172.16.1.1
eth0 net 192.168.4.0 netmask 255.255.255.0 gw 172.16.1.1

Leave a Reply