display rip route
Use display rip route to display routing information for a RIP process.
Syntax
display rip process-id route [ ip-address { mask-length | mask } [ verbose ] | peer ip-address | statistics ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies a RIP process by its ID in the range of 1 to 65535.
ip-address { mask-length | mask }: Displays route information for the specified IP address.
verbose: Displays all routing information for the specified destination IP address. If you do not specify this keyword, the command displays only information about optimal routes with the specified destination IP address.
peer ip-address: Displays route information learned from the specified neighbor.
statistics: Displays route statistics, including the total number of routes and number of routes from each neighbor.
Usage guidelines
If no optional parameters are specified, the display rip process-id route command displays all routing information for a RIP process.
Examples
# Display all routing information for RIP process 1.
<Sysname> display rip 1 route Route Flags: R - RIP, T - TRIP P - Permanent, A - Aging, S - Suppressed, G - Garbage-collect D - Direct, O - Optimal, F - Flush to RIB ---------------------------------------------------------------------------- Peer 1.1.1.1 on Vlan-interface10 Destination/Mask Nexthop Cost Tag Flags Sec 3.0.0.0/8 1.1.1.1 1 0 RAOF 24 Local route Destination/Mask Nexthop Cost Tag Flags Sec 4.4.4.4/32 0.0.0.0 0 0 RDOF - 1.1.1.0/24 0.0.0.0 0 0 RDOF -
# Display specified routing information for RIP process 1.
<Sysname> display rip 1 route 3.0.0.0 8 verbose Route Flags: R - RIP, T - TRIP P - Permanent, A - Aging, S - Suppressed, G - Garbage-collect D - Direct, O - Optimal, F - Flush to RIB ---------------------------------------------------------------------------- Peer 1.1.1.1 on Vlan-interface10 Destination/Mask OrigNexthop/RealNexthop Cost Tag Flags Sec 3.0.0.0/8 1.1.1.1/1.1.1.1 1 0 RAOF 16
Table 25: Command output
Field | Description |
---|---|
Route Flags |
|
Peer X.X.X.X on interface-type interface-number | Routing information learned from a neighbor on a RIP interface. |
Local route | Locally generated direct routes. |
Destination/Mask | Destination IP address and subnet mask. |
Nexthop | Next hop of the route. |
OrigNexthop/RealNexthop | If the route is from a directly connected neighbor, the original next hop is the real next hop. If the route is from an indirectly connected neighbor, the RealNexthop field displays the recursive next hop for the route. Otherwise, the field is blank. |
Cost | Cost of the route. |
Tag | Route tag. |
Flags | Route state. |
Sec | Remaining time of the timer corresponding to the route state. |
# Display routing statistics for RIP process 1.
<Sysname> display rip 1 route statistics Peer Optimal/Aging Optimal/Permanent Garbage 1.1.1.1 1/1 0/0 0 Local 2/0 0/0 0 Total 3/1 0/0 0
Table 26: Command output
Field | Description |
---|---|
Peer | IP address of a neighbor. |
Optimal | Total number of optimal routes. |
Aging | Total number of aging routes. |
Permanent | Total number of routes that never age out. |
Garbage | Total number of routes in the Garbage-collection state. |
Local | Total number of locally generated direct routes. |
Total | Total number of routes learned from all RIP neighbors. |