Tunnel Interface Configuration Mode Commands


Tunnel Interface Configuration Mode Commands
 
 
The Tunnel Interface Configuration Mode is used to create and manage the IP interfaces for various type of tunnels and its parameters like addresses, address resolution options, etc.
 
Important: The commands or keywords/variables that are available are dependent on platform type, product version, and installed license(s).
 
description
Configures the description text for the current interface.
Product
All
Privilege
Security Administrator, Administrator
Syntax
descriptiontext
no description
no
Clears the description for the interface.
text
Specifies the descriptive text to use. text must be 0 to 79 alpha and/or numeric characters with no spaces or a quoted string of printable characters. The interface description is case sensitive.
Usage
Set the description to provide useful information on the interface’s primary function, services, end users, etc. Any information useful may be provided.
Example
Following command sets the description about this interface:
description sampleInterfaceDescriptiveText
 
end
Exits the interface configuration mode and returns to the Exec mode.
Product
All
Privilege
Security Administrator, Administrator
Syntax
end
Usage
Change the mode back to the Exec mode.
 
exit
Exits the Interface Configuration Mode and returns to the Context Configuration Mode.
Product
All
Privilege
Security Administrator, Administrator
Syntax
exit
Usage
Return to the context configuration mode.
 
ip address
This command configures the IPv4 address for the specific tunnel interface.
Product
All
Privilege
Security Administrator, Administrator
Syntax
ip address [ip_address/ip_mask | ip_address ip_mask]
no ip address ip_address
no
Removes the configured IPv4 address bound to a tunnel interface.
ip_address/ip_mask | ip_address ip_mask
Specifies a destination IP address or group of addresses that will use this route.
ip_address/ip_mask: Specifies a combined IP address subnet mask bits to indicate what IP addresses to which the route applies. ip_address/ip_mask must be specified using the form ‘IP Address/Mask Bits’ where the IP address is specified using the standard IPv4 dotted decimal notation and the mask bits are a numeric value which is the number of bits in the subnet mask.
ip_address ip_mask: Specifies an IP address and the networking (subnet) mask pair which is used to identify the set of IP addresses to which the route applies. ip_address must be specified using the standard IPv4 dotted decimal notation. ip_mask must be specified using the standard IPv4 dotted decimal notation as network mask for subnets.
The mask as specified by ip_mask or resulting from ip_address/ip_mask is used to determine the network for packet routing.
0’s in the resulting mask indicate the corresponding bit in the IP address is not significant in determining the network for packet routing.
1’s in the resulting mask indicate the corresponding bit in the IP address is significant in determining the network.
Usage
Use this command to bind the IPv4 address to a tunnel interface. This address does not affect the encapsulation of packets going out on the tunnel interface.
Example
The following command will assign the 1.2.3.4 as IPv4 address to this tunnel interface:
ip address 1.2.3.4
 
ipv6 address
This command configures the IPv6 address for the specific tunnel interface.
Product
All
Privilege
Security Administrator, Administrator
Syntax
ipv6 address ipv6_address/ipv6_mask
no ipv6 address ipv6_address
no
Removes the configured IPv6 address bound to a tunnel interface.
ipv6_address/ipv6_mask
Specifies a destination IP address or group of addresses that will use this route.
ipv6_address/ipv6_mask: Specifies a combined IP address subnet mask bits to indicate what IP addresses to which the route applies. ipv6_address/ipv6_mask must be specified using the form ‘IP Address/Mask Bits’ where the IP address is specified using the standard IPv4 dotted decimal notation and the mask bits are a numeric value which is the number of bits in the subnet mask.
Usage
Use this command to bind the IPv6 address to a tunnel interface. This address does not affect the encapsulation of packets going out on the tunnel interface.
Example
The following command will assign the 1001::2:010:1234 as IPv4 address to this tunnel interface:
ipv6 address 1001::2:010:1234
 
tunnel-mode
This command configures the tunnel mode type for specific tunnel interface. It also creates the specific tunnel configuration mode if required.
Product
All
Privilege
Security Administrator, Administrator
Syntax
tunnel-mode {gre | ipv6ip}
defualt tunnel-mode
default
Sets the default tunnel mode for this interface. By default tunnel mode is set to IPv6-to-IPv4 type.
gre
Default: Disabled
This keyword sets the tunnel interface mode to GRE type and creates the GRE tunnel Configuration mode if required.
ipv6ip
Default: Enabled
This keyword sets the tunnel interface mode to IPv6-to-IPv4 type and creates the IPv6-to-IPv4 Tunnel Configuration mode, if required.
Usage
Use this command to set the tunnel mode type of GRE or IPv6-to-IPv4 for tunneling interface.
Example
The following command sets the tunnel mode to GRE for specific interface:
tunnel-mode gre
 
 

Cisco Systems Inc.
Tel: 408-526-4000
Fax: 408-527-0883