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