Step 1
|
configure terminal
switch# configure terminal
|
Enters global configuration mode.
|
Step 2
|
feature vpc
switch(config)# feature vpc
|
Enables vPCs on the device.
|
Step 3
|
feature interface-vlan
switch(config)# feature interface-vlan
|
Enables the interface VLAN feature on the device.
|
Step 4
|
feature lacp
switch(config)# feature lacp
|
Enables the LACP feature on the device.
|
Step 5
|
feature pim
switch(config)# feature pim
|
Enables the PIM feature on the device.
|
Step 6
|
feature ospf
switch(config)# feature ospf
|
Enables the OSPF feature on the device.
|
Step 7
|
ip pim rp-address
address
group-list
range
switch(config)# ip pim rp-address 100.100.100.1 group-list 224.0.0/4
|
Defines a PIM RP address for the underlay multicast group range.
|
Step 8
|
vpc domain
domain-id
switch(config)# vpc domain 1
|
Creates a vPC domain on the device and enters vpn-domain configuration mode for configuration purposes. There is no default.
The range is from 1 to 1000.
|
Step 9
|
peer switch
switch(config-vpc-domain)# peer switch
|
|
Step 10
|
peer gateway
switch(config-vpc-domain)# peer gateway
|
Enables Layer 3 forwarding for packets destined to the gateway MAC address of the vPC.
|
Step 11
|
peer-keepalive destination
ip-address
switch(config-vpc-domain)# peer-keepalive destination 172.28.230.85
|
Configures the IPv4 address for the remote end of the vPC peer-keepalive link.
Note
|
The system does not form the vPC peer link until you configure a vPC peer-keepalive link.
|
The management ports and VRF are the defaults.
|
Step 12
|
ip arp synchronize
switch(config-vpc-domain)# ip arp synchronize
|
Enables IP ARP synchronize under the vPC domain to facilitate faster ARP table population following device reload.
|
Step 13
|
ipv6 nd synchronize
switch(config-vpc-domain)# ipv6 nd synchronize
|
Enables IPv6 ND synchronization under the vPC domain to facilitate faster ND table population following device reload.
|
Step 14
|
Create the vPC peer-link.
switch(config)# interface port-channel 1
switch(config)# switchport
switch(config)# switchport mode trunk
switch(config)# switchport trunk allowed vlan 1,10,100-200
switch(config)# mtu 9216
switch(config)# vpc peer-link
switch(config)# no shut
switch(config)# interface Ethernet 1/1, 1/21
switch(config)# switchport
switch(config)# mtu 9216
switch(config)# channel-group 1 mode active
switch(config)# no shutdown
|
Creates the vPC peer-link port-channel interface and adds two member interfaces to it.
|
Step 15
|
system nve infra-vlans
range
switch(config)# system nve infra-vlans 10
|
Defines a non-VXLAN-enabled VLAN as a backup routed path.
|
Step 16
|
vlan
number
|
Creates the VLAN to be used as an infra-VLAN.
|
Step 17
|
Create the SVI.
switch(config)# interface vlan 10
switch(config)# ip address 10.10.10.1/30
switch(config)# ip router ospf process UNDERLAY area 0
switch(config)# ip pim sparse-mode
switch(config)# no ip redirects
switch(config)# mtu 9216
switch(config)# no shutdown
|
Creates the SVI used for the backup routed path over the vPC peer-link.
|
Step 18
|
(Optional) delay restore interface-vlan
seconds
switch(config-vpc-domain)# delay restore interface-vlan 45
|
(Optional)
Enables the delay restore timer for SVIs. We recommend tuning this value when the SVI/VNI scale is high. For example, when
the SCI count is 1000, we recommend that you set the delay restore to 45 seconds.
|
Step 19
|
evpn multisite border-gateway
ms-id
switch(config)# evpn multisite border-gateway 100
|
Configures the site ID for a site/fabric. The range of values for ms-id is 1 to 281474976710655. The ms-id must be the same in all BGWs within the same fabric/site.
|
Step 20
|
interface nve 1
switch(config-evpn-msite-bgw)# interface nve 1
|
Creates a VXLAN overlay interface that terminates VXLAN tunnels.
Note
|
Only one NVE interface is allowed on the switch.
|
|
Step 21
|
source-interface loopback
src-if
switch(config-if-nve)# source-interface loopback 0
|
Defines the source interface, which must be a loopback interface with a valid /32 IP address. This /32 IP address must be
known by the transient devices in the transport network and the remote VTEPs. This requirement is accomplished by advertising
the address through a dynamic routing protocol in the transport network.
|
Step 22
|
host-reachability protocol bgp
switch(config-if-nve)# host-reachability protocol bgp
|
Defines BGP as the mechanism for host reachability advertisement.
|
Step 23
|
multisite border-gateway interface loopback
vi-num
switch(config-if-nve)# multisite border-gateway interface loopback 100
|
Defines the loopback interface used for the BGW virtual IP address (VIP). The BGW interface must be a loopback interface that
is configured on the switch with a valid /32 IP address. This /32 IP address must be known by the transient devices in the
transport network and the remote VTEPs. This requirement is accomplished by advertising the address through a dynamic routing
protocol in the transport network. This loopback must be different than the source interface loopback. The range of vi-num is from 0 to 1023.
|
Step 24
|
no shutdown
switch(config-if-nve)# no shutdown
|
Negates the shutdown command.
|
Step 25
|
exit
switch(config-if-nve)# exit
|
Exits the NVE configuration mode.
|
Step 26
|
interface loopback
loopback-number
switch(config)# interface loopback 0
|
Configures the loopback interface.
|
Step 27
|
ip address
ip-address
switch(config-if)# ip address 198.0.2.0/32
|
Configures the primary IP address for the loopback interface.
|
Step 28
|
ip address
ip-address
secondary
switch(config-if)# ip address 198.0.2.1/32 secondary
|
Configures the secondary IP address for the loopback interface.
|
Step 29
|
ip pim sparse-mode
switch(config-if)# ip pim sparse-mode
|
Configures PIM sparse mode on the loopback interface.
|