tc-route(8) — Linux manual page


Route classifier in tc(8)         Linux        Route classifier in tc(8)

NAME         top

       route - route traffic control filter

SYNOPSIS         top

       tc filter ... route [ from REALM | fromif TAG ] [ to REALM ] [
               classid CLASSID ] [ action ACTION_SPEC ]

DESCRIPTION         top

       Match packets based on routing table entries. This filter centers
       around the possibility to assign a realm to routing table
       entries. For any packet to be classified by this filter, a
       routing table lookup is performed and the returned realm is used
       to decide on whether the packet is a match or not.

OPTIONS         top

       action ACTION_SPEC
              Apply an action from the generic actions framework on
              matching packets.

       classid CLASSID
              Push matching packets into the class identified by

       from REALM
       fromif TAG
              Perform source route lookups.  TAG is the name of an
              interface which must be present on the system at the time
              of tc invocation.

       to REALM
              Match if normal (i.e., destination) routing returns the
              given REALM.

EXAMPLES         top

       Consider the subnet being attached to eth0:

              ip route add dev eth0 realm 2

       The following route filter will then match packets from that

              tc filter add ... route from 2 classid 1:2

       and pass packets on to class 1:2.

NOTES         top

       Due to implementation details, realm values must be in a range
       from 0 to 255, inclusive. Alternatively, a verbose name defined
       in /etc/iproute2/rt_realms may be given instead.

SEE ALSO         top

       tc(8), ip-route(8)

COLOPHON         top

       This page is part of the iproute2 (utilities for controlling
       TCP/IP networking and traffic) project.  Information about the
       project can be found at 
       If you have a bug report for this manual page, send it to,  This page was
       obtained from the project's upstream Git repository
       ⟨⟩ on
       2021-08-27.  (At that time, the date of the most recent commit
       that was found in the repository was 2021-08-18.)  If you
       discover any rendering problems in this HTML version of the page,
       or you believe there is a better or more up-to-date source for
       the page, or you have corrections or improvements to the
       information in this COLOPHON (which is not part of the original
       manual page), send a mail to

iproute2                       21 Oct 2015     Route classifier in tc(8)

Pages that refer to this page: tc(8)