HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Centos 5.4 : 2 nics 2 gateways (http://www.howtoforge.com/forums/showthread.php?t=45201)

mr_insane 20th April 2010 22:35

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

mr_insane 22nd April 2010 14:22

Any Help would be great :)

Where is the Linux Gurus of this forum ? :(

mr_insane 22nd April 2010 20:59

the answer is in :
http://www.howtoforge.com/forums/sho...ateways&page=2

Thx Craig


All times are GMT +2. The time now is 15:44.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.