Wednesday, 28 December 2016

VPC & Port-Channel 007

VPC & Port-Channel
In DC1
N7K-3 & N7K-4 configure port-channel with Nexus-11 & Nexus-2 as in
diagram, (i am excluding LACP primary on N7K-3,4 , i am excluding this)
Make sure N7K-3 is both operational and role primary.
Downstream port channel must meet the following requirements:
. (LACP i am excluding this)
. Trunk Port
. Allow Vlan 30,40,70 only
. Jumbo Frame
You may assign any domain number per your choice.
Device name      inerface    port-channel
N7K-3              e2/8       10
N7K-3              e2/9       20
N7K-4              e2/6       10
N7K-4              e2/5       20

Topo:




Solution:
N7K-3(config)# feature lacp
Error
N7K-3(config)# fea
feature       feature-set
N7K-3(config)# feature vpc
N7K-3(config)# int mgmt 0
N7K-3(config-if)# ip add 10.4.1.1/24
N7K-3(config-if)# no sh
N7K-3(config-if)# exit
N7K-3(config)# vpc domain 1
N7K-3(config-vpc-domain)# role priority 1
Warning:
N7K-3(config-vpc-domain)# peer-keepalive destination 10.4.1.5 source 10.4.1.1 vrf management
N7K-3(config-vpc-domain)# sy
system-mac        system-priority
N7K-3(config-vpc-domain)# system-priority 1
N7K-3(config-vpc-domain)# int e2/1-4
N7K-3(config-if-range)# channel-group 100 mode on
N7K-3(config-if-range)# no sh
N7K-3(config-if-range)# int p100
N7K-3(config-if)# switchport
N7K-3(config-if)# switchport mode trunk
N7K-3(config-if)# int p100
N7K-3(config-if)# vpc peer-link
Warning:
Ensure that VPC peer-link member ports on both peers use identical VDC types (limit-resource module-type VDC conf
ERROR: Operation failed: [Interface needs to be 10G to act as a peer-link]

N7K-3(config-if)#
N7K-3(config-if)# int e2/8
N7K-3(config-if)# channel-group 10 mode on
N7K-3(config-if)# no sh
N7K-3(config-if)# int p10
N7K-3(config-if)# switchport
N7K-3(config-if)# switchport mode trunk
N7K-3(config-if)# switchport trunk allowed vlan 30,40,70
N7K-3(config-if)# mtu 9216
N7K-3(config-if)# int e2/9
N7K-3(config-if)# channel-group 20 mod on
N7K-3(config-if)# no sh
N7K-3(config-if)# int p20
N7K-3(config-if)# switchport
N7K-3(config-if)# switchport mod tru
N7K-3(config-if)# switchport trunk allowed vlan 30,40,70
N7K-3(config-if)# mtu 9216


on N7K-4 Side:
switch(config)# feature vpc
switch(config)# int mgmt 0
switch(config-if)# ip add 10.4.1.5/24
switch(config-vpc-domain)# peer-keepalive destination 10.4.1.1 source 10.4.1.5 vrf management
switch(config-vpc-domain)# int e2/1-4
switch(config-if-range)# channel-group 100 mod on
switch(config-if-range)# no sh
switch(config-if-range)# int p100
switch(config-if)# switchport
switch(config-if)# switchport mod trun
switch(config-if)# vpc peer-link

N7K-4(config)# int e2/6
N7K-4(config-if)#   channel-group 10 mode on
N7K-4(config-if)#   no shutdown
N7K-4(config-if)# int p10
N7K-4(config-if)# switchport
N7K-4(config-if)#   switchport mode trunk
N7K-4(config-if)#   switchport trunk allowed vlan 30,40,70
N7K-4(config-if)#   mtu 9216

N7K-4(config-if)# int e2/5
N7K-4(config-if)# channel-group 20 mode on
N7K-4(config-if)# no sh
N7K-4(config-if)# int p20
N7K-4(config-if)#  switchport
N7K-4(config-if)#   switchport mode trunk
N7K-4(config-if)#   switchport trunk allowed vlan 30,40,70
N7K-4(config-if)#   mtu 9216
N7K-4(config-if)# no sh

on both switches:
N7K-3(config-if)# int p10
N7K-3(config-if)# vpc 10
N7K-3(config-if)# int p20
N7K-3(config-if)# vpc 20

nx-2(config)# int e2/1
nx-2(config-if)# channel-group 10 mod on
nx-2(config-if)# no sh
nx-2(config-if)# int p10
nx-2(config-if)# switchport
nx-2(config-if)# switchport mode trun
nx-2(config-if)# switchport trunk allowed vlan 30,40,70
nx-2(config-if)# no sh

nx-11(config)# int e2/1
nx-11(config-if)# channel-group 10 mod on
nx-11(config-if)# no sh
nx-11(config-if)# int p10
nx-11(config-if)# switchport
nx-11(config-if)# switchport mode trun
nx-11(config-if)# switchport trunk allowed vlan 30,40,70
nx-11(config-if)# no sh

Verificatoin:
N7K-3# sh port-c summary
N7K-3# sh vpc
Legend:
                (*) - local vPC is down, forwarding via vPC peer-link

vPC domain id                          : 1
Peer status                            : peer link not configured
vPC keep-alive status                  : peer is alive
Configuration consistency status       : Success
Configuration inconsistency reason     : vPC peer-link does not exist
Per-vlan consistency status            : Success
Type-2 consistency status              : Success
Type-2 inconsistency reason            : vPC peer-link Po10
vPC role                               : none established
Number of vPCs configured              : 2
Peer Gateway                           : Disabled
Dual-active excluded VLANs and BDs     : -
Graceful Consistency Check             : Enabled
Auto-recovery status                   : Enabled (timeout = 240 seconds)
Operational Layer3 Peer-router         : Disabled
Self-isolation                         : Disabled

vPC status
Id               : 10
  Port           : Po10
  Status         : up
  Consistency    : Applicable
  Reason         : Consistency Check Performed
  Active Vlans   : -
Id               : 20
  Port           : Po20
  Status         : up
  Consistency    : Applicable
  Reason         : Consistency Check Performed
  Active Vlans   : -

N7K-3# sh vpc role

vPC Role status
----------------------------------------------------
vPC role                            : Primary
vPC system-mac                  : 00:00:00:00:00:00
vPC system-priority             : 1
vPC local system-mac            : fa:16:3e:e4:d1:2b
vPC local role-priority         : 1
N7K-3# sh vpc peer-keepalive

vPC keep-alive status                  : peer is alive
--Peer is alive for             : (1150) seconds, (541) msec
--Send status                   : Success
--Last send at                  : 2016.02.25 04:05:32 720 ms
--Sent on interface             : mgmt0
--Receive status                : Success
--Last receive at               : 2016.02.25 04:05:32 720 ms
--Received on interface         : mgmt0
--Last update from peer         : (0) seconds, (433) msec

vPC Keep-alive parameters
--Destination                   : 10.4.1.5
--Keepalive interval            : 1000 msec
--Keepalive timeout             : 5 seconds
--Keepalive hold timeout        : 3 seconds
--Keepalive vrf                 : management
--Keepalive udp port            : 3200
--Keepalive tos                 : 192


No comments:

Post a Comment