2 ADSL links with same P-t-P address !!

Linux Advanced Routing and Traffic Control

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

 



Hi List... I cant share 2 adsl links in a Nat Box for 30 machines, the idea is balancing the load of that 30 machines between 2 adsl links, I tried whit several how to's including the LARTC How to and nothing work.... I think that the P-t-P can be the problem, actually I'm using only 1 ADSL for this problem (ppp0)
Somebody can tell me what's wrong? or what to do step by step?


Some info...

30 Machines from 192.168.1.100 to 192.168.1.130.

-------- eth0 (no ip) ----------------- ADSL1
|
Linux Box ----- eth1 (no ip) ----------------- ADSL2
|
-------- eth2 (192.168.1.100) ----------------- To Local Lan (192.168.1.0/24).


Here is my actual iptables rule... any suggestion with tho ppp devices? I must appy 15 rules for one adsl link and 15 rules for the other adsl link?

iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -d 0/0 -o ppp0 -j MASQUERADE

eth0      Link encap:Ethernet  HWaddr 00:04:75:C1:12:9B
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth1      Link encap:Ethernet  HWaddr 00:04:75:C1:12:8A
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth2      Link encap:Ethernet  HWaddr 00:04:75:C1:11:3B
         inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0

ppp0 Link encap:Point-to-Point Protocol
inet addr:168.226.152.62 P-t-P:192.168.96.239 Mask:255.255.255.255


ppp1 Link encap:Point-to-Point Protocol
inet addr:200.63.152.109 P-t-P:192.168.96.239 Mask:255.255.255.255


Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
200.32.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 200.32.3.1 0.0.0.0 UG 1 0 0 eth0


192.168.96.239 dev ppp0  proto kernel  scope link  src 168.226.152.62
192.168.96.239 dev ppp1  proto kernel  scope link  src 200.63.152.109
192.168.1.0/24 dev eth2  proto kernel  scope link  src 192.168.1.100
127.0.0.0/8 dev lo  scope link
default via 192.168.96.239 dev ppp0


Thats alll.... Thanks List ....


Martin.... =)

_________________________________________________________________
Consigue aquí las mejores y mas recientes ofertas de trabajo en América Latina y USA: www.yupimsn.com/empleos


_______________________________________________
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