R0106-HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V7)
367
Reply from 10.1.1.1: bytes=200 time=1ms TTL=64
Ping statistics for 10.1.1.1:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
The debugging information about PBR displayed on Router A is as follows:
<RouterA>
*Jun 26 12:20:33:610 2012 RouterA PBR4/7/PBR Forward Info: -MDC=1; Policy:lab1, Node:
20,match succeeded.
*Jun 26 12:20:33:610 2012 RouterA PBR4/7/PBR Forward Info: -MDC=1; apply next-hop
151
.1.1.2.
The output shows that Router A sets the next hop for the received packets to 151.1.1.2 according
to PBR. The packets are forwarded through Serial 2/1/1.
Packet source-IP-based interface PBR configuration example
Network requirements
As shown in Figure 87, configure interface PBR to guide the forwarding of packets received on
GigabitEthernet 2/1/1 of Router A as follows:
• Set the next hop of packets sourced from 192.168.10.2 to 4.1.1.2/24.
• Set the next hop of other packets to 5.1.1.2/24.
Figure 87 Network diagram