Hi David
Thanks a whole lot for answering! :-)
123.123.123.1 is the default gateway, it's a preconfigured router delivered
to
us from our ISP. There are no services that we need on it.
eth1 is used for our second internet connection, our 'backup connection',
its
got an ip like 234.234.234.118
I have configured iptables to do dnat to some of our hosts on eth0. To make
this work i had to read some of the adv routing howto, esp chapter 4.
eth0 is our internal network, on ip 123.123.123.247
eth2 is our internal network, on ip 123.123.123.246
I have not configured load balancing, all outbound traffic should go through
eth2 if the connection is alive. Only if the connection dies should outgoing
traffic be sent through eth1.
So let me see if i understand:
- I turn on proxy arp for eth0
- eth2 should be configured like this (ifcfg-eth2):
DEVICE=eth2
BOOTPROTO=static
IPADDR=123.123.123.246
NETMASK=255.255.255.255
BROADCAST=123.123.123.246
ONBOOT=yes
And these entries are correct (from 'route') ?
Destination Gateway Genmask Flags Metric Ref Use
Iface
123.123.123.1 * 255.255.255.255 UH 0 0 0 eth2
default 123.123.123.1 0.0.0.0 UG 0 0 0 eth2
I tried the ifcfg settings above, and at least I'm able to ping
123.123.123.1
through eth2. The route settings are the same as I always had..
You said that "eth0 should answer arp requests for anything on its other
interfaces", and I'm a bit confused. I only need it to answer for
123.123.123.1. What hosts can be considered 'on its other interfaces'?
I will read up on proxy_arp, and see if it lets me do what i want it to,
then
experiment some more later. This seems promising! :-)
Sincerely,
- Oyvind
> Set eth0 to any IP other than 123.123.123.1
>
> Set up eth2 with any other 123.123.123.x IP netmask 255.255.255.255
> broadcast (same as IP). Same host and default routes to 123.123.123.1 on
> dev eth2.
>
> echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp.
>
> Then eth0 should answer arp requests for anything on its other interfaces
> (including 123.123.123.1). However, you have not said what is on eth1, so
> maybe you need to read the Adv-Routing HOWTO instead of using proxy_arp
> (if you are doing something like load balancing or fallback between eth1 &
> eth2 for internet connections).
>
> If 123.123.123.1 represents a public IP, you likely also need to do some
> sort of masquerading.
>
> --
> David Efflandt - All spam ignored http://www.de-srv.com/
> http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
> http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/