Configuring a Manual IPv6 over IPv4 Tunnel
A manual IPv6 over IPv4 tunnel is a P2P tunnel. The source address and destination address of a manual IPv6 over IPv4 tunnel are both manually assigned and must be unique on the same device. A manual IPv6 over IPv4 tunnel acts as a permanent link that connects two IPv6 networks across an IPv4 network. Border routers can communicate with each other securely and regularly through manual IPv6 over IPv4 tunnels.
Usage Scenario
To enable IPv6 networks to communicate with each other through an IPv4 network, configure IPv6 over IPv4 tunnels on the routers where IPv6 networks border an IPv4 network.
Manual IPv6 over IPv4 tunnels can be used for communication between IPv6 networks or between a border router and a host. The host and border router at the two ends of an IPv6 over IPv4 tunnel must support the IPv4/IPv6 dual stack. The intermediate devices do not need to support the IPv4/IPv6 dual stack. You can configure multiple manual IPv6 over IPv4 tunnels on the border router to communicate with multiple IPv6 networks.
Pre-configuration Tasks
Before configuring a manual IPv6 over IPv4 tunnel, complete the following tasks:
Connect interfaces and configure physical parameters for the interfaces to ensure that the physical status of the interfaces is Up.
Configure link layer protocol parameters for the interfaces to ensure that the link layer protocol status of the interfaces is Up.
Assign an IPv4 address to each border router.
Configure IPv6 globally and on interfaces.
Assign an IPv6 address to each border router.
Procedure
- Run system-view
The system view is displayed.
- Run interface tunnel interface-number
A tunnel interface is created.
- Run tunnel-protocol ipv6-ipv4
The tunnel mode is set to manual IPv6 over IPv4 tunnel mode.
- Run source { ipv4-address | interface-type interface-number }
The source address or source interface of the tunnel is specified.
- Run destination ipv4-address
The destination address of the tunnel is specified.
The destination address of an IPv6 over IPv4 tunnel can be a physical or loopback interface address.
- Run ipv6 enable
IPv6 is configured on the interface.
- Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }
An IPv6 address is configured for the tunnel interface.
- Run commit
The configuration is committed.