This example displays how to configure a basic OTV network that uses the configuration default values:
!Configure the physical interface that OTV uses to reach the
! DCI transport infrastructure
interface ethernet 2/1
ip address 192.0.2.1/24
ip igmp version 3
no shutdown
!Configure the VLAN that will be extended on the overlay network
! and the site-vlan
vlan 2,5-10
! Configure OTV including the VLANs that will be extended.
feature otv
otv site-vlan 2
otv site-identifier 256
interface Overlay1
otv control-group 239.1.1.1
otv data-group 232.1.1.0/28
otv join-interface ethernet 2/1
!Extend the configured VLAN
otv extend-vlan 5-10
no shutdown