gre key vlan-id
Use gre key vlan-id to enable an EVI tunnel interface to generate a GRE key for tunneled packets based on their VLAN IDs.
Use undo gre key to disable GRE key generation on an EVI tunnel interface.
Syntax
gre key vlan-id
undo gre key
Default
EVI tunneled packets do not contain a GRE key.
Views
Tunnel interface view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
The GRE key setting must be the same across an EVI network.
Configure this command on an EVI tunnel interface if any remote edge devices generate VLAN ID-based GRE keys for EVI tunneled packets. The EVI tunnel interface accepts an incoming tunneled packet only if the GRE key in the packet matches one of the local GRE keys.
Examples
# Enable EVI tunnel interface 1 to generate VLAN ID-based GRE keys for tunneled packets.
<Sysname> system-view [Sysname] interface tunnel 1 mode evi [Sysname-Tunnel2] gre key vlan-id