- 论坛徽章:
- 0
|
网卡信息如下:
我虽然使用了ping -i ce1:4 172.23.1.177 ,但是发出去的icmp报文里面源地址还是ce1:1的。
虽然可以用ifconfig ce1:1 deprecated;ifconfig ce1:2 deprecated; ifcofnig ce1:3 deprecated 后,发出去的icmp报文源地址是ce1:4的了,但是这样只能测试时用用,
请问各位有没有好方法其他可以指定源IP的ping工具,谢谢了!
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
ce1: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 2
inet 172.23.1.3 netmask ffffff00 broadcast 172.23.1.255
groupname db_nic
ether 0:14:4f:b8:9d:20
ce1:1: flags=1040843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 172.23.1.153 netmask ffffff00 broadcast 172.23.1.255
ce1:2: flags=1040843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 172.23.1.155 netmask ffffff00 broadcast 172.23.1.255
ce1:3: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 172.23.1.151 netmask ffffff00 broadcast 172.23.1.255
ce1:4: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 172.23.1.150 netmask ffffffe0 broadcast 172.23.1.159
ce1:5: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 172.23.1.130 netmask ffffff00 broadcast 172.23.1.255
ce5: flags=19040803<UP,BROADCAST,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,FAILED> mtu 1500 index 4
inet 172.23.1.5 netmask ffffff00 broadcast 172.23.1.255
groupname db_nic
ether 0:14:4f:6a:34:24 |
|