针对RHEL中双网卡IP不能同时被访问的解决方法(2)

1234567891011121314 [root@storage252 ~]# ping -W1 -c2 192.168.152.4
PING 192.168.152.4 (192.168.152.4) 56(84) bytes of data.
64 bytes from 192.168.152.4: icmp_seq=1 ttl=63 time=0.324 ms
64 bytes from 192.168.152.4: icmp_seq=2 ttl=63 time=0.349 ms
--- 192.168.152.4 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.324/0.336/0.349/0.022 ms
[root@storage252 ~]# ping -W1 -c2 192.168.153.4
PING 192.168.153.4 (192.168.153.4) 56(84) bytes of data.
64 bytes from 192.168.153.4: icmp_seq=1 ttl=63 time=0.342 ms
64 bytes from 192.168.153.4: icmp_seq=2 ttl=63 time=0.271 ms
--- 192.168.153.4 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.271/0.306/0.342/0.039 ms

可以根据需要将静态路由命令添加至相关配置文件,重启之后仍然生效。

推荐阅读:

Linux系统双网卡绑定单个IP地址[CentOS

RedHat 6.2双网卡绑定

RHEL5系统配置双网卡绑定

RHEL6.1下实现双网卡绑定

RHEL5.5下双网卡绑定

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/ad839efd28664c9b2bfb5da59621c4d5.html