Configuration commands

Use these M4500 CLI commands to create a tunnel interface and set its source, destination, and tunnel mode.

interface tunnel

This command uses to enter the Interface Config mode for a tunnel interface. The tunnel id range is from 0 to 7.

To remove the tunnel interface and associated configuration parameters for the specified tunnel interface, use the no form of this command.

Default None
Format

interface tunnel <0-7>

no interface tunnel <0-7>

Mode Global Config

tunnel source

This command specifies the source transport address of the tunnel, either explicitly or by reference to an interface.

To remove the tunnel source, use the no form of this command.

Default None
Format

tunnel source {<ipv4-address> | <ethernet> {<slot/port> | vlan <vlan-id>}}>

no tunnel source

Mode Interface Tunnel Mode
Fields Definition
<slot/port> The Interface number.
<vlan-id> VLAN ID. The range of VLAN ID is 1 to 4093.
<ipv4-address> A valid IP Address.

tunnel destination

This command specifies the destination transport address of the tunnel.

To remove the tunnel destination, use the no form of this command.

Default None
Format

tunnel destination {<ipv4-address>}

no tunnel destination

Mode Interface Tunnel Mode
Fields Definition
<ipv4-address> A valid IP Address.

tunnel mode

This command specifies the mode of the tunnel.

To restore the tunnel mode, use the no form of this command.

Default None
Format

tunnel mode ipv6ip [6to4] ]

no tunnel mode

Mode Interface Tunnel Mode
Fields Definition
[6to4] With the optional 6to4 argument, the tunnel mode is set to 6to4 automatic. Without the optional 6to4 argument, the tunnel mode is configured.