1 NVGRE Commands
1.1 nvgre
To configure NVGRE related features, use the nvgre
command in global configuration mode.
Command Syntax:
nvgre
Command Mode:
Global Configuration
Default:
None
Usage:
None
Examples:
Switch(config)# nvgre
Switch(config-nvgre)# source 10.1.1.1
Related Commands:
None
1.2 source
To specify the outer source IPv4 address of the encapsulated NVGRE packets, use the source
command in NVGRE configuration mode.
Command Syntax:
source A.B.C.D
Parameter | Description |
---|---|
A.B.C.D |
Source IPv4 address of the encapsulated NVGRE packet |
Command Mode:
NVGRE Configuration
Default:
None
Usage:
None
Examples:
Switch(config-nvgre)# source 10.1.1.1
Related Commands:
None
1.3 vlan id mapping
To add a mapping between VLAN ID and NVGRE VSID (tunnel ID), use the vlan id mapping
command in NVGRE configuration mode. To delete the mapping, use the no
form of this command.
Command Syntax:
vlan VLAN_ID tunnel-id <1-16777215>
no vlan VLAN_ID tunnel-id
Parameter | Description |
---|---|
VLAN_ID |
VLAN ID to be mapped |
<1-16777215> |
24-bit NVGRE VSID (tunnel ID) |
Command Mode:
NVGRE Configuration
Default:
None
Usage:
None
Examples:
Switch(config)# nvgre
Switch(config-nvgre)# source 10.1.1.1
Switch(config-nvgre)# vlan 2 tunnel-id 2
Related Commands:
None
1.4 vlan id peer
To add a NVGRE overlay tunnel for a VLAN, use the vlan id peer
command in NVGRE configuration mode. To delete the tunnel, use the no
form of this command.
Command Syntax:
vlan VLAN_ID peer A.B.C.D
no vlan VLAN_ID peer A.B.C.D
Parameter | Description |
---|---|
VLAN_ID |
VLAN ID |
A.B.C.D |
IPv4 address of tunnel remote endpoint |
Command Mode:
NVGRE Configuration
Default:
None
Usage:
None
Examples:
Switch(config)# nvgre
Switch(config-nvgre)# source 10.1.1.1
Switch(config-nvgre)# vlan 2 tunnel-id 2
Switch(config-nvgre)# vlan 2 peer 10.1.1.2
Related Commands:
None
1.5 nvgre enable
To enable a physical Ethernet interface to decapsulate NVGRE packets, use the command in interface configuration mode. To disable decapsulating, enter the disable form of this command.
Command Syntax:
nvgre enable
nvgre disable
Command Mode:
Interface Configuration
Default:
None
Usage:
None
Examples:
Switch(config)# interface eth-0-1
Switch(config-if)# nvgre enable
Related Commands:
None