Pbr configuration examples, Configuring local pbr based on packet type, Network requirements – H3C Technologies H3C SR8800 User Manual
Page 286: Configuration procedure
270
PBR configuration examples
Configuring local PBR based on packet type
Network requirements
As shown in
, configure PBR on Router A, so that all TCP packets are forwarded to next hop
1.1.2.2 and other packets are forwarded according to the routing table.
Router A is directly connected to Router B and Router C. Router B and Router C are unreachable to each
other.
Figure 99 Network diagram
Configuration procedure
1.
Configure Router A:
# Define ACL 3101 to match TCP packets.
<RouterA> system-view
[RouterA] acl number 3101
[RouterA-acl-adv-3101] rule permit tcp
[RouterA-acl-adv-3101] quit
# Define Node 5 of policy aaa, so that TCP packets are forwarded via next hop 1.1.2.2.
[RouterA] policy-based-route aaa permit node 5
[RouterA-pbr-aaa-5] if-match acl 3101
[RouterA-pbr-aaa-5] apply ip-address next-hop 1.1.2.2
[RouterA-pbr-aaa-5] quit
# Apply policy aaa to Router A.
[RouterA] ip local policy-based-route aaa
# Configure the IP addresses of the serial ports.
[RouterA] interface Serial 2/1/9/1:0
[RouterA-Serial2/1/9/1:0] ip address 1.1.2.1 255.255.255.0
[RouterA-Serial2/1/9/1:0] quit
[RouterA] interface Serial 2/1/9/2:0
[RouterA-Serial2/1/9/2:0] ip address 1.1.3.1 255.255.255.0
2.
Configure Router B:
# Configure the IP address of the serial port.
<RouterB> system-view
[RouterB] interface Serial 3/1/9/1:0
[RouterB-Serial3/1/9/1:0] ip address 1.1.2.2 255.255.255.0
[RouterB-Serial3/1/9/1:0] quit
3.
Configure Router C:
Router B
Router A
Router C
S3/1/9/1:0
1.1.2.2/24
S2/1/9/1:0
1.1.2.1/24
S2/1/9/2:0
1.1.3.1/24
S3/1/9/2:0
1.1.3.2/24