tunnel-type ipv4
Configures the source IPv4 address with
mask and tunnel-type for the transport tunnel packets to be terminated.
Syntax
tunnel-type
[
gre
|
erspan
]
[
ipv4-src
ipaddr
mask
]
no tunnel-type
[
gre
|
erspan
]
[
ipv4-src
ipaddr
mask
]
Parameters
- gre
|
erspan
- Specifies the type of tunnel to be
terminated.
- ipv4-src
ipaddr
mask
- Specifies the source IPv4 address and mask
configured in dotted decimal notation. Example: 196.168.0.1.
Modes
Transport tunnel config
mode
Usage Guidelines
This command is available only to users with the admin
role.
If all the parameters match along with the chassis MAC, the transport header is removed and
packets are subjected to further processing.
If the IP address is not provided, all packets matching the tunnel type or transport
header type are configured for termination.
Validations for the command are as follows:
- Valid tunnel type must be provided.
- Valid IP address and mask must be
provided.
- Only valid unicast IP addresses are supported. Multicast IP
addresses are not supported.
- Only one tunnel type per
transport tunnel is allowed. The configured tunnel type must
be removed before you configure a new tunnel type.
- If the same command is run more
than once, the second and subsequent instances are ignored
and no error is reported.
- If the no form of the command is run
without the configuration, the command is ignored and no
error is reported.
Examples
The following examples configure the transport tunnel:
device(config-transport-tunnel)# tunnel-type erspan ipv4-src 192.168.2.10 255.255.0.0
device(config-transport-tunnel)# tunnel-type gre ipv4-src 10.10.2.3 255.255.255.0
device# show running-config transport-tunnel tt1
transport-tunnel tt1
tunnel-type gre ipv4-src 10.10.2.3 255.255.255.0