{
    "mode": "man",
    "parameter": "tc-route",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/tc-route/8/json",
    "generated": "2026-08-14T00:05:18Z",
    "synopsis": "tc filter ... route [ from REALM | fromif TAG ] [ to REALM ] [ classid CLASSID ] [ action AC‐\nTIONSPEC ]",
    "sections": {
        "NAME": {
            "content": "route - route traffic control filter\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "tc filter ... route [ from REALM | fromif TAG ] [ to REALM ] [ classid CLASSID ] [ action AC‐\nTIONSPEC ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Match  packets  based on routing table entries. This filter centers around the possibility to\nassign a realm to routing table entries. For any packet to be classified by  this  filter,  a\nrouting  table  lookup  is  performed and the returned realm is used to decide on whether the\npacket is a match or not.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "action ACTIONSPEC\nApply an action from the generic actions framework on matching packets.\n\nclassid CLASSID\nPush matching packets into the class identified by CLASSID.\n\nfrom REALM\nfromif TAG\nPerform source route lookups.  TAG is the name of an interface which must  be  present\non the system at the time of tc invocation.\n\nto REALM\nMatch if normal (i.e., destination) routing returns the given REALM.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "Consider the subnet 192.168.2.0/24 being attached to eth0:\n\nip route add 192.168.2.0/24 dev eth0 realm 2\n\nThe following route filter will then match packets from that subnet:\n\ntc filter add ... route from 2 classid 1:2\n\nand pass packets on to class 1:2.\n",
            "subsections": []
        },
        "NOTES": {
            "content": "Due  to implementation details, realm values must be in a range from 0 to 255, inclusive. Al‐\nternatively, a verbose name defined in /etc/iproute2/rtrealms may be given instead.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "tc(8), ip-route(8)\n\niproute2                                     21 Oct 2015                   Route classifier in tc(8)",
            "subsections": []
        }
    },
    "summary": "route - route traffic control filter",
    "flags": [],
    "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."
    ],
    "see_also": [
        {
            "name": "tc",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/tc/8/json"
        },
        {
            "name": "ip-route",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/ip-route/8/json"
        },
        {
            "name": "tc",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/tc/8/json"
        }
    ]
}