#1  
Old 20th April 2010, 22:35
mr_insane mr_insane is offline
Junior Member
 
Join Date: Apr 2010
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Unhappy 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
Reply With Quote
Sponsored Links
  #2  
Old 22nd April 2010, 14:22
mr_insane mr_insane is offline
Junior Member
 
Join Date: Apr 2010
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Any Help would be great

Where is the Linux Gurus of this forum ?
Reply With Quote
  #3  
Old 22nd April 2010, 20:59
mr_insane mr_insane is offline
Junior Member
 
Join Date: Apr 2010
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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

Thx Craig
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 5.4 + vmware server 2.0.2 mariuscotan Technical 6 24th April 2010 00:49
Host Machine Setup for Paravirtualization With Xen On CentOS 5.4 (x86_64) mfiendd HOWTO-Related Questions 4 12th March 2010 15:53
ISP 3.0.1.6 / Centos 5.4 gjaouen Installation/Configuration 11 20th January 2010 12:18
CentOS 5.4 with ISPConfig3 beezer1424 Installation/Configuration 1 29th October 2009 09:45
Centos 5.2 + ISPConfig 3 tutorial - Problem with email tanakskool Server Operation 1 3rd June 2009 17:22


All times are GMT +2. The time now is 03:58.


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