[LARTC] Not marking using as simple configuration

Linux Advanced Routing and Traffic Control

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

 



Hello all,

I have a very simple configuration and I just can't figure out why the
marking is not being done. I want to have all packets from 10.0.0.0/24 to
20.0.0.1 marked as EF traffic.  What could be wrong?

Any help or ideas would be really appreciated. 

Thanks,
Mario.
----------------------------------------------------------------------------
----------------------------
./tc qdisc add dev eth1 handle 1:0 root dsmark indices 64
./tc class change dev eth1 classid 1:1 dsmark mask 0x3 value 0xb8
./tc filter add dev eth1 parent 1:0 protocol ip prio 4 handle 1: u32 divisor
1
./tc filter add dev eth1 parent 1:0 protocol ip prio 4 u32 match ip src
10.0.0.0/24 match ip dst 20.0.0.1/32 flowid 1:1
----------------------------------------------------------------------------
----------------------------
[root@localhost tc]# ./tc qdisc show dev eth1
qdisc dsmark 1: indices 0x0040
[root@localhost tc]# ./tc class show dev eth1
class dsmark 1:1 parent 1: mask 0x03 value 0xb8
[root@localhost tc]# ./tc filter show dev eth1
filter parent 1: protocol ip pref 4 u32
filter parent 1: protocol ip pref 4 u32 fh 1: ht divisor 1
filter parent 1: protocol ip pref 4 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 4 u32 fh 800::800 order 2048 key ht 800
bkt 0 flowid 1:1
match 0a000000/ffffff00 at 12
match 14000001/ffffffff at 16
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
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