Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> Force originating traffic through virtual interface
JMx
post Apr 15 2009, 02:19 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 15-April 09
Member No.: 14,401



Hi!

I am hoping that some will be able to help with the following issue I am having on what seems to be a derivative of Red Hat.

I want to have an interface eth0, eth1 and eth0:1 on the same subnet:

e.g:

eth0 172.22.8.1/24
eth0:1 172.22.8.2/24
eth1 172.22.8.3/24

default gateway 172.22.8.100


I want to connect to different web servers, say 172.22.9.1 and 172.22.9.2, but I want to force the originating IP address.

So, I want to get a routing table that looks like:

Dest Mask Gateway Interface
172.22.9.1 255.255.255.255 172.22.8.100 eth1
172.22.9.2 255.255.255.255 172.22.8.100 eth0:1
0.0.0.0 0.0.0.0 172.22.8.100 eth0
(plus the usual ones)

So I can quite easily set this up and it works with the physical interfaces. However, I am having difficulties adding the eth0:1 route.

When I do "route add -host 172.22.9.2 gw 172.22.8.100 dev eth0:1" the line appears but with the "eth0" interface.
I do not believe the request will originate from the desired IP address.

Any ideas or pointers would be fantastic.

Thanks in advance.

Joel
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
michaelk
post Apr 15 2009, 04:48 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,796
Joined: 23-January 03
Member No.: 360



Since eth0 and eth0:1 are on the same subnet I do not not see what you are trying to accomplish.
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th October 2017 - 12:48 AM