[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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: Subnet Gateway
eth1: Subnet Gateway

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 netmask gw eth1

route shows:
# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface   UG    0      0        0 eth1    *        U     0      0        0 eth1
localnet        *          U     0      0        0 eth0
default         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/ interface properly
"travels" through the appropriate gateway.

Any ideas on what I am missing? It's driving me nuts. Thanks in advance.

Reply to: