Configuring ipv6 nd, Configuring a static neighbor entry – H3C Technologies H3C S12500 Series Switches User Manual
Page 176
![background image](https://www.manualsdir.com/files/812677/content/doc176.png)
163
415B
Configuration procedure
Before configuring an automatic IPv4-compatible IPv6 tunnel, make sure Switch A and Switch B have the
corresponding VLAN interfaces created and can reach each other through IPv4.
•
Configure Switch A:
# Configure an IPv4 address for VLAN-interface 100.
[SwitchA] interface vlan-interface 100
[SwitchA-Vlan-interface100] ip address 192.168.100.1 255.255.255.0
[SwitchA-Vlan-interface100] quit
# Configure an automatic IPv4-compatible IPv6 tunnel interface tunnel 0.
[SwitchA] interface tunnel 0 mode ipv6-ipv4 auto-tunnel
# Configure an IPv4-compatible IPv6 address for the tunnel interface.
[SwitchA-Tunnel0] ipv6 address ::192.168.100.1/96
# Specify VLAN-interface 100 as the source interface of the tunnel interface.
[SwitchA-Tunnel0] source vlan-interface 100
[SwitchA-Tunnel0] quit
•
Configure Switch B:
# Configure an IPv4 address for VLAN-interface 100.
[SwitchB] interface vlan-interface 100
[SwitchB-Vlan-interface100] ip address 192.168.50.1 255.255.255.0
[SwitchB-Vlan-interface100] quit
# Configure an automatic IPv4-compatible IPv6 tunnel interface tunnel 0.
[SwitchB] interface tunnel 0 mode ipv6-ipv4 auto-tunnel
# Configure an IPv4-compatible IPv6 address for the tunnel interface.
[SwitchB-Tunnel0] ipv6 address ::192.168.50.1/96
# Specify VLAN-interface 100 as the source interface of the tunnel interface.
[SwitchB-Tunnel0] source vlan-interface 100
[SwitchB-Tunnel0] quit
416B
Verifying the configuration
# Use the display ipv6 interface command to view tunnel interface status on Switch A and Switch B. The
output shows that the interface tunnel 0 is up. (Details not shown.)
# Switch B and Switch A can ping the IPv4-compatible IPv6 address of each other. For example, ping the
IPv4-compatible IPv6 address of Switch B from Switch A.
[SwitchA-Tunnel10] ping ipv6 ::192.168.50.1
PING6(104=40+8+56 bytes) ::192.168.100.1 --> ::192.168.50.1
56 bytes from ::192.168.50.1, icmp_seq=0 hlim=64 time=17.000 ms
56 bytes from ::192.168.50.1, icmp_seq=1 hlim=64 time=9.000 ms
56 bytes from ::192.168.50.1, icmp_seq=2 hlim=64 time=11.000 ms
56 bytes from ::192.168.50.1, icmp_seq=3 hlim=64 time=9.000 ms
56 bytes from ::192.168.50.1, icmp_seq=4 hlim=64 time=11.000 ms
--- ::192.168.50.1 ping6 statistics ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 9.000/11.400/17.000/2.939 ms
- H3C SR8800 H3C SR6600-X H3C SR6600 H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module H3C S6800 Series Switches H3C S3100V2 Series Switches H3C S12500-X Series Switches H3C S9800 Series Switches