317
Configuring a tunnel interface
Configure a tunnel interface (Layer 3 virtual interface) at both ends of a tunnel. The devices use the
tunnel interface to identify, process, and send packets for the tunnel.
When an active/standby switchover occurs or the standby card is removed on a distributed device,
the tunnel interfaces configured on the active or standby card still exist. To delete a tunnel interface,
use the undo interface tunnel command.
To configure a tunnel interface:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Create a tunnel interface,
specify the tunnel mode, and
enter tunnel interface view.
interface tunnel
number
mode
{
advpn
{
gre
|
udp
} [
ipv6
] |
ds-lite-aftr
|
evi
|
gre
[
ipv6
] |
ipsec
[
ipv6
] |
ipv4-ipv4
|
ipv6
|
ipv6-ipv4
[
6to4
|
auto-tunnel
|
isatap
] |
mpls-te
|
nve
}
By default, no tunnel interfaces
exist.
When you create a new tunnel
interface, you must specify the
tunnel mode. When you enter the
view of an existing tunnel
interface, you do not need to
specify the tunnel mode.
For packet tunneling to succeed,
the two ends of a tunnel must use
the same tunnel mode.
3. (Optional.) Configure a
description for the interface.
description
text
By default, the description for a
tunnel interface is
Tunnel
number
Interface
.
4. (Optional.) Specify a primary
traffic processing slot for the
interface.
• Distributed devices in
standalone mode/centralized
devices in IRF mode:
service slot slot-number
• Distributed devices in IRF
mode:
service chassis
chassis-number slot
slot-number
By default, no primary traffic
processing slot is specified for an
interface.
5. (Optional.) Specify a backup
traffic processing slot for the
interface.
• Distributed devices in
standalone mode/centralized
devices in IRF mode:
service standby slot
slot-number
• Distributed devices in IRF
mode:
service standby chassis
chassis-number slot
slot-number
By default, no backup traffic
processing slot is specified for an
interface.
6. Set the MTU of the tunnel
interface.
mtu
size
If the tunnel interface has never
been up, the default MTU is
64000 bytes.
If the tunnel interface is up, its
default MTU is identical to the
outgoing interface's MTU minus
the length of the tunnel headers.
The outgoing interface is
automatically obtained through
routing table lookup based on
the tunnel destination address.