Centos 5.4 : 2 nics 2 gateways
Hi All,
Please i want to use 2 external ip adresses for smtp
I ended up with this solution but it doesn't work
Please help ?
ip route add 192.168.3.0/24 dev eth1 src 192.168.3.6 table Adsl1
ip route add default via 192.168.3.6 table Adsl1
ip route add 192.168.4.0/24 dev eth2 src 192.168.4.6 table Adsl2
ip route add default via 192.168.4.6 table Adsl2
ip route add 192.168.3.0/24 dev eth1 src 192.168.3.6
ip route add 192.168.4.0/24 dev eth2 src 192.168.4.6
ip route add default via 192.168.3.1
ip rule add from 192.168.3.6 table Adsl1
ip rule add from 192.168.4.6 table Adsl2
ip route add 192.168.2.0/24 dev eth0 table Adsl1
ip route add 192.168.4.0/24 dev eth2 table Adsl1
ip route add 127.0.0.0/8 dev lo table Adsl1
ip route add 192.168.2.0/24 dev eth0 table Adsl2
ip route add 192.168.3.0/24 dev eth1 table Adsl2
ip route add 127.0.0.0/8 dev lo table Adsl2
ip route add default scope global nexthop via 192.168.3.1 dev eth1 weight 1 \ nexthop via 192.168.4.1 dev eth2 weight 1
|
Recent comments
8 hours 37 min ago
13 hours 36 min ago
15 hours 3 min ago
15 hours 56 min ago
17 hours 39 min ago
22 hours 2 min ago
22 hours 54 min ago
1 day 1 hour ago
1 day 14 hours ago
1 day 15 hours ago