Re: 2 internal NIC's in the same network

Linux Advanced Routing and Traffic Control

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

 



Sorry!  Correction below:

-Martin

 Tarek was correct when he mentioned that you'll need to use policy routing 
 in addition if both of the IPs you are using fall within the same network.
 
 # ip rule add from 10.0.0.2 lookup 2
 # ip rule add from 10.0.0.1 lookup 1
 # ip route add 10.0.0.0/24 dev eth1 src 10.0.0.1 table 1
 # ip route add 10.0.0.0/24 dev eth2 src 10.0.0.2 table 2
 
 Turn on the ARP hiding functionality:
 
 # echo 1 > /proc/sys/net/ipv4/conf/all/hidden
 
 You'll need to do this *after* you have brought up the interfaces and 
 set the hidden flags explicitly.
 
 # echo 1 > /proc/sys/net/ipv4/conf/eth1/hidden
 # echo 1 > /proc/sys/net/ipv4/conf/eth2/hidden

-- 
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux