traffic has to go through the virtual interface ip address
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.