The MAC address is used when the priority is not being configured and the same.
The lower the vPC Local System MAC address, the better the chance to be elected as the primary vPC peer device.
The lower the vPC Local Role Priority value, the better the chance to be elected as the primary vPC peer device.
N5K-01# sh run vpc !Command: show running-config vpc !Time: Wed Jun 15 05:25:09 2011 version 4.2(1)N2(1) feature vpc vpc domain 1 peer-keepalive destination 1.1.1.2 source 1.1.1.1 vrf default interface port-channel1 vpc 1 interface port-channel10 vpc peer-link N5K-01# N5K-01# sh vpc Legend: (*) - local vPC is down, forwarding via vPC peer-link vPC domain id : 1 Peer status : peer adjacency formed ok vPC keep-alive status : peer is alive Configuration consistency status: success vPC role : secondary Number of vPCs configured : 1 Peer Gateway : Disabled Dual-active excluded VLANs : - vPC Peer-link status --------------------------------------------------------------------- id Port Status Active vlans -- ---- ------ -------------------------------------------------- 1 Po10 up 10 vPC status ---------------------------------------------------------------------------- id Port Status Consistency Reason Active vlans ------ ----------- ------ ----------- -------------------------- ----------- 1 Po1 up success success 10 N5K-01# N5K-01# sh vpc role vPC Role status ---------------------------------------------------- vPC role : secondary Dual Active Detection Status : 0 vPC system-mac : 00:23:04:ee:be:01 vPC system-priority : 32667 vPC local system-mac : 00:05:73:af:fe:7c vPC local role-priority : 32667 N5K-01# ================================================================================ N5K-02# sh run vpc !Command: show running-config vpc !Time: Wed Jun 15 05:26:29 2011 version 4.2(1)N2(1) feature vpc vpc domain 1 peer-keepalive destination 1.1.1.1 source 1.1.1.2 vrf default interface port-channel1 vpc 1 interface port-channel10 vpc peer-link N5K-02# N5K-02# sh vpc Legend: (*) - local vPC is down, forwarding via vPC peer-link vPC domain id : 1 Peer status : peer adjacency formed ok vPC keep-alive status : peer is alive Configuration consistency status: success vPC role : primary Number of vPCs configured : 1 Peer Gateway : Disabled Dual-active excluded VLANs : - vPC Peer-link status --------------------------------------------------------------------- id Port Status Active vlans -- ---- ------ -------------------------------------------------- 1 Po10 up 10 vPC status ---------------------------------------------------------------------------- id Port Status Consistency Reason Active vlans ------ ----------- ------ ----------- -------------------------- ----------- 1 Po1 up success success 10 N5K-02# N5K-02# sh vpc role vPC Role status ---------------------------------------------------- vPC role : primary Dual Active Detection Status : 0 vPC system-mac : 00:23:04:ee:be:01 vPC system-priority : 32667 vPC local system-mac : 00:05:73:af:fa:fc vPC local role-priority : 32667 N5K-02# ================================================================================ N5K-01# conf t Enter configuration commands, one per line. End with CNTL/Z. N5K-01(config)# vpc domain 1 N5K-01(config-vpc-domain)# role priority ? <1-65535> Specify priority value N5K-01(config-vpc-domain)# role priority 100 Warning: !!:: vPCs will be flapped on current primary vPC switch while attempting role change ::!! Note: --------:: Change will take effect after user has re-initd the vPC peer-link ::-------- N5K-01(config-vpc-domain)# sh vpc Legend: (*) - local vPC is down, forwarding via vPC peer-link vPC domain id : 1 Peer status : peer adjacency formed ok vPC keep-alive status : peer is alive Configuration consistency status: success vPC role : secondary Number of vPCs configured : 1 Peer Gateway : Disabled Dual-active excluded VLANs : - vPC Peer-link status --------------------------------------------------------------------- id Port Status Active vlans -- ---- ------ -------------------------------------------------- 1 Po10 up 10 vPC status ---------------------------------------------------------------------------- id Port Status Consistency Reason Active vlans ------ ----------- ------ ----------- -------------------------- ----------- 1 Po1 up success success 10 N5K-01(config-vpc-domain)# N5K-01(config-vpc-domain)# int po10 N5K-01(config-if)# shut 2011 Jun 15 05:26:48 N5K-01 %$ VDC-1 %$ %VPC-2-VPC_SUSP_ALL_VPC: Peer-link going down, suspending all vPCs on secondary N5K-01(config-if)# no shut N5K-01(config-if)# N5K-01(config-if)# sh vpc Legend: (*) - local vPC is down, forwarding via vPC peer-link vPC domain id : 1 Peer status : peer adjacency formed ok vPC keep-alive status : peer is alive Configuration consistency status: success vPC role : primary Number of vPCs configured : 1 Peer Gateway : Disabled Dual-active excluded VLANs : - vPC Peer-link status --------------------------------------------------------------------- id Port Status Active vlans -- ---- ------ -------------------------------------------------- 1 Po10 up 10 vPC status ---------------------------------------------------------------------------- id Port Status Consistency Reason Active vlans ------ ----------- ------ ----------- -------------------------- ----------- 1 Po1 up success success 10 N5K-01(config-if)# N5K-01(config-if)# sh vpc role vPC Role status ---------------------------------------------------- vPC role : primary Dual Active Detection Status : 0 vPC system-mac : 00:23:04:ee:be:01 vPC system-priority : 32667 vPC local system-mac : 00:05:73:af:fe:7c vPC local role-priority : 100 N5K-01(config-if)# ================================================================================ N5K-02# sh vpc Legend: (*) - local vPC is down, forwarding via vPC peer-link vPC domain id : 1 Peer status : peer adjacency formed ok vPC keep-alive status : peer is alive Configuration consistency status: success vPC role : secondary Number of vPCs configured : 1 Peer Gateway : Disabled Dual-active excluded VLANs : - vPC Peer-link status --------------------------------------------------------------------- id Port Status Active vlans -- ---- ------ -------------------------------------------------- 1 Po10 up 10 vPC status ---------------------------------------------------------------------------- id Port Status Consistency Reason Active vlans ------ ----------- ------ ----------- -------------------------- ----------- 1 Po1 up success success 10 N5K-02# N5K-02# sh vpc role vPC Role status ---------------------------------------------------- vPC role : secondary Dual Active Detection Status : 0 vPC system-mac : 00:23:04:ee:be:01 vPC system-priority : 32667 vPC local system-mac : 00:05:73:af:fa:fc vPC local role-priority : 32667 N5K-02#
Whats the actual purpose of the active role in VPC
ReplyDeleteThanks for this!
ReplyDelete