Results 1 to 2 of 2
hello everybody,
I'm trying to shape bandwidth using HTB method and filtering classes with destination mac address.
for this I've found two codes but none of them seem to filter ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-21-2010 #1Just Joined!
- Join Date
- Dec 2007
- Posts
- 1
mac address traffic shaping
hello everybody,
I'm trying to shape bandwidth using HTB method and filtering classes with destination mac address.
for this I've found two codes but none of them seem to filter bandwidth as i want (test with iperf)
can some one explain me the problem with theses codes
code 1
code2:Code:tc qdisc add dev eth0 root handle 1: htb tc class add dev eth0 parent 1: classid 1:1 htb rate 1000kbit ceil 1000kbit tc filter add dev eth0 parent 1: protocol ip prio 3 u32 match u16 0x0800 0xFFFF at -2 match u16 0xM4M5 0xFFFF at -4 match u32 0xM0M1M2M3 0xFFFFFFFF at -8
ps: mac address here is M0:M1:M2:M3:M4:M5Code:tc qdisc add dev eth0 root handle 1: htb tc class add dev eth0 parent 1: classid 1:1 htb rate 1000kbit ceil 1000kbit tc filter add dev eth0 parent 1: protocol 802_3 prio 3 u32 match u32 0xM0M1M2M3 0xffffffff at 0 match u32 0xM4M50000 0xffff0000 at 4 classid 1:1
- 09-17-2010 #2Just Joined!
- Join Date
- Sep 2010
- Posts
- 2
RE: mac address traffic shaping
I am having the same problem. Did you find a solution?



