VPC Configuration Best Practices
vPC Configuration steps:
To configure vPC in Datacenter, following are the steps described. We will take these steps one by one and will discuss all best practices associated to it.
- Configure vPC Domain
- Configure vPC Peer-Keepalive Link
- Configure vPC Peer-Link
- Configure vPC member Port (vPC)
Configuring vPC domain and Peer-keepalive Link
A vPC domain contains maximum two nexus switch which are grouped together to participates in vPC. A vPC domain can be configured by entering following commands in nexus CLI: vpc domain <id>
The Id is identifier and should be same on both vPC peer devices.
Following are the steps to configure vPC domain:
- Configure vpc domain < id > globally on both peer-switch
- Configure vPC peer-keep alive link on both peer and ensure this link is operational else vPC domain will not be formed successfully.
Peer-link can be configured by following system command:
Now vPC domain identifier must be same on both peer switch, when the vPC domain ID is same on both peer switch, the vPC system will generate the Virtual vPC system MAC address which is same on both Peer device.
vPC system MAC address is generated by following standard MAC : 00:23:04:ee:be:<vPC domain ID in hexadecimal >
Let’s suppose we have configured vpc domain 10, so hexadecimal of 10 is ‘0a’ than the VPC system MAC would be: 00:23:04: ee: be: 0a
Having same vPC system MAC address on both peer switch makes the access-device which is going to attached to vpc with both peer-switch and access device will see the both different switch as a logical same switch through which it is going to connect via vPC and will form the Port-channel successfully.
vPC system MAC address can also be configured manually via command “ system-mac < MAC > inside vPC domain.
There is also another MAC called vPC Local System-MAC which is burn in MAC address of switch and this MAC is used for all another communication in Layer -2 domain like STP etc. This Local system MAC address is derived from system or VDC mac address.
There is also another important feature which should be configured inside vPC domain is vPC role. Let’s understand this.