VPC configuration of Nexus
Enable udld and lacp
NX_SW01(config)#feature udld
NX_SW01(config)#feature lacp
NX_SW01(config)#feature lacp
NX_SW01(config)# inter ethernet 1/3,
ethernet 2/3    select ports
NX_SW01 (config-if-range)#
description VPC Peer Link   vpc peer link
NX_SW01 (config-if-range)# switchport
NX_SW01 (config-if-range)# switchport mode trunk
NX_SW01 (config-if-range)# spanning-tree port type network
NX_SW01 (config-if-range)# rate-mode dedicated
NX_SW01 (config-if-range)# udld aggressive
NX_SW01 (config-if-range)# channel-group 1 mode active
NX_SW01 (config-if-range)# no shut
NX_SW01 (config-if-range)# switchport
NX_SW01 (config-if-range)# switchport mode trunk
NX_SW01 (config-if-range)# spanning-tree port type network
NX_SW01 (config-if-range)# rate-mode dedicated
NX_SW01 (config-if-range)# udld aggressive
NX_SW01 (config-if-range)# channel-group 1 mode active
NX_SW01 (config-if-range)# no shut
NX_SW01 (config-if-range)#exit
Secondary Switch 
NX_SW02(config)#feature udld
NX_SW02(config)#feature lacp
NX_SW02(config)#feature lacp
Set up vpc peer link
NX_SW02(config)# inter ethernet 1/3,
ethernet 2/3    select ports
NX_SW02 (config-if-range)#
description VPC Peer Link   vpc peer link
NX_SW02 (config-if-range)# switchport
NX_SW02 (config-if-range)# switchport mode trunk
NX_SW02 (config-if-range)# spanning-tree port type network
NX_SW02 (config-if-range)# rate-mode dedicated
NX_SW02 (config-if-range)# udld aggressive
NX_SW02 (config-if-range)# channel-group 1 mode active
NX_SW02 (config-if-range)# no shut
NX_SW02 (config-if-range)# switchport
NX_SW02 (config-if-range)# switchport mode trunk
NX_SW02 (config-if-range)# spanning-tree port type network
NX_SW02 (config-if-range)# rate-mode dedicated
NX_SW02 (config-if-range)# udld aggressive
NX_SW02 (config-if-range)# channel-group 1 mode active
NX_SW02 (config-if-range)# no shut
NX_SW02(config-if-range)#exit
Primary SW01 as primary of even
vlans
NX_SW01 (config)# spanning-tree
vlan  200,202,204,206,208,210 root
primary 
NX-SW01 (config)# spanning-tree vlan
201,203,205,207,209,211 root secondary
SW02 as Primary for odd VLAN
NX-SW02 (config)# spanning-tree vlan
201,203,205,207,209,211 root primary
NX_SW02 (config)# spanning-tree
vlan  200,202,204,206,208,210 root
secondary
Primary switch
vpc domain 1
  peer-switch
  role priority 1024
  system-priority 4096
  >>>> same in both primary
and secondary switches
  peer-keepalive destination
10.10.10.2 source 10.10.10.1
delay restore 45
  peer-gateway
  auto-recovery
  ip arp synchronize
Secondary Switch
vpc domain 1
 
peer-switch
 
role priority 2048  >>higher
number
 
system-priority 4096 >>>> same in both primary and
secondary switches
 
peer-keepalive destination 10.10.10.1 source 10.10.10.1
 
delay restore 45
 
peer-gateway
 
auto-recovery
 
ip arp synchronize
Check the vpc status
Sh vpc br
Sh vpc peer-keepalive
Create port channel for peer link
Primary Sw01
Int po 1
Switchport
Switchport mode trunk
spanning-tree port type network
 
vpc peer-link
Secondary Sw02
Int po 1
Switchport
Switchport mode trunk
spanning-tree port type network
 
vpc peer-link
It is a good idea keep vpc peer link
in different vrf
Create new vrf
NX_SW01 (config)# vrf context
VPC_KEEPALIVE
NX_SW01 (config)# interface ethernet
1/3, ethernet 2/3
NX_SW01 (config-if-range)# channel-group 1 mode active
NX_SW01 (config-if-range)# udld enable
NX_SW01 (config-if-range)# description VPC Peer-keepalive link
NX_SW01 (config-if-range)# no shut
NX_SW01 (config-if-range)# channel-group 1 mode active
NX_SW01 (config-if-range)# udld enable
NX_SW01 (config-if-range)# description VPC Peer-keepalive link
NX_SW01 (config-if-range)# no shut
Nx_sw02
NX_SW02 (config)# vrf context
VPC_KEEPALIVE
NX_SW02 (config)# interface ethernet
1/3, ethernet 2/3
NX_SW02 (config-if-range)# channel-group 1 mode active
NX_SW02 (config-if-range)# udld enable
NX_SW02 (config-if-range)# description VPC Peer-keepalive link
NX_SW02 (config-if-range)# no shut
NX_SW02 (config-if-range)# channel-group 1 mode active
NX_SW02 (config-if-range)# udld enable
NX_SW02 (config-if-range)# description VPC Peer-keepalive link
NX_SW02 (config-if-range)# no shut
NX_SW01 (config-if-range)# inter
port 1
NX_SW01 (config-if)# vrf member VPC_KEEPALIVE
NX_SW01 (config-if)# ip address 10.10.10.1/30
NX_SW01 (config-if)# no shut
NX_SW01 (config-if)# vrf member VPC_KEEPALIVE
NX_SW01 (config-if)# ip address 10.10.10.1/30
NX_SW01 (config-if)# no shut
Nexus2 (config-if-range)# inter port
1
Nexus2 (config-if)# vrf member VPC_KEEPALIVE
Nexus2 (config-if)# ip address 10.10.10.2/30
Nexus2 (config-if)# no shut
Nexus2 (config-if)# vrf member VPC_KEEPALIVE
Nexus2 (config-if)# ip address 10.10.10.2/30
Nexus2 (config-if)# no shut
Vlan conf
Vlan 20
  no ip redirects
  ip address
x.x.x.x/24
  no ipv6 redirects
  hsrp version 2
  hsrp 0 
        preempt delay minimum 90 reload 120 
    priority 120
    timers msec 300
msec 900
    ip x.x.x.1
int po 20
switchport
switchport mode trunk
vpc 20
switchport mode trunk
vpc 20
Trunk to another switch
interface
port-channel19
  switchport
  switchport mode trunk
  vpc 19
interface Ethernet1/5
 
switchport
 
switchport mode trunk
 
channel-group 19 mode active
 
no shutdown
Trunk to Host Server like UCS
interface Ethernet1/8
  switchport mode trunk
  channel-group 31 mode active
interface port-channel31
    switchport mode trunk
  vpc 31
Access Port
interface port-channel 32
  vpc 32
  switchport access
vlan 205
  spanning-tree port
type edge
interface Ethernet1/32
  switchport access
vlan 205
  channel-group 32
mode active
Secondary switch
interface port-channel32
  vpc 32
  switchport access
vlan 205
  spanning-tree port
type edge
interface Ethernet1/32
  switchport access
vlan 205
  channel-group 32
mode active
 
 
No comments:
Post a Comment