policy Name interface
aaa local
Run the
display ip policy-based-route setup
local
command. If configurations of the local PBR
are displayed, the configuration is successful.
<Huawei>
display ip policy-based-route setup local
policy-based-route aaa permit node 5
if-match acl 2000
apply output-interface Ethernet1/0/0
Run the
display ip policy-based-route statistics
local
command. If statistics of local PBR is
displayed, it means the configuration succeeds.
<Huawei>
display ip policy-based-route statistics local
Local policy based routing information:
policy-based-route: aaa
permit node 21
Total denied: 0, forwarded: 0
8.4 Configuration Examples
This section includes the networking requirements, precautions for configuration, and
configuration roadmap.
8.4.1 Example for Configuring IP Unicast PBR
This section provides an example for configuring IP unicast PBR.
Networking Requirements
, IP unicast PBR is applied to RouterA:
l
The next hop address 150.1.1.2 is set for packets with 64 to 1400 bytes.
l
The next hop address 151.1.1.2 is set for packets with 1401 to 1500 bytes.
l
Packets with other lengths are routed based on destination addresses.
Figure 8-1
Networking diagram of IP unicast PBR configurations
Eth1/0/0
Eth2/0/0
Eth1/0/0
Eth2/0/0
Loopback0
150.1.1.1/24
150.1.1.2/24
151.1.1.1/24
151.1.1.2/24
10.1.2.1/24
RouterA
RouterB
Loopback0
10.1.1.1/24
Configuration Roadmap
The configuration roadmap is as follows:
l
Assign an IP address to each interface.
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.
198