Configuring a tunnel interface

Configure a Layer 3 virtual tunnel interface on each device on a tunnel so that devices at both ends can send, identify, and process packets from the tunnel.

When an active/standby switchover occurs or the standby card is removed, 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 { evi | gre | ipv6-ipv4 [ 6to4 | auto-tunnel | isatap ] }

By default, no tunnel interface is created.

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.

The two ends of a tunnel must use the same tunnel mode. Otherwise, packet tunneling will fail.

3. (Optional.) Configure a description for the interface.

description text

By default, the description of a tunnel interface is Tunnel number Interface.

4. (Optional.) Specify a service card for forwarding the traffic on the tunnel interface (in standalone mode).

service slot slot-number

By default, no service card is specified.

5. (Optional.) Specify a service card for forwarding the traffic on the tunnel interface (in IRF mode).

service chassis chassis-number slot slot-number

By default, no IRF member device or service card is specified.

6. Set the MTU of the tunnel interface.

mtu mtu-size

By default, the MTU is 1500 bytes.

7. Set the expected bandwidth for the tunnel interface.

bandwidth bandwidth-value

By default, the expected bandwidth is 64 kbps.

The expected bandwidth for the tunnel interface affects the link cost value. For more information, see Layer 3IP Routing Configuration Guide.

8. (Optional.) Restore the default settings of the tunnel interface.

default

N/A

9. (Optional.) Shut down the tunnel interface.

shutdown

N/A