Dear All, I have configuration like this : DVB Modem | | ___Link A \ / trunk / CiscoRouter ------------CiscoSwitch-------Link B \___ Link C Now i want to put a linux bandwith manager using htb to controll Link A-C bandwith, but i don''t know where to put the linux pc. I ever try to put the linux pc at the trunked line between CiscoRouter and CiscoSwitch but found that all traffic always go to default class not to appropriate class and i think that''s because of VLAN 802.1Q data format at that line so the filter always miss. Any suggestion abt this kind of configuration?
On Thu, 2003-10-02 at 06:41, Kristiadi Himawan wrote:> Dear All, > > I have configuration like this : > > DVB Modem > | | ___Link A > \ / trunk / > CiscoRouter ------------CiscoSwitch-------Link B > \___ > Link C > > Now i want to put a linux bandwith manager using htb to controll Link > A-C bandwith, > but i don''t know where to put the linux pc. > I ever try to put the linux pc at the trunked line between CiscoRouter > and CiscoSwitch but found that all traffic always go to default class > not to appropriate class > and i think that''s because of VLAN 802.1Q data format at that line so > the filter always miss. > > Any suggestion abt this kind of configuration?remove all the cisco equipment and replace with Linux.. 8-) Linux+iproute2+tc will easily do what you ask, and the cisco will not. The answer is that simple. I wish there was a nice GUI config for this, but there is not, and it is very complicated for me to make. I see your earlier question about "how to make this in Linux", and I would suggest you replace your VLAN config with a new Linux IPRoute2+tc config. There will be a lot of reading for you to do, however. 8-/ Google for "policy routing" and read about policy routing theory. I think cisco should be very concerned about the day that Linux IPRoute2+tc has a GUI... Perhaps, after that day cisco will suddenly design routers that will run Linux. 8-)) best regards, Steve _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
About your first option to plug the linux box to the switch and create vlan interfaces on it, i have try that before and the result some network can''t reach because of arp uncomplete. And the second option to put linux box between router and switch is the better choice but i face new problem on it. I already create transparent bridge (using eth0 and eth1) on the linux box and it''s work. But the problem occur when i try to shape the link using HTB or CBQ, the filter always miss. I will try your suggestion to bridge every vlan interfaces in the linux box. I hope this is the solution. Btw, do you already try this kind of configuration? Thnx ----- Original Message ----- From: "Ryan Goldberg" <rgoldber-list-lartc@bitburst.com> To: "Kristiadi Himawan" <kristiadi_himawan@dtp.net.id> Sent: Thursday, October 02, 2003 1:43 AM Subject: Re: [LARTC] Htb on trunked line> On Wed, 2003-10-01 at 13:41, Kristiadi Himawan wrote: > > Dear All, > > > > I have configuration like this : > > > > DVB Modem > > | | ___Link A > > \ / trunk / > > CiscoRouter ------------CiscoSwitch-------Link B > > \___Link C > > Plug the linux box into the switch, set the link to dot1q, add > subinterfaces on the linux box, set As and Cs routes to each other via > the IPs on those subinterfaces, and do the shaping on those > subinterfaces. Should work no problem. > > Or are you trying to put the linux box in between the switch and > router? Then you''d have to talk dot1q to both devices and bridge each > corresponding valn to each othter (e.g eth0.3 bridged with eth1.3) and > do the shaping on those interfaces. That should also work. > > Ryan > > > > I don''t about trying to shape on a "raw" trunked link... > >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Ya, i already use linux+iproute2+tc.The shaping is fine but not with the filter. I already read a lot of docs but can''t found the same case so if you have appropriate document links, i will be glad to read that... :) Yeah...abt cisco i hope they hear that too :)) ----- Original Message ----- From: "Steve Wright" <paua@quicksilver.net.nz> To: "Kristiadi Himawan" <kristiadi_himawan@dtp.net.id> Cc: "lartc" <lartc@mailman.ds9a.nl> Sent: Thursday, October 02, 2003 1:55 AM Subject: Re: [LARTC] Htb on trunked line> On Thu, 2003-10-02 at 06:41, Kristiadi Himawan wrote: > > Dear All, > > > > I have configuration like this : > > > > DVB Modem > > | | ___Link A > > \ / trunk / > > CiscoRouter ------------CiscoSwitch-------Link B > > \___ > > Link C > > > > Now i want to put a linux bandwith manager using htb to controll Link > > A-C bandwith, > > but i don''t know where to put the linux pc. > > I ever try to put the linux pc at the trunked line between CiscoRouter > > and CiscoSwitch but found that all traffic always go to default class > > not to appropriate class > > and i think that''s because of VLAN 802.1Q data format at that line so > > the filter always miss. > > > > Any suggestion abt this kind of configuration? > > > remove all the cisco equipment and replace with Linux.. 8-) > > Linux+iproute2+tc will easily do what you ask, and the cisco will not. > The answer is that simple. > I wish there was a nice GUI config for this, but there is not, and it is > very complicated for me to make. > > I see your earlier question about "how to make this in Linux", and I > would suggest you replace your VLAN config with a new Linux IPRoute2+tc > config. There will be a lot of reading for you to do, however. 8-/ > Google for "policy routing" and read about policy routing theory. > > I think cisco should be very concerned about the day that Linux > IPRoute2+tc has a GUI... Perhaps, after that day cisco will suddenly > design routers that will run Linux. 8-)) > > > best regards, > Steve > > > _______________________________________________ > 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/
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I am doing traffic shaping with HTB, and my msn messenger version 6 automatically disconnects every 5 minutes or so. Anyboyd had the same problem? I am driving myself mad. Thank you! -----BEGIN PGP SIGNATURE----- Version: PGP 8.0 iQA/AwUBP3tT3H7diNnrrZKsEQKtvgCgyDFKqKXfhWr/ESGMp6/n5ivDpBIAoPa6 BwDoMvpcalwTekHxcgwb1fy5 =VaRw -----END PGP SIGNATURE----- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Wed, 2003-10-01 at 15:39, Kristiadi Himawan wrote:> About your first option to plug the linux box to the switch and create vlan > interfaces on it, i have try that before and the result some network can''t > reach because of arp uncomplete.Are A and C on different IP networks? With routes to each other via the IPs on the subinterfaces on the linux box and they can arp for those IPs, I don''t see where the arp issue would come from.> And the second option to put linux box between router and switch is the > better choice but i face new problem on it. > I already create transparent bridge (using eth0 and eth1) on the linux box > and it''s work. > But the problem occur when i try to shape the link using HTB or CBQ, the > filter always miss. > I will try your suggestion to bridge every vlan interfaces in the linux box. > I hope this is the solution.Yeah we do this it works fine. That is, with a bridge per VLAN. If you want to share bandwidth amond the interfaces though, you need to set up IMQ, which I have not done.> > On Wed, 2003-10-01 at 13:41, Kristiadi Himawan wrote: > > > Dear All, > > > > > > I have configuration like this : > > > > > > DVB Modem > > > | | ___Link A > > > \ / trunk / > > > CiscoRouter ------------CiscoSwitch-------Link B > > > \___Link C > > > > Ryan Goldberg wrote: > > Plug the linux box into the switch, set the link to dot1q, add > > subinterfaces on the linux box, set As and Cs routes to each other via > > the IPs on those subinterfaces, and do the shaping on those > > subinterfaces. Should work no problem. > > > > Or are you trying to put the linux box in between the switch and > > router? Then you''d have to talk dot1q to both devices and bridge each > > corresponding valn to each othter (e.g eth0.3 bridged with eth1.3) and > > do the shaping on those interfaces. That should also work._______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Yah, A and C on different ip networks and also different vlan. It''s only example, in the real test i use zebra with a lot of vlan interfaces and connect to some cisco switch. And discover that some networks in different vlan can''t reach, when i try to see unreachable networks using arp, i found uncomplete arp from it. Until now i don''t know why some vlans works fine but the others not.. :( I think it''s because arp, may be need to wait for long time before arp get complete. I try this just for half an hour. ----- Original Message ----- From: "Ryan Goldberg" <rgoldber-list-lartc@bitburst.com> To: "Kristiadi Himawan" <kristiadi_himawan@dtp.net.id> Cc: "lartc" <lartc@mailman.ds9a.nl> Sent: Thursday, October 02, 2003 6:02 AM Subject: Re: [LARTC] Htb on trunked line> On Wed, 2003-10-01 at 15:39, Kristiadi Himawan wrote: > > About your first option to plug the linux box to the switch and createvlan> > interfaces on it, i have try that before and the result some networkcan''t> > reach because of arp uncomplete. > > Are A and C on different IP networks? With routes to each other via the > IPs on the subinterfaces on the linux box and they can arp for those > IPs, I don''t see where the arp issue would come from. > > > And the second option to put linux box between router and switch is the > > better choice but i face new problem on it. > > I already create transparent bridge (using eth0 and eth1) on the linuxbox> > and it''s work. > > But the problem occur when i try to shape the link using HTB or CBQ, the > > filter always miss. > > I will try your suggestion to bridge every vlan interfaces in the linuxbox.> > I hope this is the solution. > > Yeah we do this it works fine. That is, with a bridge per VLAN. If you > want to share bandwidth amond the interfaces though, you need to set up > IMQ, which I have not done. > > > > On Wed, 2003-10-01 at 13:41, Kristiadi Himawan wrote: > > > > Dear All, > > > > > > > > I have configuration like this : > > > > > > > > DVB Modem > > > > | | ___Link A > > > > \ / trunk / > > > > CiscoRouter ------------CiscoSwitch-------Link B > > > > \___Link C > > > > > > Ryan Goldberg wrote: > > > Plug the linux box into the switch, set the link to dot1q, add > > > subinterfaces on the linux box, set As and Cs routes to each other via > > > the IPs on those subinterfaces, and do the shaping on those > > > subinterfaces. Should work no problem. > > > > > > Or are you trying to put the linux box in between the switch and > > > router? Then you''d have to talk dot1q to both devices and bridge each > > > corresponding valn to each othter (e.g eth0.3 bridged with eth1.3) and > > > do the shaping on those interfaces. That should also work. > > >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I am running MSN Messenger v6 and also running HTB with traffic shaping. I''m not having any problems with Messenger. Do you have a firewall which might be interfering with your Messenger connection? WDW ----- Original Message ----- From: "GoMi" <gomi@perezoso.net> To: "''lartc''" <lartc@mailman.ds9a.nl> Sent: Wednesday, October 01, 2003 6:23 PM Subject: [LARTC] MSN Messenger automatically disconnects> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I am doing traffic shaping with HTB, and my msn messenger version 6automatically disconnects every 5 minutes or so. Anyboyd had the same problem? I am driving myself mad. Thank you!> > -----BEGIN PGP SIGNATURE----- > Version: PGP 8.0 > > iQA/AwUBP3tT3H7diNnrrZKsEQKtvgCgyDFKqKXfhWr/ESGMp6/n5ivDpBIAoPa6 > BwDoMvpcalwTekHxcgwb1fy5 > =VaRw > -----END PGP SIGNATURE----- > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > >**************************************************************************** ******************> * This message has been scanned by CityNET''s email scanner for viruses anddangerous content *> * and is believed to be clean. CityNET is proud to use MailScanner. Formore information *> * concerning MailScanner, visit http://www.mailscanner.info*>**************************************************************************** ******************> >********************************************************************************************** * This message has been scanned by CityNET''s email scanner for viruses and dangerous content * * and is believed to be clean. CityNET is proud to use MailScanner. For more information * * concerning MailScanner, visit http://www.mailscanner.info * ********************************************************************************************** _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I have try to create vlan from both side, eth0.106 and eth1.106 also br0.106 but why traffic from vlan 106 didn''t enter into eth0.106,eth1.106,br0.106 although there''s traffic. Here''s the interfaces statistic : br0 Link encap:Ethernet HWaddr 00:04:75:DA:26:34 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4101545 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:255233879 (243.4 Mb) TX bytes:0 (0.0 b) br0.106 Link encap:Ethernet HWaddr 00:04:75:DA:26:34 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) eth0 Link encap:Ethernet HWaddr 00:04:75:E9:58:B3 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2064270 errors:0 dropped:0 overruns:1 frame:0 TX packets:2377003 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:152157356 (145.1 Mb) TX bytes:342126806 (326.2 Mb) Interrupt:5 Base address:0xd800 eth0.106 Link encap:Ethernet HWaddr 00:04:75:E9:58:B3 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) eth1 Link encap:Ethernet HWaddr 00:04:75:DA:26:34 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2462723 errors:0 dropped:0 overruns:1 frame:0 TX packets:1976909 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:348059246 (331.9 Mb) TX bytes:146839806 (140.0 Mb) Interrupt:9 Base address:0xd880 eth1.106 Link encap:Ethernet HWaddr 00:04:75:DA:26:34 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Here is tcpdump result from br0 : 14:47:00.374281 802.1Q vlan#106 P0 noc5.xxx.xxx.xx.33288 > IP-160-227.xxx.xxx.xx.ssh: . ack 112 win 63712 <nop,nop,timestamp 9250021 146295576> (DF) [tos 0x10] 14:47:00.578201 802.1d config 8001.00:0a:b7:ea:fa:00.8002 root 8001.00:0a:b7:ea:fa:00 pathcost 0 age 0 max 20 hello 2 fdelay 15 14:47:00.579819 0:a:b7:ea:fa:2 > 1:0:c:cc:cc:cd snap ui/C len=39 14:47:00.698593 802.1Q vlan#102 P7 1:0:c:cc:cc:cd > 0:a:b7:ea:fa:2 snap ui/C len=39 14:47:00.710374 802.1Q vlan#106 P7 1:0:c:cc:cc:cd > 0:a:b7:ea:fa:2 snap ui/C len=39 14:47:01.215717 802.1Q vlan#1 P2 CDP v2, ttl=180s DevID ''sw2-customer-5thfl'' Addr (1): IPv4 192.168.2.6 PortID ''FastEthernet0/8'' CAP 0x28[|cdp] Any suggestion why ? ----- Original Message ----- From: "Ryan Goldberg" <rgoldber-list-lartc@bitburst.com> To: "Kristiadi Himawan" <kristiadi_himawan@dtp.net.id> Sent: Thursday, October 02, 2003 1:43 AM Subject: Re: [LARTC] Htb on trunked line> On Wed, 2003-10-01 at 13:41, Kristiadi Himawan wrote: > > Dear All, > > > > I have configuration like this : > > > > DVB Modem > > | | ___Link A > > \ / trunk / > > CiscoRouter ------------CiscoSwitch-------Link B > > \___Link C > > Plug the linux box into the switch, set the link to dot1q, add > subinterfaces on the linux box, set As and Cs routes to each other via > the IPs on those subinterfaces, and do the shaping on those > subinterfaces. Should work no problem. > > Or are you trying to put the linux box in between the switch and > router? Then you''d have to talk dot1q to both devices and bridge each > corresponding valn to each othter (e.g eth0.3 bridged with eth1.3) and > do the shaping on those interfaces. That should also work. > > Ryan > > > > I don''t about trying to shape on a "raw" trunked link... > >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Mon, 2003-10-06 at 01:14, Kristiadi Himawan wrote:> So you already succeed on bridging per vlan, > could you tell me how to make such kind of configurationI''ll see if I can remember to grab the config from work today. But there shouldn''t be much do it. For instance our linux box sits between a router and a 2924. We trunk on port 24, and bridge 23 vlans across into ports 1 - 23. The linux box has eth0 and eth1, and interfaces eth0.1, eth1.1 through eth0.23, eth1.23 are configured (vlans), and then we create 23 bridges br1 through br23 and apply shaping to eth0.x and eth1.x. Ryan _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Here is my scenario, # create bridge 0 brctl addbr br0 brctl stp br0 off brctl addif br0 eth0 brctl addif br0 eth1 ifconfig eth0 up ifconfig eth1 up ifconfig br0 up #create vlan 106 vconfig add eth0 106 vconfig add eth1 106 #create bridge 106 (vlan 106) brctl addbr br106 brctl addif br106 eth0.106 brctl addif br106 eth1.106 I expect packet with vlan 106 would go to br106 and the others to br0. Am I right? ----- Original Message ----- From: "Ryan Goldberg" <rgoldber-list-lartc@bitburst.com> To: "Kristiadi Himawan" <kristiadi_himawan@dtp.net.id> Cc: <lartc@mailman.ds9a.nl> Sent: Monday, October 06, 2003 5:58 PM Subject: Re: [LARTC] Htb on trunked line> On Mon, 2003-10-06 at 01:14, Kristiadi Himawan wrote: > > So you already succeed on bridging per vlan, > > could you tell me how to make such kind of configuration > > I''ll see if I can remember to grab the config from work today. But > there shouldn''t be much do it. For instance our linux box sits between > a router and a 2924. We trunk on port 24, and bridge 23 vlans across > into ports 1 - 23. The linux box has eth0 and eth1, and interfaces > eth0.1, eth1.1 through eth0.23, eth1.23 are configured (vlans), and then > we create 23 bridges br1 through br23 and apply shaping to eth0.x and > eth1.x. > > Ryan > > _______________________________________________ > 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/