R3303-HP 6600/HSR6600 Routers Layer 3 - IP Routing Configuration Guide

287
# Ping Loopback 0 of Router B from Host A, and set the data length to 200 bytes.
C:\>ping -l 200 10.1.1.1
Pinging 10.1.1.1 with 200 bytes of data:
Reply from 10.1.1.1: bytes=200 time<1ms TTL=255
Reply from 10.1.1.1: bytes=200 time<1ms TTL=255
Reply from 10.1.1.1: bytes=200 time<1ms TTL=255
Reply from 10.1.1.1: bytes=200 time<1ms TTL=255
Ping statistics for 10.1.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
The debugging information about PBR displayed on Router A is as follows:
<RouterA>
*Jun 7 12:06:47:631 2009 RouterA PBR/7/POLICY-ROUTING: IP policy based routing
success : POLICY_ROUTEMAP : lab1, Node : 20, next-hop : 151.1.1.2
*Jun 7 12:06:48:630 2009 RouterA PBR/7/POLICY-ROUTING: IP policy based routing
success : POLICY_ROUTEMAP : lab1, Node : 20, next-hop : 151.1.1.2
*Jun 7 12:06:49:627 2009 RouterA PBR/7/POLICY-ROUTING: IP policy based routing
success : POLICY_ROUTEMAP : lab1, Node : 20, next-hop : 151.1.1.2
*Jun 7 12:06:50:627 2009 RouterA PBR/7/POLICY-ROUTING: IP policy based routing
success : POLICY_ROUTEMAP : lab1, Node : 20, next-hop : 151.1.1.2
The preceding information 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/2/1.
Configuring interface PBR based on reverse input interface
Network requirements
As shown in Figure 87, Router A (gateway) is connected to the public network through two interfaces
(Serial 2/2/0 and Serial 2/2/1). PC on the public network sends a request packet to the HTTP server on
the private network. Suppose the packet is received by Serial 2/2/0 on Router A and then is forwarded
to the HTTP server through GigabitEthernet 2/1/1.
It is required that the response packet from the private network should enter Router A through
GigabitEthernet 2/1/1 and leave Router A through the reverse input interface Serial 2/2/0 (the
interface that receives the request packet).