重启服务器并查看路由信息
R eboot
Ip route list
default via 10.76.128.200 dev eth0 proto static metric 100
10.76.0.0/16 via 10.76.124.200 dev eth1 proto static metric 100
10.76.124.0/23 dev eth1 proto kernel scope link src 10.76.124.11 metric 100
10.76.128.0/23 dev eth0 proto kernel scope link src 10.76.128.11 metric 100
特别注意:
service restart network 在 RHEL7 上 执行后 可能 会导致 eth1无法 起来, 解决 方法如下:
nmcli connection show
nmcli connection show –active
nmcli connection delete eth1
reboot
nmcli connection add type ethernet con-name eth1 ifname eth1 autoconnect yes
然后 完成后续IP以及路由的配置。