# man > tc-route(8)

_Route_ _classifier_ _in_ [_tc_(8)](https://www.chedong.com/phpMan.php/man/tc/8/markdown)                       Linux                      _Route_ _classifier_ _in_ [_tc_(8)](https://www.chedong.com/phpMan.php/man/tc/8/markdown)

## NAME
       route - route traffic control filter

## SYNOPSIS
       **tc filter **... **route **[ **from _**REALM_ | **fromif _**TAG_ ] [ **to _**REALM_ ] [ **classid _**CLASSID_ ] [ **action _**AC‐_
               _TION_SPEC_ ]

## DESCRIPTION
       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
       **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_.

       **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
       Consider the subnet 192.168.2.0/24 being attached to eth0:

              ip route add 192.168.2.0/24 dev eth0 realm 2

       The following **route **filter will then match packets from that subnet:

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

       and pass packets on to class 1:2.

## NOTES
       Due  to implementation details, **realm **values must be in a range from 0 to 255, inclusive. Al‐
       ternatively, a verbose name defined in /etc/iproute2/rt_realms may be given instead.

## SEE ALSO
       [**tc**(8)](https://www.chedong.com/phpMan.php/man/tc/8/markdown), [**ip-route**(8)](https://www.chedong.com/phpMan.php/man/ip-route/8/markdown)

iproute2                                     21 Oct 2015                   _Route_ _classifier_ _in_ [_tc_(8)](https://www.chedong.com/phpMan.php/man/tc/8/markdown)
