display rip database
Use display rip database to display active routes for a RIP process.
Syntax
display rip process-id database [ ip-address { mask-length | mask } ]
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 active routes for the specified IP address. If you do not specify this argument, the command displays all actives routes for a RIP process.
Examples
# Display active routes for RIP process 100.
<Sysname> display rip 100 database 1.0.0.0/8, auto-summary 1.1.1.0/24, cost 16, interface summary 1.1.1.0/24, cost 0, nexthop 1.1.1.1, RIP-interface 1.1.2.0/24, cost 0, imported 2.0.0.0/8, auto-summary 2.0.0.0/8, cost 1, nexthop 1.1.1.2
# Display active routes with destination IP address 1.1.1.0 and mask length 24 for RIP process 100.
<Sysname> display rip 100 database 1.1.1.0 24 1.1.1.0/24, cost 16, interface summary 1.1.1.0/24, cost 0, nexthop 1.1.1.1, RIP-interface
Table 20: Command output
Field | Description |
---|---|
cost | Cost of the route. |
auto-summary | Indicates that the route is a RIP automatic summary route. |
interface summary | Indicates that the route is a RIP interface summary route. |
nexthop | Address of the next hop. |
RIP-interface | Direct route on a RIP-enabled interface. |
imported | Indicates that the route is redistributed from another routing protocol. |