from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites:gentoo.linuxhowtos.org



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

209795

userrating:


May 25th. 2007:
Words

486

Views

258782

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

150100

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





Matc-all classifier in tc

Section: Linux (8)
Updated: 21 Oct 2015
Index Return to Main Contents

 

NAME

matchall - traffic control filter that matches every packet  

SYNOPSIS


tc filter ... matchall [ skip_sw | skip_hw ] [ action ACTION_SPEC ] [ classid CLASSID ]  

DESCRIPTION

The matchall filter allows one to classify every packet that flows on the port and run a action on it.  

OPTIONS

action ACTION_SPEC
Apply an action from the generic actions framework on matching packets.
classid CLASSID
Push matching packets into the class identified by CLASSID.
skip_sw
Do not process filter by software. If hardware has no offload support for this filter, or TC offload is not enabled for the interface, operation will fail.
skip_hw
Do not process filter by hardware.
 

EXAMPLES

To create ingress mirroring from port eth1 to port eth2:

tc qdisc add dev eth1 handle ffff: clsact tc filter add dev eth1 ingress
        matchall skip_sw                      
        action mirred egress mirror           
        dev eth2

The first command creates a clsact qdisc with handle ffff: on device eth1 where the second command attaches a matchall filters on it that mirrors the packets to device eth2 for ingress.

To create egress mirroring from port eth1 to port eth2:

tc qdisc add dev eth1 handle ffff: clsact tc filter add dev eth1 egress
        matchall skip_sw                       
        action mirred egress mirror            
        dev eth2

The first command creates a clsact qdisc with handle ffff: on device eth1 where the second command attaches a matchall filters on it that mirrors the packets to device eth2 for egress.

To sample one of every 100 packets flowing into interface eth0 to psample group 12:

tc qdisc add dev eth0 handle ffff: ingress tc filter add dev eth0 parent ffff: matchall
     action sample rate 100 group 12

 

SEE ALSO

tc(8),


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
SEE ALSO





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 15.5 ms