Thursday, September 9, 2010

Multiple NIC In Same Subnet IP Address - ARP Problem

/proc/sys/net/ipv4/conf/(eth0 || eth1)/arp_filter change the value to a 1 instead of 0.

ip route del default

route add default gw 192.168.1.1 dev eth1
route add default gw 192.168.1.1 dev eth0

ip route add 192.168.1.0/24 dev eth0 table 2
ip route add 0/0 via 192.168.1.1 dev eth0 table 2
ip rule add from 192.168.1.123 table 2
ip rule add to 192.168.1.123 table 2

ip route add 192.168.1.0/24 dev eth1 table 3
ip route add 0/0 via 192.168.1.1 dev eth1 table 3
ip rule add from 192.168.1.121 table 3
ip rule add to 192.168.1.121 table 3

echo 1 > /proc/sys/net/ipv4/conf/eth0/arp_filter
echo 1 > /proc/sys/net/ipv4/conf/eth1/arp_filter

Labels:

1 Comments:

Anonymous Anonymous said...

Hi your solution worked for me, but can you please explain to me the rules you setup here ? Your help will be much appreciated.

- Arup
arup.p@aggiemail.usu.edu

October 31, 2012 at 3:49 PM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home