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双网卡绑定