Справочное Руководство для 3com 8807
388
C
HAPTER
23: S
TATIC
R
OUTE
C
ONFIGURATION
C
OMMANDS
This command is mainly used to trace the route-policy and display the
corresponding route information.
corresponding route information.
If there is no specified address prefix list, this command will display the verbose
information of all Active and Inactive routes with the verbose keyword and it will
display the summary of all Active routes without the verbose keyword.
information of all Active and Inactive routes with the verbose keyword and it will
display the summary of all Active routes without the verbose keyword.
Example
# Configure the ip prefix list abc2, allowing the routes with the prefix as 10.1.1.0
and a mask length in the range 24 to 32 to pass.
and a mask length in the range 24 to 32 to pass.
[SW8800] ip ip-prefix abc2 permit 10.1.1.0 24 less-equal 32
<SW8800> dis ip routing-table protocol static
STATIC Routing tables:
Summary count: 3
STATIC Routing table status:<active>:
Summary count: 3
Destination/Mask Protocol Pre Cost Nexthop Interface
10.1.0.0/16 STATIC 60 0 48.48.48.2 Vlan-interface48
10.1.1.0/24 STATIC 60 0 48.48.48.2 Vlan-interface48
10.1.1.2/32 STATIC 60 0 48.48.48.2 Vlan-interface48
STATIC Routing table status:<inactive>:
Summary count: 0
<SW8800> display ip routing-table ip-prefix abc2
Routes matched by ip-prefix abc2:
Summary count: 2
Destination/Mask Protocol Pre Cost Nexthop Interface
10.1.1.0/24 STATIC 60 0 48.48.48.2 Vlan-interface48
10.1.1.2/32 STATIC 60 0 48.48.48.2 Vlan-interface48
For detailed description of the output information, see Table 48.
# Display the details of the active and inactive routes filtered by the prefix list abc2.
<SW8800> display ip routing-table ip-prefix abc2 verbose
Routes matched by ip-prefix abc2:
Generate Default: no
+ = Active Route, - = Last Active, # = Both * = Next hop in use
Summary count: 2
**Destination: 10.1.1.0 Mask: 255.255.255.0
Protocol: #STATIC Preference: 60
*NextHop: 48.48.48.2 Interface: 48.48.48.1(Vlan-interface48)
Vlinkindex: 0
State: <Int ActiveU Gateway Static Unicast>
Age: 12:42 Cost: 0/0 Tag: 0
**Destination: 10.1.1.2 Mask: 255.255.255.255
Protocol: #STATIC Preference: 60
*NextHop: 48.48.48.2 Interface: 48.48.48.1(Vlan-interface48)
Vlinkindex: 0
State: <Int ActiveU Gateway Static Unicast>
Age: 12:48 Cost: 0/0 Tag: 0
For explanations of the above information, see Table 49.
display ip routing-table
protocol
Syntax
display ip routing-table protocol protocol [ inactive | verbose ] [
vpn-instance vpn-instance-name ]
vpn-instance vpn-instance-name ]