294
Step Command
Remarks
12.
Specify the VPN instance to
which the tunnel destination
belongs.
tunnel vpn-instance
vpn-instance-name
By default, the tunnel destination
belongs to the public network.
For a tunnel interface to come
up, the tunnel source and
destination must belong to the
same VPN. To specify a VPN
instance for the tunnel source,
use the
ip binding
vpn-instance
command on the
tunnel source interface.
13.
(Optional.) Restore the
default settings of the tunnel
interface.
default
N/A
14.
(Optional.) Shut down the
tunnel interface.
shutdown
By default, the tunnel interface is
up.
Configuring an IPv6 over IPv4 manual tunnel
Follow these guidelines when you configure an IPv6 over IPv4 manual tunnel:
•
The tunnel destination address specified on the local device must be identical with the tunnel
source address specified on the tunnel peer device.
•
Do not specify the same tunnel source and destination addresses for the tunnel interfaces in the
same mode on a device.
•
To ensure correct packet forwarding, identify whether the destination IPv6 network and the IPv6
address of the local tunnel interface are on the same subnet. If they are not, configure a route
reaching the destination IPv6 network through the tunnel interface. You can configure the route
by using one of the following methods:
{
Configure a static route, and specify the local tunnel interface as the egress interface or
specify the IPv6 address of the peer tunnel interface as the next hop.
{
Enable a dynamic routing protocol on both tunnel interfaces to achieve the same purpose.
For more information about route configuration, see
Layer 3—IP Routing Configuration Guide
.
To configure an IPv6 over IPv4 manual tunnel:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter IPv6 over IPv4 manual
tunnel interface view.
interface tunnel
number
[
mode
ipv6-ipv4
]
N/A
3.
Specify an IPv6 address for
the tunnel interface.
See "
By default, no IPv6 address is
configured for the tunnel interface.
4.
Configure a source address
or source interface for the
tunnel interface.
source
{
ip-address
|
interface-type interface-number
}
By default, no source address or
source interface is configured for
the tunnel interface.
The specified source address or
the primary IP address of the
specified source interface is used
as the source IP address of
tunneled packets.