152 CHAPTER 6: USING ROUTING PROTOCOL COMMANDS
Parameter
ip_prefix_name
Enter the ip prefix list name.
verbose Enter to display verbose information about both the active and inactive
routes that passed filtering rules. Without this parameter, this command displays
the summary of active routes that passed filtering rules.
Description
Use the command display ip routing-table ip-prefix i
p_prefix_name
to
view information on the routes that passed filtering rules for the specified IP prefix
name.
Use the command display ip routing-table ip-prefix i
p_prefix_name
verbose
to display both the active and inactive routes that passed filtering rules.
Without the
verbose parameter, this command displays the summary of the
active routes that passed filtering rules.
Example
To display the summary information for ip prefix list abc2, active route only, enter
the following:
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]ip ip-prefix abc2 permit 10.1.1.0 24 less-equal 32
[SW5500]display ip routing-table ip-prefix abc2
The information displays in the following format:
Routes matched by ip-prefix abc2:
Summary count: 2
Destination/Mask Protocol Pre Cost Nexthop Interface
10.1.1.0/24 DIRECT 0 0 10.1.1.2 Vlan-interface1
10.1.1.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0
For a detailed description of the output information, see Tab l e 18.
To display the information on the active and inactive routes for prefix list abc2,
enter the following:
[SW5500]display ip routing-table ip-prefix abc2 verbose
The information displays in the following format:
Routes matched by ip-prefix abc2:
+ = Active Route, - = Last Active, # = Both* = Next hop in use
Summary count:2
**Destination: 10.1.1.0 Mask: 255.255.255.0
Protocol: #DIRECT Preference: 0
*NextHop: 10.1.1.2 Interface: 10.1.1.2(Vlan-interface1)
Vlinkindex: 0
State: <Int ActiveU Retain Unicast>
Age: 3:23:44 Cost: 0/0 Tag:0
**Destination: 10.1.1.2 Mask: 255. 255. 255. 255
Protocol: #DIRECT Preference: 0
*NextHop: 127.0.0.1 Interface: 127.0.0.1(InLoopBack0)