Route classifier in tc(8) Linux Route classifier in tc(8)NAME
route - route traffic control filter
SYNOPSIS
tc filter ... route [ from REALM | fromif TAG ] [ to REALM ] [ classid CLASSID ] [ action ACTION_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. Alternatively, a verbose name defined in
/etc/iproute2/rt_realms may be given instead.
SEE ALSO tc(8), ip-route(8)iproute2 21 Oct 2015 Route classifier in tc(8)
Check Out this Related Man Page
Route classifier in tc(8) Linux Route classifier in tc(8)NAME
route - route traffic control filter
SYNOPSIS
tc filter ... route [ from REALM | fromif TAG ] [ to REALM ] [ classid CLASSID ] [ action ACTION_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. Alternatively, a verbose name defined in
/etc/iproute2/rt_realms may be given instead.
SEE ALSO tc(8), ip-route(8)iproute2 21 Oct 2015 Route classifier in tc(8)
Hi,
My H-UX box has the GW pointing to 10.10.10.1 and I need add it a new route pointing to 192.168.80.x with the GW 10.10.10.13
I tried with:
#route add 192.168.80.2 255.255.255.255 10.10.10.13
but I get: add net 192.168.80.0: gateway 255.255.255.0: Network is unreachable
I tried with... (4 Replies)
Hello All,
I know it's a tricky probably stupid question but I'm stuck.... :(
Is there any way to route different protocols through different eth cards for the same destination in Linux? With route add or something like it?
For instance:
FTP to/from 192.168.1.1 goes through eth0 - gw2... (1 Reply)
Hi,
I am trying to add route command in Solaris 10 machine in the following fashion:
route add -host 10.8.112.10 180.144.1.250 -interface lo0:1
this command fails with an error "lo0:1: bad value"
I want to add a route to 10.8.112.10 that picks 180.144.1.250 as the gateway via the... (3 Replies)
Hi
I have knowledge is a little about Solaris 10.
I have problem route
Question
I have two lan interfaces
nge0 >> 192.168.1.1 / 24 and link up Client1 >> 192.168.1.10 not out internet (GW 192.168.1.254)
nge1 >> 192.168.50.220 /24 and link up Client50 >> 192.168.50.1 can... (2 Replies)
Hello,
I just added a route in solaris 10 system for host to use gateway.
I see that new route in the netstat command
Will this stay after reboot or I have to make any provision for this? Please let me know
Thanks (11 Replies)
how do I make sure that the entry in the routing table on Solaris 8 stay permanent after rebooting the server.
For example
route add 172.20.1.60 -netmask 255.255.255.0 172.20.255.253
Each time the server reboots the entry disappears when using the command netstat -nr (2 Replies)
I was checking routing table, and noticed that our server has a lot packets from localhost:
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
..
127.0.0.1 127.0.0.1 ... (1 Reply)
I need to add a new route on solaris10 machine.
I want that all traffic on the 23 port (telnet) use 192.168.200.1 gateway.
How I do ?
Thank you in advance. (1 Reply)
I am new in AIX and please forgive my poor english.
I know that AIX allow same subnet IPs for different interfaces, which result in multipath routing / route striping.
My question is,
is there any best practice for the persistent and service IP with same subnet to stay on same interface, or... (5 Replies)
AIX version 5.3
when I try to add default gateway
# route add 0 192.168.100.254
Or
# route add default 192.168.100.254
I get the error
0821-275 route: socket: The file access permissions do not allow the specified action.
searching on google i came across similar... (5 Replies)
Assalam o Alaikum!
After configuring and starting service of samba, when I access shared folder from windows XP it gives this error " Network Route was not found".
My server IP 192.168.1.252, client is on same network.
selinux is disabled
smb,conf:
workgroup = WORKGROUP
server string =... (2 Replies)
Solaris 10
I am trying to delete a route using the command:
route -p delete 192.0.0.0 192.1.3.254
The route gets delete but for some reason the route pops back up in the routing table after reboot. I also deleted the /etc/inet/static_routes file and the route still persists after reboot.... (6 Replies)
Hi,
I'm quite new to unix networking and ip tables. I'm running a debian (htpc) server with two NIC's; eth0 and wlan0.
I'm trying to set it up in a way that eth0 is the default interface for internet, but some processes should run through wlan0.
For example, I'm using eth0 for downloads... (2 Replies)
Hi folks,
I have a debian server running an Apache daemon on the eth0 interface. Now from time to time the server has to open an openvpn connection (tun0) to other networks to get some data from there. During this period the Apache is no longer reachable under it's IP address on eth0 because all... (6 Replies)