Network requirements, Configuration procedure – H3C Technologies H3C S12500 Series Switches User Manual

Page 230

Advertising
background image

216

Network requirements

As shown in

Figure 91

, Switch A is a 6to4 switch, and 6to4 addresses are used on its IPv6 network.

Switch B acts as a 6to4 relay switch and is connected to the IPv6 network (2001::/16). Configure a 6to4
tunnel between Switch A and Switch B to make Host A and Host B reachable to each other.

Figure 91 Network diagram

Configuration procedure

Make sure Switch A and Switch B have the corresponding VLAN interfaces created and can reach each

other.
Configuration on a 6to4 relay switch is similar to that on a 6to4 switch. However, to enable

communication between the 6to4 network and the IPv6 network, you must configure a route to the IPv6

network on the 6to4 switch.

Configure Switch A:
# Enable IPv6.

<SwitchA> system-view

[SwitchA] ipv6

# Configure an IPv4 address for VLAN-interface 100.

[SwitchA] interface vlan-interface 100

[SwitchA-Vlan-interface100] ip address 2.1.1.1 255.255.255.0

[SwitchA-Vlan-interface100] quit

# Configure an IPv6 address for VLAN-interface 101.

[SwitchA] interface vlan-interface 101

[SwitchA-Vlan-interface101] ipv6 address 2002:0201:0101:1::1/64

[SwitchA-Vlan-interface101] quit

# Configure a 6to4 tunnel.

[SwitchA] interface tunnel 0

[SwitchA-Tunnel0] ipv6 address 2002:0201:0101::1/64

[SwitchA-Tunnel0] source vlan-interface 100

[SwitchA-Tunnel0] tunnel-protocol ipv6-ipv4 6to4

[SwitchA-Tunnel0] quit

# Configure a static route to the 6to4 relay.

[SwitchA] ipv6 route-static 2002:0601:0101:: 64 tunnel 0

# Configure a default route to the IPv6 network.

[SwitchA] ipv6 route-static :: 0 2002:0601:0101::1

Advertising