HP 4800G Series Configuration Manual page 378

24/48 port
Table of Contents

Advertisement

[SwitchA-Tunnel1/0/0] tunnel-protocol ipv6-ipv4 6to4
# Reference service loopback group 1 in tunnel interface view.
[SwitchA-Tunnel1/0/0] service-loopback-group 1
[SwitchA-Tunnel1/0/0] quit
# Configure a static route whose destination address is 2002::/16 and next-hop is the tunnel interface.
[SwitchA] ipv6 route-static 2002:: 16 tunnel 1/0/0
Configuration on Switch B
# Enable IPv6.
<SwitchB> system-view
[SwitchB] ipv6
# Configure an IPv4 address for VLAN-interface 100.
[SwitchB] interface vlan-interface 100
[SwitchB-Vlan-interface100] ip address 5.1.1.1 24
[SwitchB-Vlan-interface100] quit
# Configure an IPv6 address for VLAN-interface 101.
[SwitchB] interface vlan-interface 101
[SwitchB-Vlan-interface101] ipv6 address 2002:0501:0101:1::1/64
[SwitchB-Vlan-interface101] quit
# Create a service loopback group. Note that you need to disable STP on a port before adding it to a
service loopback group.
[SwitchB] service-loopback group 1 type tunnel
[SwitchB] interface GigabitEthernet 1/0/1
[SwitchB-GigabitEthernet1/0/1] stp disable
[SwitchB-GigabitEthernet1/0/1] port service-loopback group 1
[SwitchB-GigabitEthernet1/0/1] quit
# Configure the 6to4 tunnel.
[SwitchB] interface tunnel 1/0/0
[SwitchB-Tunnel1/0/0] ipv6 address 2002:0501:0101::1/64
[SwitchB-Tunnel1/0/0] source vlan-interface 100
[SwitchB-Tunnel1/0/0] tunnel-protocol ipv6-ipv4 6to4
# Reference service loopback group 1 in tunnel interface view.
[SwitchB-Tunnel1/0/0] service-loopback-group 1
[SwitchB-Tunnel1/0/0] quit
# Configure a static route whose destination address is 2002::/16 and the next hop is the tunnel
interface.
[SwitchB] ipv6 route-static 2002:: 16 tunnel 1/0/0
Configuration verification
After the above configuration, ping Host B from Host A or ping Host A from Host B.
D:\>ping6 -s 2002:201:101:1::2 2002:501:101:1::2
Pinging 2002:501:101:1::2
1-13

Advertisement

Chapters

Table of Contents
loading

Table of Contents