334
Step Command Remarks
5. Configure the destination
address for the tunnel
interface.
destination
ipv6-address
By default, no destination
address is configured for the
tunnel.
The tunnel destination address
must be the IPv6 address of the
receiving interface on the
tunnel peer. It is used as the
destination IPv6 address of
tunneled packets.
Configuration example
Network requirements
As shown in Figure 130, configure an IPv4 over IPv6 manual tunnel between Router A and Router B
so the two networks can reach each other over the IPv6 network.
Figure 130 Network diagram
Configuration procedure
Make sure Router A and Router B can reach each other through IPv6.
• Configure Router A:
# Specify an IPv4 address for GigabitEthernet 2/0/1.
<RouterA> system-view
[RouterA] interface gigabitethernet 2/0/1
[RouterA-GigabitEthernet2/0/1] ip address 30.1.1.1 255.255.255.0
[RouterA-GigabitEthernet2/0/1] quit
# Specify an IPv6 address for Serial 2/1/0, which is the physical interface of the tunnel.
[RouterA] interface serial 2/1/0
[RouterA-Serial2/1/0] ipv6 address 2001::1:1 64
[RouterA-Serial2/1/0] quit
# Create the IPv6 tunnel interface Tunnel 1.
[RouterA] interface tunnel 1 mode ipv6
# Specify an IPv4 address for the tunnel interface.
[RouterA-Tunnel1] ip address 30.1.2.1 255.255.255.0
# Specify the IP address of Serial 2/1/0 as the source address for the tunnel interface.
[RouterA-Tunnel1] source 2001::1:1
# Specify the IP address of Serial 2/1/1 on Router B as the destination address for the tunnel
interface.
[RouterA-Tunnel1] destination 2002::2:1