我有两个Nic(eth0和eth1)eth0 – 10.10.1.1 eth2 – 192.168.1.1在vSphere上安装了Centos 7
两个IP都由DHCP分配。 当第一次重新启动服务器时 – eth0(10.10.1.1)不响应ping和eth1。 第二次重启时 – eth0没有响应ping,但是eth1没有响应。 第三次重启 – eth0响应; eth1不是,每当我重新启动服务器时都会发生这种情况。
每次重新启动后,我都检查了eth0和eth1 – 每个接口的IP都保持不变。
任何帮助或想法,我应该在哪里挖掘表示赞赏。
@ SmallLoanOf1M感谢提示:这里是一个结果:几次重启之后:“ip a”和“ip link”都一样,但是“ip route”每当我重新启动时都不一样:
1 st reboot:# ip link default via 10.10.1.2 dev eth0 proto static metric 100 default via 192.168.1.2 dev eth1 proto static metric 101 10.40.1.3 via 10.10.1.2 dev eth0 proto dhcp metric 100 10.10.1.0/24 dev eth0 proto kernel scope link src 10.10.1.1 metric 100 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.1 metric 100
2重启:ip链接
default via 192.168.1.2 dev eth1 proto static metric 100 default via 10.10.1.2 dev eth0 proto static metric 101 10.40.1.3 via 192.168.1.2 dev eth1 proto dhcp metric 100 10.10.1.0/24 dev eth0 proto kernel scope link src 10.10.1.1 metric 100 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.1 metric 100