LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Outgoing local trafic over virtual interface has not virtual ip address :-( (http://www.linuxquestions.org/questions/linux-networking-3/outgoing-local-trafic-over-virtual-interface-has-not-virtual-ip-address-750082/)

tkmbe 08-25-2009 06:26 AM

Outgoing local trafic over virtual interface has not virtual ip address :-(
 
Hi

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 ...

Any help?

Greeetings

Beat

Suncoast 08-25-2009 09:04 AM

Try adding the "-r" option. Your target must be on the same subnet.

ping -r -I source_ip_address target_ip_address

tkmbe 08-25-2009 07:41 PM

Ups specifying the ip instead of the virtual interfacd WITHOUT -r did the trick because host is not on same subnet. Thanks a lot!!

Suncoast 08-25-2009 08:03 PM

You're welcome.


All times are GMT -5. The time now is 08:19 AM.