10
display ip routing-table protocol
Use
display ip routing-table
protocol
to display information about routes installed by a protocol.
Syntax
display ip routing-table
[
vpn-instance
vpn-instance-name
]
protocol
protocol
[
inactive
|
verbose
]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
vpn-instance
vpn-instance-name
: Specifies MPLS L3VPN instance by its name, a case-sensitive string of
1 to 31 characters. Without this option, the command displays routing information for the public network.
protocol
: Specifies a routing protocol. It can be
bgp
,
direct
,
guard, isis
,
ospf
,
rip
, or
static
.
inactive
: Displays information about inactive routes. Without this keyword, the command displays
information about both active and inactive routes.
verbose
: Displays detailed routing table information. Without this keyword, the command displays brief
routing information.
Examples
# Display brief information about direct routes.
<Sysname> display ip routing-table protocol direct
Summary Count : 13
Direct Routing Table Status : <Active>
Summary Count : 13
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
2.2.2.0/24 Direct 0 0 2.2.2.1 Vlan2
2.2.2.0/32 Direct 0 0 2.2.2.1 Vlan2
2.2.2.2/32 Direct 0 0 127.0.0.1 InLoop0
2.2.2.255/32 Direct 0 0 2.2.2.1 Vlan2
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
192.168.80.0/24 Direct 0 0 192.168.80.10 Vlan21
192.168.80.0/32 Direct 0 0 192.168.80.10 Vlan21
192.168.80.10/32 Direct 0 0 127.0.0.1 InLoop0
192.168.80.255/32 Direct 0 0 192.168.80.10 Vlan21
Direct Routing Table Status : <Inactive>