Problems with HTB and VLAN

Linux Advanced Routing and Traffic Control

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

 



Hi

I have problems with shaping traffic running through a VLAN. I have done the following set up:

I have a linux box a gateway. I wish to use VLAN on the internal interface (eth0). eth1 is connected to the internet. I will like to be able to shape the dowstream traffic.
I have set up the followingon the gateway:


vconfig add eth0 10
tc qdisc add dev eth0.10 parent root handle 1: htb default 2
tc class add dev eth0.10 classid 1:1 parent 1:0 htb rate 100Mbit ceil 100Mbit
tc class add dev eth0.10 classid 1:2 parent 1:1 htb prio 7 rate 1Kbit ceil 100Mbit
tc class add dev eth0.10 classid 1:10 parent 1:1 htb prio 0 rate 1024Kbit ceil 1024Kbit
tc filter add dev eth0.10 pref 1 proto ip handle 0x1 fw flowid 4:10
iptables -t mangle -A FORWARD -s 10.0.0.0/24 -j MARK --set-mark 0x1


If it send traffic through the VLAN (I have a Linux PC in the othere end), I will only get a performance of about 312Kbit/s. Not 1024Kbit as I would expect.
If I use:
tc filter add dev eth1.1024 parent 4:0 protocol ip prio 0x1 handle 0x100 u32 match ip src 10.0.0.0/24 classid 4:800


I get only 280Kbit/s through.

If I create the setup on eth0 instead on the VLAN it works very well.

Does anybody have a clue?

I have read that Martin Devera recommends to use iptables on VLANs, but as you see it does not make a difference...

Btw.: When I test I connect a PC to eth0 and one to eth1 with VLAN.

Any help will be greatly appreciated!

William

_________________________________________________________________
Has one of the new viruses infected your computer? Find out with a FREE online computer virus scan from McAfee. Take the FreeScan now! http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


_______________________________________________
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