httping -y ,Is the -y parameter of httping ineffective
"Is the -y parameter of httping ineffective? In the case of multiple network cards, if one network card can access the destination address, using httping -y to specify the IP of the second network card to access the destination address, even if the second network card has no network connectivity, httping still succeeds, and packet capture shows that httping is using the first network card."
Is it possible to add a parameter to bind the local network interface
/#ifconfig eth0.1 eth0.1 Link encap:Ethernet HWaddr E4:67:1E:7F:2B:81 inet addr:10.5.1.83 Bcast:10.5.1.255 Mask:255.255.255.0 inet6 addr: 2409:8754:30b0:410::504/128 Scope:Global inet6 addr: fe80::e667:1eff:fe7f:2b81/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3150 errors:0 dropped:145 overruns:0 frame:0 TX packets:3079 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:479658 (468.4 KiB) TX bytes:615590 (601.1 KiB)
/# /#ifconfig eth0.3 eth0.3 Link encap:Ethernet HWaddr E4:67:1E:7F:2B:82 inet addr:192.168.42.2 Bcast:192.168.42.255 Mask:255.255.255.0 inet6 addr: fe80::e667:1eff:fe7f:2b82/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:557 errors:0 dropped:0 overruns:0 frame:0 TX packets:735 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:44381 (43.3 KiB) TX bytes:70696 (69.0 KiB)
/#ping www.qq.com -I eth0.3 PING www.qq.com (112.53.42.52): 56 data bytes
^C --- www.qq.com ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss /# /# /#httping -y 192.168.42.2 www.qq.com PING www.qq.com:80 (/): connected to 112.53.42.114:80 (185 bytes), seq=0 time= 20.27 ms connected to 112.53.42.52:80 (185 bytes), seq=1 time= 23.90 ms connected to 112.53.42.114:80 (185 bytes), seq=2 time= 31.78 ms ^CGot signal 2 --- http://www.qq.com/ ping statistics --- 3 connects, 3 ok, 0.00% failed, time 2303ms round-trip min/avg/max = 20.3/25.3/31.8 ms