R2511-HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V5)
392
Figure 105 Network diagram
Configuration procedure
1. Configure Router A:
# Configure RIPng.
<RouterA> system-view
[RouterA] ipv6
[RouterA] ripng 1
[RouterA-ripng-1] quit
[RouterA] interface serial 2/0
[RouterA-Serial2/0] ipv6 address 150::1 64
[RouterA-Serial2/0] ripng 1 enable
[RouterA-Serial2/0] quit
[RouterA] interface serial 2/1
[RouterA-Serial2/1] ipv6 address 151::1 64
[RouterA-Serial2/1] ripng 1 enable
[RouterA-Serial2/1] quit
# Configure Node 10 for policy lab1 to forward IPv6 packets with a length of 64 to 100 to the
next hop 150::2/64, and IPv6 packets with a length of 101 to 1000 bytes to the next hop
151::2/64.
[RouterA] ipv6 policy-based-route lab1 permit node 10
[RouterA-pbr6-lab1-10] if-match packet-length 64 100
[RouterA-pbr6-lab1-10] apply ipv6-address next-hop 150::2
[RouterA-pbr6-lab1-10] quit
[RouterA] ipv6 policy-based-route lab1 permit node 20
[RouterA-pbr6-lab1-20] if-match packet-length 101 1000
[RouterA-pbr6-lab1-20] apply ipv6-address next-hop 151::2
[RouterA-pbr6-lab1-20] quit
# Configure IPv6 interface PBR by applying policy lab1 to Ethernet 1/1.
[RouterA] interface ethernet 1/1
[RouterA-Ethernet1/1] ipv6 address 192::1 64
[RouterA-Ethernet1/1] undo ipv6 nd ra halt
[RouterA-Ethernet1/1] ripng 1 enable
[RouterA-Ethernet1/1] ipv6 policy-based-route lab1
[RouterA-Ethernet1/1] return
2. Configure Router B:
# Configure RIPng.
<RouterB> system-view
Eth1/1
192::1/64
Router A
S2/0
150::2/64
S2/0
150::1/64
S2/1
151::2/64
S2/1
151::1/64
64~100bytes
101~1000bytes
Router B
Loop0
10::1/128
192::3
Host A










