Re: tc adding two filters with different protocols

Linux Advanced Routing and Traffic Control

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

 



Nieścierowicz Adam wrote:
Hi,
anyone can help, or explain what i do wrong?

W dniu 16.11.2012 00:23, Nieścierowicz Adam napisał(a):

Hello,

writes the qos where i want classify traffic for two protocol: ip and
pppoe. Example below

---
tc qdisc del root dev eth2
tc qdisc add dev eth2 root handle 1: htb
tc class add dev eth2 parent 1:0 classid 1:1 htb rate 500Mbit ceil
500Mbit

tc filter add dev eth2 parent 1:0 prio 5 protocol ip u32
tc filter add dev eth2 parent 1:0 prio 5 handle 9: protocol ip u32
divisor 256
tc filter add dev eth2 protocol ip parent 1:0 prio 5 u32 ht 800:: match
ip dst 172.16.0.0/22 hashkey mask 0x000000ff at 16 link 9:

tc filter add dev eth2 parent 1:0 prio 6 protocol ppp_ses u32
tc filter add dev eth2 parent 1:0 prio 6 handle 4a: protocol ppp_ses
u32 divisor 256
tc filter add dev eth2 protocol ppp_ses parent 1:0 prio 6 u32 ht 800::
match ip dst 31.41.209.0/24 at 24 hashkey mask 0x000000ff at 24 link 4a:
---

Unfortunately, when you add lines "tc filter add dev eth2 protocol
ppp_ses parent 1:0 prio 6 u32 ht 800:: match ip dst 31.41.209.0/24 at 24
hashkey mask 0x000000ff at 24 link 4a:" protocol change to ip


Maybe avoid using match ip dst 31.41.209.0/24 for ppp_ses and use u32 hex instead -

u32 match u32 1f29d100 ffffff00 at 24


--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux