Re: Dual Nic, Dual IPs
Have you enabled ip forwarding in your kernel ?
e.g. '/proc/sys/net/ipv4/ip_forward = 1'
Matthew Daubenspeck wrote:
I am having some issues with making a dual nic, dual IP woody system
working properly. Here is the basic setup:
eth0: 172.17.0.1 Subnet 255.255.0.0 Gateway 172.17.255.254
eth1: 192.168.10.3 Subnet 255.255.255.0 Gateway 192.168.10.1
I have djbdns/dnscache running on the eth0 IP. This seems to work
I then have djbdns/tinydns running on the eth1 IP. It seems to work
locally and for anything on the same LAN, but does not seem to pass info
properly through the gateway.
I manually added the following route:
route add -net 192.168.10.0 netmask 255.255.255.0 gw 192.168.10.1 eth1
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.10.0 192.168.10.1 255.255.255.0 UG 0 0 0 eth1
192.168.10.0 * 255.255.255.0 U 0 0 0 eth1
localnet * 255.255.0.0 U 0 0 0 eth0
default 172.17.255.254 0.0.0.0 UG 0 0 0 eth0
I'm sure my mailer botched that up, but as far as I can tell it looks
right. However, nothing on the eth1/192.168.10.3 interface properly
"travels" through the appropriate gateway.
Any ideas on what I am missing? It's driving me nuts. Thanks in advance.