Configuration procedure
To configure an IPv6 manual tunnel:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enable IPv6. | ipv6 | By default, the IPv6 packet forwarding function is disabled. |
3. Enter tunnel interface view. | interface tunnel number | N/A |
4. Configure an IPv6 address for the tunnel interface. |
| The link-local IPv6 address configuration is optional. By default:
|
5. Specify the IPv6 manual tunnel mode. | tunnel-protocol ipv6-ipv4 | GRE over IPv4 tunnel by default. The same tunnel mode should be configured at both ends of the tunnel. Otherwise, packet delivery will fail. |
6. Configure a source address or interface for the tunnel. | source { ip-address | interface-type interface-number } | By default, no source address or interface is configured for the tunnel. |
7. Configure a destination address for the tunnel. | destination ip-address | By default, no destination address is configured for the tunnel. |
8. Return to system view. | quit | N/A |
9. Enable dropping of IPv6 packets using IPv4-compatible IPv6 addresses. | tunnel discard ipv4-compatible-packet | Optional. Disabled by default. |