Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 2 ethernet cards on my 1st computer eth0 eth1

eth0 is connected to 2nd computers eth0 using crossover cabe which is

I can ping computer 1 eth0 from computer 2 But I cant ping computer 1 eth1 from computer 2

how do I route packets to eth1 of computer 1 via eth0 of same computer

I am trying out setting up NAT on my local computers, I need this for working out different types of NAT

share|improve this question
Sounds like your kernel is patched for the ARP flux problem, but you want to induce ARP flux. – sawdust Jun 14 '11 at 8:08
up vote 0 down vote accepted

I would look at some guides for how to set up iptables, as it will basically allow you to route packets between interfaces according to rules you set up. iptables is much more than just a firewall interface and you can pretty much give it a massive list of rules to route data through networks.

That tiny router that almost everyone uses to connect to the internet with? That thing is running Linux with iptables fully set up.

Amongst others, look at this howtoforge guide and this epic guide at pettingers

The main one I can find is this one which claims to be A basic firewall configuration suitable for a gateway/nat and supports eth0 for the external interface and eth1 for the internal interface.

Ubuntu has an IpTables Howto and as an example has a program called UFW (Uncomplicated FireWall) that may be able to configure iptables for you, it also has a gui frontend called gufw which may be of use.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .