RtssRoute
RtssRoute displays and manipulates network routing tables.
Usage
You must use one of the following commands when using RtssRoute:
Rtssrun RtssRoute.rtss -a -n <Interface> -t <Destination> -p <Prefix> -h <Nexthop> [-m <metric>]
Rtssrun RtssRoute.rtss -r -n <Interface> -t <Destination> -p <Prefix>
Rtssrun RtssRoute.rtss -d
For example:
Rtssrun RtssRoute -a -n RtE1000 -t 5.6.7.8 -p 24 -h 1.2.3.4 -m 1
Option | Description |
---|---|
-d |
Displays all entries from the table. |
-r |
Removes the specified route. |
-a |
Adds the specified route. |
-n <Interface> |
Specifies the interface whose route is being modified. |
-t <Destination> |
Specifies the destination address for the route. |
-p <Prefix> |
Specifies the prefix parameter, a subnet mask, for this route entry. Must be less than or equal to 32 for an IPv4 route, or less than or equal to 128 for an IPv6 route. |
-h <Nexthop> |
Specifies the next hop address for the route. |
-m <metric> |
Specifies the metric, that is, cost of the route. |
Examples
NOTE: The addresses used in the following examples are for demonstrative purposes only.
Example | Diagram | Command | Description |
---|---|---|---|
IPv4 |
|
|
In order to reach the destination IP addresses matching the 192.168.1.X pattern, use the router at 192.168.5.200. NOTE: The metric parameter is set to 1 because there is 1 router to cross to reach that destination. NOTE: In this example, this command is executed on the IP host at address 102.168.5.200 |
IPv6 |
|
|
In order to reach the destination IPv6 addresses matching the FC00:12:12:12:W:X:Y:Z pattern from Dev1, use the router at FC00:11:11:11::1/64. |
Related topics: