Blame man/man8/tc-route.8

Packit Service 3880ab
.TH "Route classifier in tc" 8 "21 Oct 2015" "iproute2" "Linux"
Packit Service 3880ab
Packit Service 3880ab
.SH NAME
Packit Service 3880ab
route \- route traffic control filter
Packit Service 3880ab
.SH SYNOPSIS
Packit Service 3880ab
.in +8
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.BR tc " " filter " ... " route " [ " from
Packit Service 3880ab
.IR REALM " | "
Packit Service 3880ab
.B fromif
Packit Service 3880ab
.IR TAG " ] [ "
Packit Service 3880ab
.B to
Packit Service 3880ab
.IR REALM " ] [ "
Packit Service 3880ab
.B classid
Packit Service 3880ab
.IR CLASSID " ] [ "
Packit Service 3880ab
.B action
Packit Service 3880ab
.IR ACTION_SPEC " ]"
Packit Service 3880ab
.SH DESCRIPTION
Packit Service 3880ab
Match packets based on routing table entries. This filter centers around the
Packit Service 3880ab
possibility to assign a
Packit Service 3880ab
.B realm
Packit Service 3880ab
to routing table entries. For any packet to be classified by this filter, a
Packit Service 3880ab
routing table lookup is performed and the returned
Packit Service 3880ab
.B realm
Packit Service 3880ab
is used to decide on whether the packet is a match or not.
Packit Service 3880ab
.SH OPTIONS
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI action " ACTION_SPEC"
Packit Service 3880ab
Apply an action from the generic actions framework on matching packets.
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI classid " CLASSID"
Packit Service 3880ab
Push matching packets into the class identified by
Packit Service 3880ab
.IR CLASSID .
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI from " REALM"
Packit Service 3880ab
.TQ
Packit Service 3880ab
.BI fromif " TAG"
Packit Service 3880ab
Perform source route lookups.
Packit Service 3880ab
.I TAG
Packit Service 3880ab
is the name of an interface which must be present on the system at the time of
Packit Service 3880ab
.B tc
Packit Service 3880ab
invocation.
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI to " REALM"
Packit Service 3880ab
Match if normal (i.e., destination) routing returns the given
Packit Service 3880ab
.IR REALM .
Packit Service 3880ab
.SH EXAMPLES
Packit Service 3880ab
Consider the subnet 192.168.2.0/24 being attached to eth0:
Packit Service 3880ab
Packit Service 3880ab
.RS
Packit Service 3880ab
.EX
Packit Service 3880ab
ip route add 192.168.2.0/24 dev eth0 realm 2
Packit Service 3880ab
.EE
Packit Service 3880ab
.RE
Packit Service 3880ab
Packit Service 3880ab
The following
Packit Service 3880ab
.B route
Packit Service 3880ab
filter will then match packets from that subnet:
Packit Service 3880ab
Packit Service 3880ab
.RS
Packit Service 3880ab
.EX
Packit Service 3880ab
tc filter add ... route from 2 classid 1:2
Packit Service 3880ab
.EE
Packit Service 3880ab
.RE
Packit Service 3880ab
Packit Service 3880ab
and pass packets on to class 1:2.
Packit Service 3880ab
.SH NOTES
Packit Service 3880ab
Due to implementation details,
Packit Service 3880ab
.B realm
Packit Service 3880ab
values must be in a range from 0 to 255, inclusive. Alternatively, a verbose
Packit Service 3880ab
name defined in /etc/iproute2/rt_realms may be given instead.
Packit Service 3880ab
.SH SEE ALSO
Packit Service 3880ab
.BR tc (8),
Packit Service 3880ab
.BR ip-route (8)