R0106-HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V7)

368
Configuration procedure
1. Configure Router A:
# Configure the IP addresses of the serial interfaces.
<RouterA> system-view
[RouterA] interface serial 2/1/0
[RouterA-Serial2/1/0] ip address 4.1.1.1 24
[RouterA-Serial2/1/0] quit
[RouterA] interface serial 2/1/1
[RouterA-Serial2/1/1] ip address 5.1.1.1 24
[RouterA-Serial2/1/1] quit
# Configure ACL 2000 to match packets sourced from 192.168.10.2.
[RouterA] acl number 2000
[RouterA-acl-basic-2000] rule 10 permit source 192.168.10.2 0
[RouterA-acl-basic-2000] quit
# Configure Node 0 for policy aaa to forward packets sourced from 192.168.10.2 to next hop
4.1.1.2. Configure Node 1 for policy aaa to forward other packets to next hop 5.1.1.2.
[RouterA] policy-based-route aaa permit node 0
[RouterA-pbr-aaa-0] if-match acl 2000
[RouterA-pbr-aaa-0] apply next-hop 4.1.1.2
[RouterA-pbr-aaa-0] quit
[RouterA] policy-based-route aaa permit node 1
[RouterA-pbr-aaa-1] apply next-hop 5.1.1.2
[RouterA-pbr-aaa-1] quit
# Configure interface PBR by applying policy aaa to GigabitEthernet 2/1/1.
[RouterA] interface gigabitethernet 2/1/1
[RouterA-GigabitEthernet2/1/1] ip address 192.168.10.1 24
[RouterA-GigabitEthernet2/1/1] ip policy-based-route aaa
[RouterA-GigabitEthernet2/1/1] quit
2. Configure Router B:
# Configure the IP address of the serial interface.
<RouterB> system-view
[RouterB] interface serial 2/1/0
[RouterB-Serial2/1/0] ip address 4.1.1.2 24
[RouterB-Serial2/1/0] quit
# Configure a static route to network 192.168.10.0/24.
[RouterB] ip route-static 192.168.10.0 24 4.1.1.1
3. Configure Router C:
# Configure the IP address of the serial interface.
<RouterC> system-view
[RouterC] interface serial 2/1/1
[RouterC-Serial2/1/1] ip address 5.1.1.2 24
[RouterC-Serial2/1/1] quit
# Configure a static route to network 192.168.10.0/24.
[RouterC] ip route-static 192.168.10.0 24 5.1.1.1