Outgoing local trafic over virtual interface has not virtual ip address :-(
When I create virtual ethernet interface and do a
ping -I <v_int> <host>
the outgoing address is the one of the physical interface and NOT the virtual interface.
Is there no chance that trafic will go out with virtual interface address??
Incoming trafic is done well i.e. responds to the virtual interface have the virtual address.
My problem is that I have 2 modems and want to check both default gw behind the modems.
If I do a "normal" ping both are reachable over default route even the modem which is not the default route will not work because ping goes over the working modem :-(
So I have 2 routing tables and want to route the virtual interface to one modem the other to the other modem ...
Try adding the "-r" option. Your target must be on the same subnet.
ping -r -I source_ip_address target_ip_address
Ups specifying the ip instead of the virtual interfacd WITHOUT -r did the trick because host is not on same subnet. Thanks a lot!!
|All times are GMT -5. The time now is 07:15 AM.|