[LARTC] Confusion...

Linux Advanced Routing and Traffic Control

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

 



--=.O5hiwTadimPZT(
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

	Ok, I've went and confused myself again :( With the following rules:

tc qdisc add dev eth0 root handle 1: htb default 255
tc class add dev eth0 parent 1: classid 1:1 htb rate 10mbit

tc class add dev eth0 parent 1:1 classid 1:255 htb rate 64kbit ceil
128kbit

tc qdisc add dev eth0 parent 1:255 sfq perturb 10

tc class add dev eth0 parent 1:1 classid 1:10 htb rate 4Mbit ceil 5Mbit

tc class add dev eth0 parent 1:10 classid 1:11 htb rate 256kbit \
   ceil 512kbit prio 1
tc class add dev eth0 parent 1:10 classid 1:12 htb rate 256kbit \
   ceil 512kbit prio 2
tc class add dev eth0 parent 1:10 classid 1:13 htb rate 256kbit \
   ceil 512kbit prio 3

tc qdisc add dev eth0 parent 1:11 handle 11: sfq perturb 10
tc qdisc add dev eth0 parent 1:12 handle 12: sfq perturb 10
tc qdisc add dev eth0 parent 1:13 handle 13: sfq perturb 10

tc filter add dev eth0 parent 1:10 protocol ip handle 11 fw classid 1:11
tc filter add dev eth0 parent 1:10 protocol ip handle 12 fw classid 1:12
tc filter add dev eth0 parent 1:10 protocol ip handle 13 fw classid 1:13

	And the folowing fmarks:

 pkts bytes target     prot opt in     out     source              
destination         
   33  3308 MARK       udp  --  eth1   *       0.0.0.0/0           
0.0.0.0/0          MARK set 0xb 
    0     0 MARK       tcp  --  eth1   *       0.0.0.0/0           
0.0.0.0/0          tcp dpt:53 MARK set 0xb 
  288 44869 MARK       tcp  --  eth1   *       0.0.0.0/0           
0.0.0.0/0          tcp dpt:80 MARK set 0xc 
 1204  133K MARK       ah   --  eth1   *       0.0.0.0/0           
0.0.0.0/0          MARK set 0xd 


	Why is it everything goes to 1:255, the default?

--- 
Homer Parker                  /"\ ASCII Ribbon Campaign
                              \ / No HTML/RTF in email
http://www.homershut.net       x  No Word docs in email
telnet://bbs.homershut.net    / \ Respect for open standards

This e-mail message is 100% Microsoft free!

WARNING: THIS ACCOUNT BELONGS TO A RABID
ANTI-SPAMMER NET-NAZI DOT-COMMUNIST!!


--=.O5hiwTadimPZT(
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+B+bTrgrN227HZ+8RAl2AAKCiVvoRgrO+HAZqDbqfpA93ntGq/ACeKtRA
9wEfetuCiyPcINb16g9P5sU=
=LXuP
-----END PGP SIGNATURE-----

--=.O5hiwTadimPZT(--


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