H3C Technologies H3C S12500 Series Switches User Manual

Page 417

Advertising
background image

401

[SwitchA] interface Vlan-interface 20

[SwitchA-Vlan-interface20] ipv6 address 1::1 64

[SwitchA-Vlan-interface20] ripng 1 enable

[SwitchA-Vlan-interface20] quit

[SwitchA] interface Vlan-interface 30

[SwitchA-Vlan-interface30] ipv6 address 2::1 64

[SwitchA-Vlan-interface30] ripng 1 enable

[SwitchA-Vlan-interface30] quit

# Define ACL 3001 to match TCP packets.

<SwitchA> system-view

[SwitchA] ipv6

[SwitchA] acl ipv6 number 3001

[SwitchA-acl6-adv-3001] rule permit tcp

[SwitchA-acl6-adv-3001] quit

# Define Node 5 of policy aaa, so that TCP packets are forwarded to next hop 1::2.

[SwitchA] ipv6 policy-based-route aaa permit node 5

[SwitchA-pbr6-aaa-5] if-match acl6 3001

[SwitchA-pbr6-aaa-5] apply ipv6-address next-hop 1::2

[SwitchA-pbr6-aaa-5] quit

# Apply policy aaa on the VLAN-interface 10 to process the arriving packets.

[SwitchA] interface Vlan-interface 10

[SwitchA-Vlan-interface10] ipv6 address 10::1 64

[SwitchA-Vlan-interface10] undo ipv6 nd ra halt

[SwitchA-Vlan-interface10] ripng 1 enable

[SwitchA-Vlan-interface10] ipv6 policy-based-route aaa

[SwitchA-Vlan-interface10] quit

2.

Configure RIPng on Switch B.

<SwitchB> system-view

[SwitchB] ipv6

[SwitchB] ripng 1

[SwitchB-ripng-1] quit

[SwitchB] interface Vlan-interface 20

[SwitchB-Vlan-interface20] ipv6 address 1::2 64

[SwitchB-Vlan-interface20] ripng 1 enable

[SwitchB-Vlan-interface20] quit

3.

Configure RIPng on Switch C.

<SwitchC> system-view

[SwitchC] ipv6

[SwitchC] ripng 1

[SwitchC-ripng-1] quit

[SwitchC] interface Vlan-interface 30

[SwitchC-Vlan-interface30] ipv6 address 2::2 64

[SwitchC-Vlan-interface30] ripng 1 enable

[SwitchC-Vlan-interface30] quit

4.

Verify the configuration:
# On Host A, Telnet to Switch B (1::2) that is directly connected to Switch A. The operation
succeeds.

Advertising