Hi, Thanks for the reply. Thats where the problem starts. If I set ppp0 as the default gw the internet doesnt work anymore. This is how im doing it... route del default route add default gw 217.32.81.74 dev ppp0 if I put it back to ppp1... route del default route add default gw 217.32.68.73 dev ppp1 It works fine again. Whats up with that? Cheers, Chris ----- Original Message ----- From: "andybr" <andybr@bol.com.br> To: <cbolton@hirstanddanson.co.uk> Cc: <lartc@mailman.ds9a.nl> Sent: Thursday, January 15, 2004 1:11 AM Subject: Re:[LARTC] simple(?!?) source routing > Hi all, > > This is easy. First let ppp0 as your default gateway and > use iproute to create a table call any name you want and > then you put ppp1 default route inside that table. After > that you have to create a rule to put the host you would > like insede it and dont forget to put a rule in the > iptables saying that everything going out via ppp1 SNAT - > -to IP_PPP1_EXTERNAL. ;) > > []´s > Anderson > > > > Hi, > > > > I''ve set up a Linux box with redhat on to act as an int > ernet gateway and I''m running into a few problems. Its g > ot two adsl modems connected to it, both connected to sep > erate 512kbs lines. Now I''ve followed the simple source > routing in the advanced routing howto to the letter but i > t doesnt work. > > > > I''ve got it autoconnecting on startup and redhat puts p > pp1 as the default gateway, this is then setup for masque > rading for the entire network. Therefore I''ve tried sett > ing up ppp0 as the deafult gateway for only one computer > (10.0.0.11), as it says at http://lartc.org/howto/lartc.r > pdb.html#LARTC.RPDB.SIMPLE I''ve done everything it says t > here and im 99% sure I''ve put the right ip addreses in et > c. When Ive gone through it that computer is no longer a > ble to access the net (the rest of the network is unaffec > ted). > > > > I''m pretty sure its the way ppp0 is configured, if I se > t it up so 10.0.0.11 uses ppp1 instead of ppp0 (ip rule a > dd default via xxx.xxx.xxx.xxx dev ppp1 table chris) it w > orks fine but obviously thers no point in that. > > > > Hope all this makes sence to someone, it baerly does ti > me. May thanks in advance. > > > > Chris > > > __________________________________________________________________________ > Acabe com aquelas janelinhas que pulam na sua tela. > AntiPop-up UOL - É grátis! > http://antipopup.uol.com.br/ > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hi, Found the problem, usb timeout errors in /var/log.messages relating to speedtouch modems, had the problem before so its nothing new. Thanks again, Chris ----- Original Message ----- From: "Chris Bolton" <cbolton@hirstanddanson.co.uk> Cc: <lartc@mailman.ds9a.nl> Sent: Thursday, January 15, 2004 8:37 AM Subject: Fw: Re:[LARTC] simple(?!?) source routing> Hi, > > Thanks for the reply. Thats where the problem starts. If I set ppp0 as > the > default gw the internet doesnt work anymore. This is how im doing it... > > route del default > route add default gw 217.32.81.74 dev ppp0 > > if I put it back to ppp1... > > route del default > route add default gw 217.32.68.73 dev ppp1 > > It works fine again. Whats up with that? > > Cheers, > Chris > ----- Original Message ----- > From: "andybr" <andybr@bol.com.br> > To: <cbolton@hirstanddanson.co.uk> > Cc: <lartc@mailman.ds9a.nl> > Sent: Thursday, January 15, 2004 1:11 AM > Subject: Re:[LARTC] simple(?!?) source routing > > > > Hi all, > > > > This is easy. First let ppp0 as your default gateway and > > use iproute to create a table call any name you want and > > then you put ppp1 default route inside that table. After > > that you have to create a rule to put the host you would > > like insede it and dont forget to put a rule in the > > iptables saying that everything going out via ppp1 SNAT - > > -to IP_PPP1_EXTERNAL. ;) > > > > []´s > > Anderson > > > > > > > Hi, > > > > > > I''ve set up a Linux box with redhat on to act as an int > > ernet gateway and I''m running into a few problems. Its g > > ot two adsl modems connected to it, both connected to sep > > erate 512kbs lines. Now I''ve followed the simple source > > routing in the advanced routing howto to the letter but i > > t doesnt work. > > > > > > I''ve got it autoconnecting on startup and redhat puts p > > pp1 as the default gateway, this is then setup for masque > > rading for the entire network. Therefore I''ve tried sett > > ing up ppp0 as the deafult gateway for only one computer > > (10.0.0.11), as it says at http://lartc.org/howto/lartc.r > > pdb.html#LARTC.RPDB.SIMPLE I''ve done everything it says t > > here and im 99% sure I''ve put the right ip addreses in et > > c. When Ive gone through it that computer is no longer a > > ble to access the net (the rest of the network is unaffec > > ted). > > > > > > I''m pretty sure its the way ppp0 is configured, if I se > > t it up so 10.0.0.11 uses ppp1 instead of ppp0 (ip rule a > > dd default via xxx.xxx.xxx.xxx dev ppp1 table chris) it w > > orks fine but obviously thers no point in that. > > > > > > Hope all this makes sence to someone, it baerly does ti > > me. May thanks in advance. > > > > > > Chris > > > > > > > __________________________________________________________________________ > > Acabe com aquelas janelinhas que pulam na sua tela. > > AntiPop-up UOL - É grátis! > > http://antipopup.uol.com.br/ > > > > > > _______________________________________________ > > LARTC mailing list / LARTC@mailman.ds9a.nl > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I have a setup based on htb and sfq qdiscs. When more than 100 users get connected to my lan, my internet setup works considerably bad. - I have a linux box with 1 eth card going to my switch (where the hubs connect to) and to eth cards to both adsl (2Mbit each) doing load balancing - My question is, is there a possibility the single ethcard cant cope with all the load? I have found no answers My setup: My adsl are 2Mbit down / 300kbit up -> but i only let each eth card send to each adsl router 150kbit to avoid collapsing during high load. DEV=eth1 tc qdisc add dev ${DEV} handle 1: root htb default 20 tc class add dev ${DEV} parent 1:1 classid 1:1 htb rate 150kbit burst 6k ######################################## ## Interactive traffic tc class add dev ${DEV} parent 1:1 classid 1:10 htb rate 50kbit ceil 150kbit b tc qdisc add dev ${DEV} parent 1:10 handle 10: sfq perturb 10 tc filter add dev ${DEV} protocol ip parent 1:0 handle 1 fw classid 1:10 ######################################## ## Non-Interactive Trafic tc class add dev ${DEV} parent 1:1 classid 1:20 htb rate 50kbit ceil 100kbit qu tc qdisc add dev ${DEV} parent 1:20 handle 20: esfq perturb 10 depth 15 tc filter add dev ${DEV} protocol ip parent 1:0 handle 2 fw classid 1:20 tc filter add dev ${DEV} protocol ip parent 1:0 handle 6 fw classid 1:20 ######################################## ## SYN,ACK Trafic tc class add dev ${DEV} parent 1:1 classid 1:30 htb rate 45kbit ceil 100kbit qu tc qdisc add dev ${DEV} parent 1:30 handle 30: sfq perturb 10 tc filter add dev ${DEV} protocol ip parent 1:0 handle 3 fw classid 1:30 ######################################## ## ICMP Trafic tc class add dev ${DEV} parent 1:1 classid 1:40 htb rate 5kbit quantum 1500 bur tc qdisc add dev ${DEV} parent 1:40 handle 40: pfifo tc filter add dev ${DEV} protocol ip parent 1:0 handle 4 fw classid 1:40 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/