Configuring VXLAN
For example, VLAN 100-1000 is configured on the port. To remove VLAN 200-300 from the configured
range, use the no switchport vlan mapping <200-300> dot1q-tunnel <sp-vlan> CLI command.
interface Ethernet1/32
switch(config-if)# no sw vlan mapp 200-300 dot1q-tunnel 21
switch(config-if)# sh run int e 1/32
version 7.0(3)I5(2)
interface Ethernet1/32
• Only the native VLANs and the service provider VLANs are allowed on the selective Q-in-VNI port.
No other VLANs are allowed on the selective Q-in-VNI port and even if they are allowed, the packets
for those VLANs are not forwarded.
See the following configuration examples.
• See the following example for the provider VLAN configuration:
vlan 50
vn-segment 10050
• See the following example for configuring VXLAN Flood and Learn with Ingress Replication:
member vni 10050
• See the following example for the interface nve configuration:
interface nve1
no shutdown
source-interface loopback0
mcast-group 230.1.1.1
• See the following example for the native VLAN configuration:
vlan 150
interface vlan150
no shutdown
ip address 150.1.150.6/24
ip pim sparse-mode
switchport
switchport mode trunk
switchport trunk native vlan 4049
switchport vlan mapping 100-1000 dot1q-tunnel 21
switchport trunk allowed vlan 21,4049
no shutdown
switchport
switchport mode trunk
switchport trunk native vlan 4049
switchport vlan mapping 100-199,301-1000 dot1q-tunnel 21
switchport trunk allowed vlan 21,4049
no shutdown
ingress-replication protocol static
peer-ip 100.1.1.3
peer-ip 100.1.1.5
peer-ip 100.1.1.10
member vni 10050
Cisco Nexus 9000 Series NX-OS VXLAN Configuration Guide, Release 7.x
Configuring Selective Q-in-VNI
31