l
Configuring the link layer protocol of the interface
l
Configuring the ACL used for packet matching
l
Configuring the VPN first if you want the packet to enter VPN
Data Preparation
To configure IP Policy-based Routing, you need the following data.
No.
Data
1
PBR name, the policy node number and the default
action to the packet
2
Maximum and the minimum byte number of the
packet
3
ACL number of the matched packets
4
New precedence of the packet
5
Default next hop or output interface of the packet
in the specified policy
6
Next hop or the output interface number of the
packet in the specified policy
7
VPN instance name to which the packet in the
specified policy belongs
8.3.2 Defining the Matching Rule of PBR
By defining the matching rule of PBR, you can determine the type of packets to which PBR is
applied.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
policy-based-route
policy-name
{
deny
|
permit
}
node
node-id
A policy or a policy node is created.
Step 3
Run:
if-match packet-length
min-length
max-length
or
if-match acl
acl-number
The match rule of the IP packet length is set.
----End
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - IP Service
8 IP Unicast PBR Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
194