Need help on load balancing

Linux Advanced Routing and Traffic Control

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

 



   Hi,
   I am new to list and have an urgent question. I read the LARTC howto
and enter the following commands but I don't know how to use nat for
internal network. I want that all of the clients that have IP in range
192.168.2.0/24 and gateway 192.168.2.1 can see internet using both
uplinks with failovr feature. What is the nat command that I have to
enter?
Eth0: 192.168.2.1/24 ( internal network )
Eth1: 80.191.30.250/30 ( ISP1 )
Eth2: 213.217.54.245/29 ( ISP2 )
----------------------------------------------
ip route add 80.191.30.248 dev eth1  src 80.191.30.250 table isp1
ip route add default via 80.191.30.249 table isp1
ip route add 213.217.54.240 dev eth2 src 213.217.54.245 table isp2
ip route add default via 213.217.54.241 table isp2
ip route add 80.191.30.248 dev eth1 src 80.191.30.250
ip route add 213.217.54.240 dev eth2 src 213.217.54.245
ip rule add from 80.191.30.250 table isp1
ip rule add from 213.217.54.245 table isp2
ip route add 192.168.2.0/24 dev eth0 table isp1
ip route add 213.217.54.240/29 dev eth2 table isp1
ip route add 127.0.0.0/8 dev lo table isp1
ip route add 192.168.2.0/24 dev eth0 table isp2
ip route add 80.191.30.248/30 dev eth1 table isp2
ip route add 127.0.0.0/8 dev lo table isp2
ip route add default scope global nexthop via 80.191.30.249 dev eth1
weight 1 nexthop via 213.217.54.241 dev eth2 weight 4
----------------------------------------------------------

Please help me.
Thanks,
Saeed Zamani,
Technical Manager,
Concept FZ LLC.


_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
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