Configuring a Tunnel Interface
Context
Configuring a tunnel interface includes configuring the protocol type, source address, and destination address and IP address.
The device does not support fragmentation of packets that are transmitted over the IPv4 over IPv6 tunnel. Therefore, the IPv4 MTU of the tunnel interface must meet the following conditions:
IPv4 MTU of the tunnel interface < (IPv6 MTU of the physical interface - Header length of IPv6 packets on the IPv4 over IPv6 tunnel)
Procedure
- Run system-view
The system view is displayed.
- Run interface tunnel interface-number
A tunnel interface is created.
- Run tunnel-protocol ipv4-ipv6
The tunnel type is set to IPv4 over IPv6.
- Run source { source-ip-address | interface-type interface-number }
A source IPv6 address or source interface is configured.
- Run destination [ vpn-instance vpn-instance-name ] dest-ip-address
The destination address is configured.
- Run the following commands as required.
Run ip address ip-address { mask | mask-length } [ sub ]
An IPv4 address is configured for the tunnel interface.
Run ip address unnumbered interface interface-type interface-number
The tunnel interface is configured to borrow an IPv4 address.