NVE Bound Loopback Interface – Secondary IP Addresses as VTEP IP Addresses
In this example, the NVE interface is bound to the loopback0 interface. This loopback interface must have two IP addresses, a primary IP address and a secondary IP address. In a vPC pair, the vPC switches must have a unique primary IP address and a common secondary IP address (1.1.106.1). This secondary IP address is the VTEP IP address of the vPC pair and is used in the data path.
vPC Primary Configuration
NSXv-TOR1# sh ru int nve 1
interface nve1
no shutdown
source-interface loopback0
auto-remap-replication-servers
host-reachability protocol controller 1
source-interface hold-down-time 360
config-source controller
NSXv-TOR1# sh ru int loopback 0
interface loopback0
description vtep_loopback_interface
ip address 1.1.101.1/32
ip address 1.1.106.1/32 secondary
ip router ospf 1 area 0.0.0.0
vPC Secondary Configuration
NSXv-TOR2# sh ru int nve 1
interface nve1
no shutdown
description L2
source-interface loopback0
auto-remap-replication-servers
host-reachability protocol controller 1
source-interface hold-down-time 360
config-source controller
NSXv-TOR2# sh ru int loopback 0
interface loopback0
ip address 1.1.102.1/32
ip address 1.1.106.1/32 secondary
ip router ospf 1 area 0.0.0.0
Cisco NX-OS does not support a dynamic change of the NVE loopback secondary IP address (the tunnel or VTEP IP address). Follow this procedure to change the VTEP IP address.
On a vPC pair, follow these steps:
-
Shut the NVE interface on both the primary and secondary vPC switches.
-
Remove the existing VTEP IP address (using the no ip address command) on the NVE loopback interface on both the primary and secondary vPC switches.
-
Add the new secondary IP address on both the primary and secondary vPC switches.
-
Enter the no shut command on the NVE interface on both the primary and secondary vPC switches.
On a standalone switch, follow these steps:
-
Shut the NVE interface.
-
Remove the existing primary VTEP IP address (using the no ip address command) on the NVE loopback interface.
-
Add the new primary IP address.
-
Enter the no shut command on the NVE interface.