Configuring an ipv6 link-local address – H3C Technologies H3C S12500 Series Switches User Manual

Page 174

Advertising
background image

161

[SwitchA] interface vlan-interface 101

[SwitchA-Vlan-interface101] ipv6 address 3002::1 64

[SwitchA-Vlan-interface101] quit

# Configure an IPv6 over IPv4 manual tunnel interface tunnel 0.

[SwitchA] interface tunnel 0 mode ipv6-ipv4

# Specify the source interface for the tunnel interface as VLAN-interface 100.

[SwitchA-Tunnel0] source vlan-interface 100

# Specify the destination address for the tunnel interface as the IP address of the VLAN-interface

100 on Switch B.

[SwitchA-Tunnel0] destination 192.168.50.1

[SwitchA-Tunnel0] quit

# Configure a static route destined for IPv6 network 2 through tunnel 0 on Switch A.

[SwitchA] ipv6 route-static 3003:: 64 tunnel 0

Configure Switch B:
# Configure an IPv4 address for VLAN-interface 100.

<SwitchB> system-view

[SwitchB] interface vlan-interface 100

[SwitchB-Vlan-interface100] ip address 192.168.50.1 255.255.255.0

[SwitchB-Vlan-interface100] quit

# Configure an IPv6 address for VLAN-interface 101.

[SwitchB] interface vlan-interface 101

[SwitchB-Vlan-interface101] ipv6 address 3003::1 64

[SwitchB-Vlan-interface101] quit

# Configure an IPv6 over IPv4 manual tunnel interface tunnel 0.

[SwitchB] interface tunnel 0 mode ipv6-ipv4

# Specify the source interface for the tunnel interface as VLAN-interface 100.

[SwitchB-Tunnel0] source vlan-interface 100

# Specify the destination address for the tunnel interface as the IP address of VLAN-interface 100
of Switch A.

[SwitchB-Tunnel0] destination 192.168.100.1

[SwitchB-Tunnel0] quit

# Configure a static route destined for IPv6 network 1 through tunnel 0 on Switch B.

[SwitchB] ipv6 route-static 3002:: 64 tunnel 0

413B

Verifying the configuration

# Use the display ipv6 interface command to display 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 IPv6 address of VLAN-interface 101 of each other. For example,
ping the IPv6 address of VLAN-interface 101 of Switch B from Switch A.

[SwitchA] ping ipv6 3003::1

PING6(104=40+8+56 bytes) 3001::1 --> 3003::1

56 bytes from 3003::1, icmp_seq=0 hlim=64 time=45.000 ms

56 bytes from 3003::1, icmp_seq=1 hlim=64 time=10.000 ms

56 bytes from 3003::1, icmp_seq=2 hlim=64 time=4.000 ms

56 bytes from 3003::1, icmp_seq=3 hlim=64 time=10.000 ms

56 bytes from 3003::1, icmp_seq=4 hlim=64 time=11.000 ms

Advertising