Step 4
Verify the configuration.
# Run the
debugging ip policy-based-route
command on RouterA to debug the PBR route.
<RouterA>
debugging ip policy-based-route
<RouterA>
terminal debugging
<RouterA>
terminal monitor
# On RouterA, ping the IP address of Loopback0 interface on RouterB and set the packet length
to 80 bytes.
<RouterA>
ping -s 80 10.1.2.1
PING 100.1.2.1: 80 data bytes, press CTRL_C to break
Mar 9 2011 15:00:35.40.2 RouterA PBR/7/POLICY-ROUTING:IP Policy routing success
: next-hop : 150.1.1.2
Reply from 100.1.2.1: bytes=80 Sequence=1 ttl=254 time=1 ms
Reply from 100.1.2.1: bytes=80 Sequence=2 ttl=254 time=1 ms
Reply from 100.1.2.1: bytes=80 Sequence=3 ttl=254 time=1 ms
Reply from 100.1.2.1: bytes=80 Sequence=4 ttl=254 time=1 ms
Reply from 100.1.2.1: bytes=80 Sequence=5 ttl=254 time=1 ms
--- 100.1.2.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/1/1 ms
# The following information about the PBR route is displayed on RouterA:
<RouterA>
Mar 9 2011 15:00:37.50.2 RouterA PBR/7/POLICY-ROUTING:IP Policy routing success
: next-hop : 150.1.1.2
Mar 9 2011 15:00:37.50.3 RouterA PBR/7/POLICY-ROUTING:IP Policy routing success
: next-hop : 150.1.1.2
Mar 9 2011 15:00:37.50.4 RouterA PBR/7/POLICY-ROUTING:IP Policy routing success
: next-hop : 150.1.1.2
Mar 9 2011 15:00:37.50.5 RouterA PBR/7/POLICY-ROUTING:IP Policy routing success
: next-hop : 150.1.1.2
RouterA forwards the received packets from Ethernet1/0/0 because the next hop address in the
PBR route is 150.1.1.2.
# On RouterA, ping the IP address of Loopback0 interface on RouterB and set the packet length
to 1401 bytes.
<RouterA>
ping -s 1401 10.1.2.1
PING 100.1.2.1: 1401 data bytes, press CTRL_C to break
Mar 9 2011 15:41:26.350.2 RouterA PBR/7/POLICY-ROUTING:IP Policy routing succes
s : next-hop : 151.1.1.2
Mar 9 2011 15:41:26.350.3 RouterA PBR/7/POLICY-ROUTING:IP Policy routing succes
s : next-hop : 151.1.1.2
Reply from 100.1.2.1: bytes=1401 Sequence=1 ttl=254 time=2 ms
Mar 9 2011 15:41:26.850.1 RouterA PBR/7/POLICY-ROUTING:IP Policy routing succes
s : next-hop : 151.1.1.2
Reply from 100.1.2.1: bytes=1401 Sequence=2 ttl=254 time=2 ms
Mar 9 2011 15:41:27.340.1 RouterA PBR/7/POLICY-ROUTING:IP Policy routing succes
s : next-hop : 151.1.1.2
Reply from 100.1.2.1: bytes=1401 Sequence=3 ttl=254 time=2 ms
Mar 9 2011 15:41:27.840.1 RouterA PBR/7/POLICY-ROUTING:IP Policy routing succes
s : next-hop : 151.1.1.2
Reply from 100.1.2.1: bytes=1401 Sequence=4 ttl=254 time=2 ms
Mar 9 2011 15:41:28.340.1 RouterA PBR/7/POLICY-ROUTING:IP Policy routing succes
s : next-hop : 151.1.1.2
Reply from 100.1.2.1: bytes=1401 Sequence=5 ttl=254 time=2 ms
--- 100.1.2.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
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.
200