1 第一生效配置文件
网卡配置文件 例如 /etc/sysconfig/network-script/ifcfg-eth0
GATEWAY=192.168.0.0
2 第二生效文件
/etc/sysconfig/network
GATEWAY=192.168.0.0
3 命令行优先 但临时有效
route -n
route add default gw 192.168.0.0
route del default gw 192.168.0.0
1 第一生效配置文件
网卡配置文件 例如 /etc/sysconfig/network-script/ifcfg-eth0
GATEWAY=192.168.0.0
2 第二生效文件
/etc/sysconfig/network
GATEWAY=192.168.0.0
3 命令行优先 但临时有效
route -n
route add default gw 192.168.0.0
route del default gw 192.168.0.0