Posts

Showing posts from February 26, 2013

Dual Nic both facing internet

You have two public ip address need to see both on internet and you ate your whole day... Me too kindly comment if yours worked!!!!! eth0 192.168.0.161 on network 192.168.0.0 gateway 192.168.0.1 eth1 192.167.0.51 on network 192.1687.0.9 gateway 192.167.0.1 Here! Create two routing tables T0 and T1 add t /etc/iproute2/rt_tables Add these lines 100    T0 101    T1 ip route add 192.167.0.0 dev eth1 src 192.167.0.161 table T1 ip route add default via 192.167.0.1 table T1 ip route add 192.168.0.0 dev eth0 src 192.168.0.51 table T0 ip route add default via 192.168.0.1 table T0 Next ip route add 192.167.0.0 dev eth1 src 192.167.0.51 ip route add 192.168.0.0 dev eth0 src 192.168.0.161 next ip route add default via eth1 ( this might be already configured ) * NOTE you might have the default gateway on eth0 * next ip rule add from 192.167.0.161 table T1 ip rule add from 192.168.0.51 table T0 Thanks to the urls below: http://www.wlug.org.nz/SourceBasedRoutin