Greetings,

When I set up my linux box, I had one NIC, eth0, which I
set up for 10.0.2.2/24.  I later added a second NIC, eth1,
which I set up for DHCP.

I have got both NICs attached to the same physical segment
right now.  If I down both interfaces, then run pump -i eth1,
eth1 gets a valid address and starts working as you'd expect.
If I bring it down, then pump eth0, it fails.  

What do I have to do to be able to easily swap the interfaces?

The reason I started playing with this is because I'm having
trouble getting my firewall to work (I'm using the PMFirewall
script to handle ipchains settings).  The only way I've found
to get it to work is to bring up eth0 as 10.0.2.2/24, pump
eth1, then add a route from net 10.0.2.0/24 to eth1 (route
add -net 10.0.2.0 netmask 255.255.255.0 dev eth1 ).  After
I do that, things start working.

However, I'm using the same setup at work, except without
DHCP, and with eth0 as external and eth1 as internal, and
I don't have to add the route.

Without the route, I cannot ping other workstations on 
the 10.0.2.0 net.  With the route, I can ping them, but
it says its pinging from 24.28.xx.xx to 10.0.2.10, instead
of from 10.0.2.2 to 10.0.2.10.

Suggestions?

Thanks,
DK
--
"When you pay off the first baseman every month, who gets the money?"
"Every dollar of it."                  --Who's on First?


Reply via email to