LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-25-2009, 06:26 AM   #1
tkmbe
Member
 
Registered: Jun 2005
Location: Obera, Argentina
Distribution: OpenSuse 10.3, Debian 4.0, Debian 3.1
Posts: 36

Rep: Reputation: 15
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
 
Old 08-25-2009, 09:04 AM   #2
Suncoast
Member
 
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 202

Rep: Reputation: 35
Try adding the "-r" option. Your target must be on the same subnet.

ping -r -I source_ip_address target_ip_address
 
Old 08-25-2009, 07:41 PM   #3
tkmbe
Member
 
Registered: Jun 2005
Location: Obera, Argentina
Distribution: OpenSuse 10.3, Debian 4.0, Debian 3.1
Posts: 36

Original Poster
Rep: Reputation: 15
Ups specifying the ip instead of the virtual interfacd WITHOUT -r did the trick because host is not on same subnet. Thanks a lot!!
 
Old 08-25-2009, 08:03 PM   #4
Suncoast
Member
 
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 202

Rep: Reputation: 35
You're welcome.
 
  


Reply

Tags
interface, virtual


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CARP virtual address/interface assinmet sarajevo *BSD 3 06-25-2009 04:18 AM
traffic has to go through the virtual interface ip address pudhiyavan Linux - Networking 2 03-27-2008 04:35 AM
Adding virtual interface for IP based virtual host pridefc Linux - General 6 03-16-2008 03:52 PM
virtual address of local variables dale_chip Programming 1 06-28-2007 10:56 AM
local mail distribution already having virtual address on isp faisalusuf Linux - Server 2 06-13-2007 01:03 AM


All times are GMT -5. The time now is 09:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration