beautypg.com

H3C Technologies H3C SR8800 User Manual

Page 408

background image

392

[RouterA-pbr-aaa-5] quit

# Apply policy aaa on GigabitEthernet 3/1/1.

[RouterA] interface GigabitEthernet 3/1/1

[RouterA-GigabitEthernet3/1/1] ipv6 address 10::2 64

[RouterA-GigabitEthernet3/1/1] undo ipv6 nd ra halt

[RouterA-GigabitEthernet3/1/1] ripng 1 enable

[RouterA-GigabitEthernet3/1/1] ipv6 policy-based-route aaa

[RouterA-GigabitEthernet3/1/1] quit

2.

Configure Router B:
# Configure RIPng.

system-view

[RouterB] ipv6

[RouterB] ripng 1

[RouterB-ripng-1] quit

[RouterB] interface Serial 3/1/9/2:0

[RouterB-Serial3/1/9/2:0] ipv6 address 1::2 64

[RouterB-Serial3/1/9/2:0] ripng 1 enable

[RouterB-Serial3/1/9/2:0] quit

3.

Configure Router C:
# Configure RIPng.

system-view

[RouterC] ipv6

[RouterC] ripng 1

[RouterC-ripng-1] quit

[RouterC] interface Serial 3/1/9/1:0

[RouterC-Serial3/1/9/1:0] ipv6 address 2::2 64

[RouterC-Serial3/1/9/1:0] ripng 1 enable

[RouterC-Serial3/1/9/1:0] quit

4.

Verify the configuration:
Enable IPv6 on Host A and configure the IPv6 address of Host A as 10::3.

C:\>ipv6 install

Installing...

Succeeded.

C:\>ipv6 adu 4/10::3

On Host A, telnet to Router B (1::2) that is directly connected to Router A. The operation succeeds.
On Host A, telnet to Router C (2::2) that is directly connected to Router A. The operation fails.
Ping Router C from Host A. The operation succeeds.
Telnet uses TCP, and ping uses ICMP. The preceding results show that all TCP packets received on
interface GigabitEthernet 3/1/1 of Router A are forwarded via next hop 1::2, and other packets

received on Router C are forwarded via next hop 2::2. The PBR configuration is effective.