Results 1 to 2 of 2
Hi,
I want to build a topology of this kind:
|eth0 (a.a.a.a) |
Linux PC |<----------------> | ROUTER
|eth1 (b.b.b.b) |
|<----------------->|
the linux machine has two interfaces eth0 (a.a.a.a) ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-13-2010 #1Just Joined!
- Join Date
- Oct 2010
- Posts
- 1
Sending packets to the local interface through a route
Hi,
I want to build a topology of this kind:
|eth0 (a.a.a.a) |
Linux PC |<----------------> | ROUTER
|eth1 (b.b.b.b) |
|<----------------->|
the linux machine has two interfaces eth0 (a.a.a.a) and eth1 (b.b.b.b) connnected to two interfaces of a router.
Now that if I send any packet destined to b.b.b.b from a.a.a.a interface on the linux machine, it should take the folowing path: eth0->router->eth1 . and it should be the same for vice versa.
please let me know how i can achieve this. This is a part of my work so can't reveal any further information about it.
- 10-23-2010 #2Just Joined!
- Join Date
- Oct 2010
- Location
- Reston, VA
- Posts
- 26
If the router is your default gateway you should be all set.
One problem to avoid is the hostname. If you ping yourself your sever will out smart you and use the closest IP address.
For whatever application you use you'll want to specify the interface to bind to. Should this be too tedious you could setup NATs on the router such as:
eth0 = 10.1.1.1
eth1 = 10.2.2.2
Router NAT: 10.2.2.3 -> 10.1.1.1
Router NAT: 10.1.1.3 -> 10.2.2.2
Traffic leaving your server for the NAT of 10.2.2.3 would exit eth1 and arrive at eth0.
Pretty strange request.
-Gooney0


Reply With Quote
