From: mschonfeld@ubp.edu.ar Date: Fri, 11 Feb 2005 21:52:48 +0000 Subject: Re: [LARTC] priorizing vlans in a bridge Message-Id: <1108158768.420d29309a8a4@email.ubp.edu.ar> List-Id: References: <1108073109.420bda954eda9@email.ubp.edu.ar> In-Reply-To: <1108073109.420bda954eda9@email.ubp.edu.ar> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org If I use the vlans interfaces eth0.1 and eth0.2 in the tc statements, I wou= ld have two independent root qdiscs on each interface, and this won=B4t let me prioritize LAN1 over LAN2. That's why I set this up all on eth0, which is t= he interface that sees all the entire traffic. Any other idea? Thanks for your answers Mensaje citado por "lartc@manchotnetworks.net" : >=20 > Hi, >=20 > You should use eth0.1 and eth0.2 in your tc statements ... >=20 > ciao >=20 > charles >=20 >=20 > On Thu, 2005-02-10 at 23:05, mschonfeld@ubp.edu.ar wrote: > > Hi, this is my Linux Box > >=20 > > ---------------------------- > > LAN 1 -----|--eth1 <---br1--->eth0.1 | > > | \ | > > | eth0--|----- 802.1q tagged 1 Mbps li= nk > > | / | > > LAN 2 -----|--eth2 <---br2--->eth0.2 | > > ---------------------------- > >=20 > > I have to bridge the 2 lans in the left side of the diagram with my lin= ux > box > > running as a bridge. I have to tag the traffic of each lan so I created= the > 2 > > vlans interfaces on eth0 (tag 1 and tag 2). > > All works fine. But now I have to priorize LAN1 traffic so it leaves the > bridge > > before LAN2. Also I need to shape the traffic to the 1 Mbps link. > >=20 > > I read about the "prio" qdisc but it honours the TOS field of the IP > packets, > > and I don't want to unless it was really necessary. > > I read about the "prio" option of the htb qdisc and made some scripts, = but > they > > don't work as I expected. > >=20 > > HTB script: > >=20 > > tc qdisc add dev eth0 root handle 1: htb > > tc class add dev eth0 parent 1: classid 1:1 htb rate 1000kbit > >=20 > > tc class add dev eth0 parent 1:1 classid 1:11 htb rate 500kbit ceil > 1000kbit prio 1 > > tc filter add dev eth0 parent 1: prio 1 protocol ip handle 1 fw classid > 1:11 > > iptables -t mangle -A PREROUTING -i eth1 -j MARK --set-mark 1 > >=20 > > tc class add dev eth0 parent 1:1 classid 1:12 htb rate 500kbit ceil 800= kbit > prio 2 > > tc filter add dev eth0 parent 1: prio 1 protocol ip handle 2 fw classid > 1:12 > > iptables -t mangle -A PREROUTING -i eth2 -j MARK --set-mark 2 > >=20 > > What do you suggest me? > > Thanks in advance. > > _______________________________________________ > > LARTC mailing list / LARTC@mailman.ds9a.nl > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >=20 > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >=20 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/