Scenario 1

This example creates a VXLAN tunnel between two switches, enabling traffic from two networks to traverse a public network.

Procedure
  1. On switch 1:
    1. Enable interface 1/1/1 and assign the IP address 100.1.1.1/24 to it.
      switch# config
      switch(config)# interface 1/1/1
      switch(config-if)# ip address 100.1.1.1/24
      switch(config-if)# no shutdown
      switch(config-if)# exit
      switch(config)# 
    2. Create VLAN 10.
      switch(config)# vlan 10
      switch(config-vlan-10)# exit
    3. Enable interface 1/1/2 and assign the IP address 10.0.0.1/24 and VLAN 10 to it.
      switch(config)# interface 1/1/2
      switch(config-if)# ip address 10.0.0.1/24
      switch(config-if)# no shutdown
      switch(config-if)# vlan access 10
      switch(config-if)# exit
    4. Create VXLAN interface 1 and assign the source IP address 100.1.1.1/24 to it.
      switch(config)# interface vxlan 1
      switch(config-vxlan-if)# source ip 100.1.1.1
      switch(config-vxlan-if)# no shutdown
    5. Create VNI 10, and assign the VTEP peer address 200.1.1.1 and VLAN 10 to it.
      switch(config-vxlan-if)# vni 10
      switch(config-vni)# vtep-peer 200.1.1.1
      switch(config-vni)# vlan 10
      switch(config-vni)# exit
      switch(config-vxlan-if)# exit
  2. On switch 2:
    1. Enable interface 1/1/1 and assign the IP address 200.1.1.1/24 to it.
      switch# config
      switch(config)# interface 1/1/1
      switch(config-if)# ip address 200.1.1.1/24
      switch(config-if)# no shutdown
      switch(config-if)# exit 
    2. Create VLAN 10.
      switch(config)# vlan 10
      switch(config-vlan-10)# exit
    3. Enable interface 1/1/2 and assign the IP address 10.0.0.2/24 and VLAN 10 to it.
      switch(config)# interface 1/1/2
      switch(config-if)# ip address 10.0.0.2/24
      switch(config-if)# no shutdown
      switch(config-if)# vlan access 10
      switch(config-if)# exit 
    4. Create VXLAN interface 1 and assign the source IP address 200.1.1.1/24 to it.
      switch(config)# interface vxlan 1
      switch(config-vxlan-if)# source ip 200.1.1.1
      switch(config-vxlan-if)# no shutdown
    5. Create VNI 10, and assign the VTEP peer address 100.1.1.1 and VLAN 10 to it.
      switch(config-vxlan-if)# vni 10
      switch(config-vni)# vtep-peer 100.1.1.1
      switch(config-vni)# vlan 10
      switch(config-vni)# exit
      switch(config-vxlan-if)# exit
      switch(config)#