if-match acl 3101
apply ip-address next-hop 1.1.1.1
# Display the local PBR routing information.
<Sysname> display ip policy-based-route setup local
Local policy based routing configuration information:
policy-based-route: pr01
permit node 1:
if-match acl 3101
apply ip-address next-hop 1.1.1.1
Table 99 Command output
Field Description
policy Name
Policy name.
interface
Interface where the policy is applied. Local means
the policy is applied locally.
Interface Vlan-interface11 policy based routing
configuration information
PBR routing information on Vlan-interface 11.
Local policy based routing configuration information
Local PBR information.
policy-based-route Policy
name.
permit node 1
The match mode is
permit
, and the policy has a
node (node 1).
if-match acl 3101
Match packets against ACL 3101.
apply ip-address next-hop 1.1.1.1
The next hop address is 1.1.1.1.
display policy-based-route
Syntax
display policy-based-route
[
policy-name
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
View
Any view
Default level
1: Monitor level
Parameters
policy-name
: Displays information about the specified policy. A policy name is a string of 1 to 19
characters.
|
: Filters command output by specifying a regular expression. For more information about regular
expressions, see
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, a case-sensitive string of 1 to 256 characters.
Description
Use
display policy-based-route
to display PBR policy information.
442