protocol: Specifies a routing protocol. It can be bgp, direct, 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
0.0.0.0/32
2.2.2.0/24
2.2.2.0/32
2.2.2.2/32
2.2.2.255/32
127.0.0.0/8
127.0.0.0/32
127.0.0.1/32
127.255.255.255/32
192.168.80.0/24
192.168.80.0/32
192.168.80.10/32
192.168.80.255/32
Direct Routing Table Status : <Inactive>
Summary Count : 0
# Display brief information about static routes.
<Sysname> display ip routing-table protocol static
Summary Count : 2
Static Routing Table Status : <Active>
Summary Count : 0
Static Routing Table Status : <Inactive>
Summary Count : 2
Destination/Mask
1.2.3.0/24
3.0.0.0/8
For command output, see
Proto
Pre
Cost
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Proto
Pre
Cost
Static 60
0
Static 60
0
Table
1.
12
NextHop
Interface
127.0.0.1
InLoop0
2.2.2.1
Vlan2
2.2.2.1
Vlan2
127.0.0.1
InLoop0
2.2.2.1
Vlan2
127.0.0.1
InLoop0
127.0.0.1
InLoop0
127.0.0.1
InLoop0
127.0.0.1
InLoop0
192.168.80.10
Vlan1
192.168.80.10
Vlan1
127.0.0.1
InLoop0
192.168.80.10
Vlan1
NextHop
Interface
1.2.4.5
Vlan10
2.2.2.2
Vlan1