{"id":448,"date":"2017-06-15T11:11:05","date_gmt":"2017-06-15T10:11:05","guid":{"rendered":"http:\/\/www.balajibandi.com\/?p=448"},"modified":"2017-08-20T08:24:16","modified_gmt":"2017-08-20T07:24:16","slug":"nexus-and-vpc-understanding","status":"publish","type":"post","link":"https:\/\/www.balajibandi.com\/?p=448","title":{"rendered":"Nexus and vPC understanding."},"content":{"rendered":"<h1><span style=\"text-decoration: underline;\"><strong><span style=\"color: #0000ff; text-decoration: underline;\">Nexus and vPC ( VIRTUAL PORT CHANNEL) understanding.<\/span><\/strong><\/span><\/h1>\n<p>I have been working on Nexus Environment, but could not get chance to document as blog for others can refer, Most of the time due to busy with \u00a0projects and tight \u00a0schedules and learning phase not got enough time to \u00a0make a Lab and share, Now since simulators available i am going to make some of my testing for your reference : keep reading the blog.<\/p>\n<p>vPC technology on Nexus switches, you can now minimize the Spanning-Tree implementation between two identical Nexus switches acting as &#8220;core switches&#8221;. (Other than Nexus 2K &#8211; act as only L2 Extention switch)<\/p>\n<p>vPC is Cisco Nexus MEC (Multi-chassis Ether Channel) solution. This vPC allows a downstream device running LACP (Link Aggregation Protocol) to bundle multiple links into a single logical link, which then connects to two different upstream switches configured in a common vPC domain.<\/p>\n<p>A virtual port channel (vPC) allows links that are physically connected to two different Nexus 9K, 7K, 6K, 5K, or 3K switches together by doing a great job of spoofing Layer 2 (L2), including STP BPDU (Spanning Tree hellos) and FHRP (First Hop Routing Protocol such as HSRP, VRRP, GLBP) behavior. At L2, the switches behave like one switch, while retaining their distinct identities, unlike the Cisco VSS technique used with the 6500\/6800 switches.<\/p>\n<p>vPC terms :<\/p>\n<p id=\"jZFnarb\"><img loading=\"lazy\" decoding=\"async\" width=\"1252\" height=\"605\" class=\"alignnone size-full wp-image-449 \" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/07\/img_597d875c37900.png\" alt=\"\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/07\/img_597d875c37900.png 1252w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/07\/img_597d875c37900-300x145.png 300w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/07\/img_597d875c37900-768x371.png 768w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/07\/img_597d875c37900-1024x495.png 1024w\" sizes=\"auto, (max-width: 1252px) 100vw, 1252px\" \/><\/p>\n<p>vPC Components :<\/p>\n<p id=\"JHPuuye\"><img loading=\"lazy\" decoding=\"async\" width=\"818\" height=\"757\" class=\"alignnone size-full wp-image-450 \" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/07\/img_597d87962386b.png\" alt=\"\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/07\/img_597d87962386b.png 818w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/07\/img_597d87962386b-300x278.png 300w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/07\/img_597d87962386b-768x711.png 768w\" sizes=\"auto, (max-width: 818px) 100vw, 818px\" \/><\/p>\n<p>vPC Deployment Scenarios<\/p>\n<p>vPC is typically used at the access or aggregation layer of the data center.<\/p>\n<p>The 2 common deployment scenarios using vPC technology are listed as below:<br \/>\n\u25cf Inside Data Center:<br \/>\n\u25e6 Single-sided vPC (access layer or aggregation layer)<br \/>\n\u25e6 Double-sided vPC, also called multilayer vPC (access layer using vPC interconnected to aggregation layer using vPC)<br \/>\n\u25cf Across Data Center i.e vPC for Data Center Interconnect (DCI):<br \/>\n\u25e6 Multilayer vPC for Aggregation and DCI<br \/>\n\u25e6 Dual Layer 2 \/Layer 3 Pod Interconnect<\/p>\n<p>Below Simple typology \u00a0for testing.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"847\" height=\"618\" class=\"alignnone size-full wp-image-452 \" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/07\/img_597d9924dd7d4.png\" alt=\"\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/07\/img_597d9924dd7d4.png 847w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/07\/img_597d9924dd7d4-300x219.png 300w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/07\/img_597d9924dd7d4-768x560.png 768w\" sizes=\"auto, (max-width: 847px) 100vw, 847px\" \/><\/p>\n<p>The vPC implementation requires the following<br \/>\n* vPC domain ID<br \/>\n* vPC peer keepalive<br \/>\n* vPC peer<\/p>\n<p>vPC domain ID :<br \/>\nBasically the vPC domain ID is like a domain of certain vPC members to distinguish from other vPC members. Such the domain can be seen as &#8220;virtual&#8221; Spanning-Tree domain which may consist of one or more VLAN. Similar to Spanning Tree concept, the domain ID is a number between 1 to 1000.<\/p>\n<p>vPC peer keepalive:<br \/>\nThe vPC peer keepalive is a mechanism similar to heartbeat, in order to find out whether the other Nexus &#8220;core switch&#8221; is alive. In a case where one of the core switch is unreachable from other core switch, the vPC domain is not disrupted; however it is suggested to mitigate the issue.<\/p>\n<p>vPC peer:<br \/>\nThe vPC peer is a mechanism to bundle the two &#8220;core switches&#8221; into single virtual switch from the perspective of access switch (or hosts). In Cisco implementation, this vPC peer requires identical 10 Gbps ports between the two &#8220;core switches&#8221; to form Etherchannel (Port Channel).<\/p>\n<p>My \u00a0Complex LAB Setup.<\/p>\n<p id=\"NiuLaVU\"><img loading=\"lazy\" decoding=\"async\" width=\"1016\" height=\"977\" class=\"alignnone size-full wp-image-457 \" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/08\/img_599931790d820.png\" alt=\"\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/08\/img_599931790d820.png 1016w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/08\/img_599931790d820-300x288.png 300w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/08\/img_599931790d820-768x739.png 768w\" sizes=\"auto, (max-width: 1016px) 100vw, 1016px\" \/><\/p>\n<p>Above L:ab PArt of vPC devices are :<\/p>\n<p>NXOS1, NXOS2, INET, Switch3, Switch4<\/p>\n<p>Example config :<\/p>\n<p>INET :<\/p>\n<p>INET#show run<\/p>\n<p>hostname INET<br \/>\nvtp domain BBLB<br \/>\nvtp mode transparent<br \/>\nudld aggressive<\/p>\n<p>no ip domain-lookup<br \/>\nip cef<br \/>\nno ipv6 cef<br \/>\n!<br \/>\n!<br \/>\n!<br \/>\nvlan 100<br \/>\n!<br \/>\ninterface Port-channel3<br \/>\nswitchport trunk allowed vlan 30,100<br \/>\nswitchport trunk encapsulation dot1q<br \/>\nswitchport mode trunk<br \/>\n!<br \/>\ninterface GigabitEthernet0\/0<br \/>\nswitchport access vlan 100<br \/>\nmedia-type rj45<br \/>\nnegotiation auto<br \/>\n!<br \/>\n!<br \/>\ninterface GigabitEthernet0\/2<br \/>\nswitchport access vlan 100<br \/>\nmedia-type rj45<br \/>\nnegotiation auto<br \/>\n!<br \/>\n!<br \/>\ninterface GigabitEthernet1\/0<br \/>\nswitchport trunk allowed vlan 30,100<br \/>\nswitchport trunk encapsulation dot1q<br \/>\nswitchport mode trunk<br \/>\nmedia-type rj45<br \/>\nnegotiation auto<br \/>\nchannel-group 3 mode on<br \/>\n!<br \/>\ninterface GigabitEthernet1\/1<br \/>\nswitchport trunk allowed vlan 30,100<br \/>\nswitchport trunk encapsulation dot1q<br \/>\nswitchport mode trunk<br \/>\nmedia-type rj45<br \/>\nnegotiation auto<br \/>\nchannel-group 3 mode on<br \/>\n!<br \/>\ninterface Vlan100<br \/>\nip address 192.168.1.253 255.255.255.0<br \/>\n!<br \/>\n!<br \/>\nip route 0.0.0.0 0.0.0.0 192.168.1.254<br \/>\n!<br \/>\nend<\/p>\n<p>&nbsp;<\/p>\n<p>NXOS1 :<\/p>\n<p>switchname N7K1<\/p>\n<p>feature udld<br \/>\nfeature interface-vlan<br \/>\nfeature hsrp<br \/>\nfeature lacp<br \/>\nfeature vpc<br \/>\nfeature lldp<br \/>\nfeature vtp<br \/>\nfeature bfd<\/p>\n<p>vlan 1,10,20,30,40,50,60,100,200,300,400,500,600,700,800<\/p>\n<p>vrf context vpckeepalive<br \/>\ndescription vpc-keep-alive<br \/>\nvpc domain 1<br \/>\npeer-switch<br \/>\nrole priority 2000<br \/>\npeer-keepalive destination 1.1.1.2 source 1.1.1.1 vrf vpckeepalive<br \/>\ndelay restore 120<br \/>\nauto-recovery reload-delay 300<\/p>\n<p>interface Vlan1<\/p>\n<p>interface Vlan100<br \/>\ndescription global net &#8211; HSRP<br \/>\nno shutdown<br \/>\nno ip redirects<br \/>\nip address 192.168.1.251\/24<br \/>\nhsrp 100<br \/>\nip 192.168.1.250<\/p>\n<p>interface port-channel1<br \/>\ndescription *** vPC Peer-Link ***<br \/>\nswitchport mode trunk<br \/>\nswitchport trunk allowed vlan 10-50,100,300,400,500,600,700,800<br \/>\nspanning-tree port type network<br \/>\nvpc peer-link<\/p>\n<p>interface port-channel3<br \/>\nswitchport mode trunk<br \/>\nswitchport trunk allowed vlan 100<br \/>\nvpc 3<\/p>\n<p>interface Ethernet1\/1<br \/>\ndescription VPC-PEER-LINK<br \/>\nswitchport mode trunk<br \/>\nswitchport trunk allowed vlan 10-50,100,300,400,500,600,700,800<br \/>\nchannel-group 1 mode active<br \/>\nno shutdown<\/p>\n<p>interface Ethernet1\/2<br \/>\ndescription VPC-PEER-LINK<br \/>\nswitchport mode trunk<br \/>\nswitchport trunk allowed vlan 10-50,100,300,400,500,600,700,800<br \/>\nchannel-group 1 mode active<br \/>\nno shutdown<\/p>\n<p>interface Ethernet1\/13<br \/>\ndescription [(vPC KeepAlive link between Distribution 5K switches)]<br \/>\nno switchport<br \/>\nvrf member vpckeepalive<br \/>\nip address 1.1.1.1\/30<br \/>\nno shutdown<\/p>\n<p>ip route 0.0.0.0\/0 192.168.1.253<\/p>\n<p>NXOS2 :<\/p>\n<p>switchname N7K2<br \/>\nfeature udld<br \/>\nfeature interface-vlan<br \/>\nfeature hsrp<br \/>\nfeature lacp<br \/>\nfeature vpc<br \/>\nfeature vtp<br \/>\n!<br \/>\nvlan 1,10,20,30,40,50,60,100,200,300,400,500,600,700,800<\/p>\n<p>vrf context management<br \/>\nvrf context vpckeepalive<br \/>\ndescription vpc-keepalive<br \/>\nvpc domain 1<br \/>\npeer-switch<br \/>\nrole priority 2000<br \/>\npeer-keepalive destination 1.1.1.1 source 1.1.1.2 vrf vpckeepalive<br \/>\ndelay restore 120<br \/>\nauto-recovery reload-delay 300<br \/>\n!<br \/>\ninterface Vlan1<br \/>\n!<br \/>\ninterface Vlan100<br \/>\ndescription global net &#8211; HSRP<br \/>\nno shutdown<br \/>\nno ip redirects<br \/>\nip address 192.168.1.252\/24<br \/>\nhsrp 100<br \/>\nip 192.168.1.250<br \/>\n!<br \/>\ninterface port-channel1<br \/>\ndescription *** vPC Peer-Link ***<br \/>\nswitchport mode trunk<br \/>\nswitchport trunk allowed vlan 10-50,100,300,400,500,600,700,800<br \/>\nspanning-tree port type network<br \/>\nvpc peer-link<br \/>\n!<br \/>\ninterface port-channel3<br \/>\nswitchport mode trunk<br \/>\nswitchport trunk allowed vlan 100<br \/>\nvpc 3<br \/>\n!<br \/>\ninterface Ethernet1\/1<br \/>\ndescription VPC-PEER-LINK<br \/>\nswitchport mode trunk<br \/>\nswitchport trunk allowed vlan 10-50,100,300,400,500,600,700,800<br \/>\nchannel-group 1 mode active<br \/>\nno shutdown<br \/>\n!<br \/>\ninterface Ethernet1\/2<br \/>\ndescription VPC-PEER-LINK<br \/>\nswitchport mode trunk<br \/>\nswitchport trunk allowed vlan 10-50,100,300,400,500,600,700,800<br \/>\nchannel-group 1 mode active<br \/>\nno shutdown<br \/>\n!<br \/>\ninterface Ethernet1\/9<br \/>\ndescription INTERNET<br \/>\nswitchport mode trunk<br \/>\nswitchport trunk allowed vlan 100<br \/>\nchannel-group 3<br \/>\nno shutdown<br \/>\n!<br \/>\ninterface Ethernet1\/13<br \/>\ndescription [(vPC KeepAlive link between Distribution 5K switches)]<br \/>\nno switchport<br \/>\nvrf member vpckeepalive<br \/>\nip address 1.1.1.2\/30<br \/>\nno shutdown<br \/>\n!<br \/>\nip route 0.0.0.0\/0 192.168.1.253<\/p>\n<p>&nbsp;<\/p>\n<p>Results :<\/p>\n<p>N7K1# show vpc<br \/>\nLegend:<br \/>\n(*) &#8211; local vPC is down, forwarding via vPC peer-link<\/p>\n<p>vPC domain id : 1<br \/>\nPeer status : peer adjacency formed ok<br \/>\nvPC keep-alive status : peer is alive<br \/>\nConfiguration consistency status : success<br \/>\nPer-vlan consistency status : success<br \/>\nType-2 consistency status : success<br \/>\nvPC role : primary<br \/>\nNumber of vPCs configured : 1<br \/>\nPeer Gateway : Disabled<br \/>\nDual-active excluded VLANs : &#8211;<br \/>\nGraceful Consistency Check : Enabled<br \/>\nAuto-recovery status : Enabled, timer is off.(timeout = 300s)<br \/>\nDelay-restore status : Timer is off.(timeout = 120s)<br \/>\nDelay-restore SVI status : Timer is off.(timeout = 10s)<br \/>\nOperational Layer3 Peer-router : Disabled<\/p>\n<p>vPC Peer-link status<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nid Port Status Active vlans<br \/>\n&#8212; &#8212;- &#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n1 Po1 up 10,20,30,40,50,100,300,400,500,600,700,800<\/p>\n<p>vPC status<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nId Port Status Consistency Reason Active vlans<br \/>\n&#8212; &#8212;&#8212;&#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n3 Po3 up success success 100<\/p>\n<p>Please check &#8220;show vpc consistency-parameters vpc &lt;vpc-num&gt;&#8221; for the<br \/>\nconsistency reason of down vpc and for type-2 consistency reasons for<br \/>\nany vpc.<\/p>\n<p>N7K1# show vpc peer-keepalive<\/p>\n<p>vPC keep-alive status : peer is alive<br \/>\n&#8211;Peer is alive for : (39483) seconds, (505) msec<br \/>\n&#8211;Send status : Success<br \/>\n&#8211;Last send at : 2017.08.20 07:22:05 707 ms<br \/>\n&#8211;Sent on interface : Eth1\/13<br \/>\n&#8211;Receive status : Success<br \/>\n&#8211;Last receive at : 2017.08.20 07:22:05 234 ms<br \/>\n&#8211;Received on interface : Eth1\/13<br \/>\n&#8211;Last update from peer : (0) seconds, (515) msec<\/p>\n<p>vPC Keep-alive parameters<br \/>\n&#8211;Destination : 1.1.1.2<br \/>\n&#8211;Keepalive interval : 1000 msec<br \/>\n&#8211;Keepalive timeout : 5 seconds<br \/>\n&#8211;Keepalive hold timeout : 3 seconds<br \/>\n&#8211;Keepalive vrf : vpckeepalive<br \/>\n&#8211;Keepalive udp port : 3200<br \/>\n&#8211;Keepalive tos : 192<\/p>\n<p>N7K1# show vpc consistency-parameters vpc 3<\/p>\n<p>Legend:<br \/>\nType 1 : vPC will be suspended in case of mismatch<\/p>\n<p>Name Type Local Value Peer Value<br \/>\n&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nSTP Port Type 1 Default Default<br \/>\nSTP Port Guard 1 Default Default<br \/>\nSTP MST Simulate PVST 1 Default Default<br \/>\nmode 1 on on<br \/>\ndelayed-lacp 1 disabled disabled<br \/>\nSpeed 1 1000 Mb\/s 1000 Mb\/s<br \/>\nDuplex 1 full full<br \/>\nPort Mode 1 trunk trunk<br \/>\nNative Vlan 1 1 1<br \/>\nMTU 1 1500 1500<br \/>\nLACP Mode 1 on on<br \/>\nInterface type 1 port-channel port-channel<br \/>\nAdmin port mode 1 trunk trunk<br \/>\nSwitchport Isolated 1 0 0<br \/>\nvPC card type 1 N9K TOR N9K TOR<br \/>\nAllowed VLANs &#8211; 100 100<br \/>\nLocal suspended VLANs &#8211; &#8211; &#8211;<\/p>\n<p>&nbsp;<\/p>\n<p>More labs will be available soon.<\/p>\n<p>Good Luck !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nexus and vPC ( VIRTUAL PORT CHANNEL) understanding. I have been working on Nexus Environment, but could not get chance to document as blog for others can refer, Most of the time due to busy with \u00a0projects and tight \u00a0schedules and learning phase not got enough time to \u00a0make a Lab and share, Now since [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,25,26],"tags":[],"class_list":["post-448","post","type-post","status-publish","format-standard","hentry","category-ccie-sec","category-ccie-dc","category-eve-unl"],"_links":{"self":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=448"}],"version-history":[{"count":2,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/448\/revisions"}],"predecessor-version":[{"id":458,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/448\/revisions\/458"}],"wp:attachment":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}