LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   traffic has to go through the virtual interface ip address (https://www.linuxquestions.org/questions/linux-networking-3/traffic-has-to-go-through-the-virtual-interface-ip-address-630483/)

pudhiyavan 03-25-2008 08:51 AM

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

pudhiyavan 03-26-2008 11:55 PM

any clues?

pudhiyavan 03-27-2008 04:35 AM

is it possible to do so?

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


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