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 an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, the command displays routing information for the public network.
protocol: Specifies a routing protocol.
inactive: Displays information about inactive routes. If you do not specify this keyword, the command displays information about both active and inactive routes.
verbose: Displays detailed routing table information. If you do not specify this keyword, the command displays brief routing information.
Examples
# Display brief information about direct routes.
<Sysname> display ip routing-table protocol direct Summary count : 9 Direct Routing Table Status : <Active> Summary count : 9 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 Direct Routing Table Status : <Inactive> Summary count : 0
# Display brief information about static routes.
<Sysname> display ip routing-table protocol static Summary count : 1 Static Routing Table Status : <Active> Summary count : 0 Static Routing Table Status : <Inactive> Summary count : 1 Destination/Mask Proto Pre Cost NextHop Interface 1.2.3.0/24 Static 60 0 1.2.4.5 Vlan10
# Display detailed information about BGP routes.
<Sysname> display ip routing-table protocol bgp verbose Summary count : 1 Destination: 1.1.1.2/32 Protocol: BGP instance default Process ID: 0 SubProtID: 0x6 Age: 00h03m54s Cost: 0 Preference: 255 IpPre: N/A QosLocalID: N/A Tag: 0 State: Active Adv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0x2 OrigAs: 200 NibID: 0x16000000 LastAs: 200 AttrID: 0x0 Neighbor: 192.168.47.2 Flags: 0x10060 OrigNextHop: 192.168.47.2 Label: NULL RealNextHop: 192.168.47.2 BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid Interface: Vlan-interface11 BkTunnel ID: Invalid BkInterface: N/A FtnIndex: 0x0 TrafficIndex: N/A Connector: N/A
For command output, see Table 2.