LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-25-2008, 08:51 AM   #1
pudhiyavan
Member
 
Registered: Oct 2003
Location: Linux world
Distribution: redhat,mandy,centos,debian,ubuntu
Posts: 209

Rep: Reputation: 30
Question traffic has to go through the virtual interface ip address


Hi

i am using fedora 7 in two different box's and have two interfaces each respectivly

eth1 between two box's have been connected by cross cable to enable the heartbeat ipfail functionality

eth0 has been connected to lan and each eth0 carries ip address's 192.168.0.10 and 192.168.0.20 apart from this the heartbeat uses eth0:1 - 192.168.0.30 as virtual ip in one of the box's and i have NAT'd my external ip address to this virtual ip, so any time the connectivity will be up and my web server will be available all the time.

now my requirement is if i do ping 192.168.0.1 gateway address using
ping 192.168.0.1 -I eth0:1
it shows the physical ip of that interface.

i did the following in the box

route add default gw 192.168.0.1 dev eth0:1
route del default gw 192.168.0.1 dev eth0

my #route
shows

default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

is there any ways that i can send all the traffic through eth0:1 only

pls help me
 
Old 03-26-2008, 11:55 PM   #2
pudhiyavan
Member
 
Registered: Oct 2003
Location: Linux world
Distribution: redhat,mandy,centos,debian,ubuntu
Posts: 209

Original Poster
Rep: Reputation: 30
any clues?
 
Old 03-27-2008, 04:35 AM   #3
pudhiyavan
Member
 
Registered: Oct 2003
Location: Linux world
Distribution: redhat,mandy,centos,debian,ubuntu
Posts: 209

Original Poster
Rep: Reputation: 30
is it possible to do so?

the long silence here scares me that it may not be possible....
 
  


Reply

Tags
ip, route, 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
Adding virtual interface for IP based virtual host pridefc Linux - General 6 03-16-2008 03:52 PM
Network Traffic Stats on virtual interface santhosh rao Linux - Newbie 2 02-14-2008 03:33 AM
API for mapping Physical Address to Virtual Address Lakshman_smt Linux - Software 2 10-15-2006 09:08 PM
Avoid the firewall for outbound traffic on locally-defined virtual IP address? ariebs Linux - Security 4 09-30-2004 02:37 PM
Avoid the firewall for outbound traffic on locally-defined virtual IP address? ariebs Linux - Networking 1 08-19-2004 12:05 PM


All times are GMT -5. The time now is 07:30 PM.

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