Configuring an IP tunnel
Prerequisites
An enabled layer 3 interface with an IP address assigned to it, created with the command
interface
.
Procedure
-
Create an IP tunnel with the command
interface tunnel
. -
Set the IP address for the tunnel.
For an IPv6 in IPv4 or an IPv6 in IPv6 tunnel, enter the command
ipv6 address
. -
Set the source IP address for the tunnel. For
an IPv6 in IPv4 tunnel, enter the command
source ip
. For an IPv6 in IPv6 tunnel, enter the commandsource ipv6
. -
Set the destination IP address for the tunnel.
For
an IPv6 in IPv4 tunnel, enter the command
destination ip
. For an IPv6 in IPv6 tunnel, enter the commanddestination ipv6
. -
Optionally, set the TTL (hop count) for the tunnel with the command
ttl
. -
Optionally, set the MTU for the tunnel with the command
ip mtu
. -
Optionally, add a description to the tunnel with the command
description
. - Enable the tunnel with the command no shutdown.
-
Review tunnel settings with the command
show interface tunnel
.