display ip routing-table acl
Syntax
display ip routing-table acl acl-number [ verbose ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
acl-number: Basic ACL number, in the range of 2000 to 2999.
verbose: Displays detailed routing table information, including that for inactive routes. With this argument absent, the command displays only brief information about active routes.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters.
Description
Use the display ip routing-table acl command to display information about routes permitted by a specified basic ACL.
NOTE: This command is usually used together with routing policy display commands. If the specified ACL does not exist or it has no rules configured, the entire routing table is displayed. | ||
Examples
# Define basic ACL 2000 and set the route filtering rules.
<Sysname> system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] rule permit source 10.1.0.0 0.0.255.255 [Sysname-acl-basic-2000] rule deny source any
# Display brief information about active routes permitted by basic ACL 2000.
[Sysname-acl-basic-2000] display ip routing-table acl 2000 Routes Matched by Access list : 2000 Summary Count : 6 Destination/Mask Proto Pre Cost NextHop Interface 10.1.1.0/24 Direct 0 0 10.1.1.2 Vlan1 10.1.1.2/32 Direct 0 0 127.0.0.1 InLoop0 10.1.2.0/24 Direct 0 0 10.1.2.1 Vlan2 10.1.2.1/32 Direct 0 0 127.0.0.1 InLoop0 10.1.3.0/24 Direct 0 0 10.1.3.1 Vlan1 10.1.3.1/32 Direct 0 0 127.0.0.1 InLoop0
For detailed description of the output, see Table 2.
# Display detailed information about both active and inactive routes permitted by basic ACL 2000.
<Sysname> display ip routing-table acl 2000 verbose Routes Matched by Access list : 2000 Summary Count: 6 Destination: 10.1.1.0/24 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 NextHop: 10.1.1.2 Interface: Vlan-interface1 RelyNextHop: 0.0.0.0 Neighbour: 0.0.0.0 Tunnel ID: 0x0 Label: NULL State: Active Adv Age: 1d00h25m32s Tag: 0 Destination: 10.1.1.2/32 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 NextHop: 127.0.0.1 Interface: InLoopBack0 RelyNextHop: 0.0.0.0 Neighbour: 0.0.0.0 Tunnel ID: 0x0 Label: NULL State: Active NoAdv Age: 1d00h41m34s Tag: 0 Destination: 10.1.2.0/24 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 NextHop: 10.1.2.1 Interface: Vlan-interface12 RelyNextHop: 0.0.0.0 Neighbour: 0.0.0.0 Tunnel ID: 0x0 Label: NULL State: Active Adv Age: 1d00h05m42s Tag: 0 Destination: 10.1.2.1/32 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 NextHop: 127.0.0.1 Interface: InLoopBack0 RelyNextHop: 0.0.0.0 Neighbour: 0.0.0.0 Tunnel ID: 0x0 Label: NULL State: Active NoAdv Age: 1d00h05m42s Tag: 0 Destination: 10.1.3.0/24 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 NextHop: 10.1.3.1 Interface: Vlan-interface11 RelyNextHop: 0.0.0.0 Neighbour: 0.0.0.0 Tunnel ID: 0x0 Label: NULL State: Active Adv Age: 1d00h05m31s Tag: 0 Destination: 10.1.3.1/32 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 NextHop: 127.0.0.1 Interface: InLoopBack0 RelyNextHop: 0.0.0.0 Neighbour: 0.0.0.0 Tunnel ID: 0x0 Label: NULL State: Active NoAdv Age: 1d00h05m32s Tag: 0
For the description of the command output, see Table 2.