beautypg.com

H3C Technologies H3C S12500 Series Switches User Manual

Page 415

background image

399

# Apply policy aaa to Switch A.

[SwitchA] ipv6 local policy-based-route aaa

# Configure the IPv6 addresses of the VLAN interfaces.

[SwitchA] interface Vlan-interface 10

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

[SwitchA-Vlan-interface10] quit

[SwitchA] interface Vlan-interface 20

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

2.

Configure the IPv6 address for VLAN-interface 10 on Switch B.

system-view

[SwitchB] interface Vlan-interface 10

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

[SwitchB-Vlan-interface10] quit

3.

Configure the IPv6 address for VLAN-interface 20 on Switch C.

system-view

[SwitchC] interface Vlan-interface 20

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

[SwitchC-Vlan-interface20] quit

4.

Verify the configuration:
# Telnet to Switch B (1::2/64) from Switch A. The operation succeeds.

telnet ipv6 1::2

Trying 1::2 ...

Press CTRL+K to abort

Connected to 1::2 ...

******************************************************************************

* Copyright (c) 2004-2011 Hangzhou H3C Tech. Co., Ltd. All rights reserved. *

* Without the owner's prior written consent, *

* no decompiling or reverse-engineering shall be allowed. *

******************************************************************************

# Telnet to Switch C (2::2/64) from Switch A. The operation fails.

telnet ipv6 2::2

Trying 2::2 ...

Press CTRL+K to abort

Can't connect to the remote host!

# Ping Switch C (2::2/64) from Switch A. The operation succeeds.

ping ipv6 2::2

PING 2::2 : 56 data bytes, press CTRL_C to break

Reply from 2::2

bytes=56 Sequence=1 hop limit=64 time = 4 ms

Reply from 2::2

bytes=56 Sequence=2 hop limit=64 time = 2 ms

Reply from 2::2

bytes=56 Sequence=3 hop limit=64 time = 2 ms

Reply from 2::2

bytes=56 Sequence=4 hop limit=64 time = 2 ms

Reply from 2::2

bytes=56 Sequence=5 hop limit=64 time = 2 ms