
0.00% packet loss
round-trip min/avg/max = 2/2/2 ms
RouterA forwards the received packets from Ethernet2/0/0 because the next hop address in the
PBR route is 151.1.1.2.
----End
Configuration Files
Configuration file of RouterA
#
sysname RouterA
#
interface Ethernet1/0/0
ip address 150.1.1.1 255.255.255.0
#
interface Ethernet2/0/0
ip address 151.1.1.1 255.255.255.0
#
ip route-static 10.1.2.0 255.255.255.0 150.1.1.2
ip route-static 10.1.2.0 255.255.255.0 151.1.1.2
#
policy-based-route lab1 permit node 10
if-match packet-length 64 1400
apply ip-address next-hop 150.1.1.2
policy-based-route lab1 permit node 20
if-match packet-length 1401 1500
apply ip-address next-hop 151.1.1.2
#
ip local policy-based-route lab1
Configuration file of RouterB
#
sysname RouterB
#
interface Ethernet1/0/0
ip address 150.1.1.2 255.255.255.0
#
interface Ethernet2/0/0
ip address 151.1.1.2 255.255.255.0
#
ip route-static 10.1.1.0 255.255.255.0 150.1.1.1
ip route-static 10.1.1.0 255.255.255.0 151.1.1.1
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.
201