LARTC
[Top] [All Lists]

Re: [LARTC] egress bandwidth not limited / limitedextremely inaccurately

To: lists@andyfurniss.entadsl.com
Subject: Re: [LARTC] egress bandwidth not limited / limitedextremely inaccurately
From: Nikolay Kichukov <hijacker@oldum.net>
Date: Fri, 19 Jan 2007 10:37:15 +0200
Cc: lartc@mailman.ds9a.nl
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
In-reply-to: <45B0022C.9020705@andyfurniss.entadsl.com>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <45AC22ED.4060107@skula.com> <45ACE6DE.2020002@andyfurniss.entadsl.com><45AD05D6.1070301@skula.com> <45AE92A2.90400@andyfurniss.entadsl.com> <002a01c73ad8$50e43af0$0200a8c0@ccja> <45B0022C.9020705@andyfurniss.entadsl.com>
Sender: lartc-bounces@mailman.ds9a.nl
User-agent: Icedove 1.5.0.9 (X11/20061220)
Cheers Andy,
That clarifies;-)

Regards,
-nik

Andy Furniss wrote:
Nikolay Kichukov wrote:
Hello Andy,
How do one create such a filter to catch arp/other link layer traffic? Can
you give us one such example?

A quick test on ingress

#tc qdisc add dev eth0 ingress

Classify all ip traffic

#tc filter add dev eth0 parent ffff: prio 1 protocol ip u32 match u32 0 0 flowid :1

All arp

#tc filter add dev eth0 parent ffff: prio 2 protocol arp u32 match u32 0 0 flowid :2

Anything else

#tc filter add dev eth0 parent ffff: prio 3 protocol all u32 match u32 0 0 flowid :3

Look at the counters

#tc -s filter ls dev eth0 parent ffff:

Delete everything ingress on eth0

#tc qdisc del dev eth0 ingress


You can use ethertype protocol numbers in place of arp/ip.
Use the prio to make sure the catch alls are last in the filters you use - prio 1 is the highest for filters.

Andy.

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>