centos7 – 靜態路由

# vi /etc/sysconfig/network-scripts/route-em1
192.168.2.0/24 via 192.168.2.254 dev em1

或是

# vi /etc/sysconfig/network-scripts/route-em1
ADDRESS0=192.168.1.0
NETMASK0=255.255.255.0
GATEWAY0=192.168.1.1
ADDRESS1=192.168.2.0
NETMASK1=255.255.255.0
GATEWAY1=192.168.2.1