Wednesday 28 December 2016

Spanning-tree HSRP & VRRP 005

Topo:




Implement of Spanning Tree Protocol:
in DC1 make N7K3 as root of all Vlans without changing the VLAN Priority.
enable bridge assurance on the trunk port between N7K3 & N7K4
!
implement HSRP on NXOS
!
Between N7K3 and N7K4 enable HSRP.
Configure N7K3 , ensure it becomes HSRP active router immediately after configuration
is complete.
Address assignment are below:
Device       interface     group     VIP
N7K3          vlan30        0      10.1.30.126
N7K3          vlan40        0      10.1.40.254
N7K4          vlan30        0      10.1.30.126
N7K4          vlan40        0      10.1.40.254

On DC2
Enable VRRP between N7K3 & N7K4 , configure N7K3 so that it becomes VRRP
master immediately after configuration is complete
!
Device       interface     group     VIP
N7K3          vlan30        2      10.1.31.126
N7K3          vlan40        2      10.1.41.254
N7K4          vlan30        2      10.1.31.126
N7K4          vlan40        2      10.1.41.254
!

Solution:

nx-osv-3(config)# spanning-tree vlan 1-3967 root primary
nx-osv-3(config)# int port-channel 100
nx-osv-3(config-if)# sp
spanning-tree   speed
nx-osv-3(config-if)# spanning-tree po
port            port-priority
nx-osv-3(config-if)# spanning-tree port type network
nx-osv-3(config-if)# 2016 Feb 20 10:22:18 nx-osv-3 %STP-2-BRIDGE_ASSURANCE_BLOCK: Bridge Assurance blocking port port-channel100 VLAN0001.
2016 Feb 20 10:22:18 nx-osv-3 %STP-2-BRIDGE_ASSURANCE_BLOCK: Bridge Assurance blocking port port-channel100 VLAN0030.
2016 Feb 20 10:22:18 nx-osv-3 %STP-2-BRIDGE_ASSURANCE_BLOCK: Bridge Assurance blocking port port-channel100 VLAN0040.
2016 Feb 20 10:22:18 nx-osv-3 %STP-2-BRIDGE_ASSURANCE_BLOCK: Bridge Assurance blocking port port-channel100 VLAN0070.
!
nx-osv-4(config-if)# spanning-tree port type network
nx-osv-4(config-if)# 2016 Feb 20 10:22:30 nx-osv-4 %STP-2-BRIDGE_ASSURANCE_BLOCK: Bridge Assurance blocking port port-channel100 VLAN0001.
2016 Feb 20 10:22:30 nx-osv-4 %STP-2-BRIDGE_ASSURANCE_BLOCK: Bridge Assurance blocking port port-channel100 VLAN0030.
2016 Feb 20 10:22:30 nx-osv-4 %STP-2-BRIDGE_ASSURANCE_BLOCK: Bridge Assurance blocking port port-channel100 VLAN0040.
2016 Feb 20 10:22:30 nx-osv-4 %STP-2-BRIDGE_ASSURANCE_BLOCK: Bridge Assurance blocking port port-channel100 VLAN0070.
!
nx-osv-3(config-if)# sh run hsrp

!Command: show running-config hsrp
!Time: Sat Feb 20 10:50:42 2016

version 7.2(0)D1(1)
feature hsrp


interface Vlan30
  hsrp 0
    preempt
    priority 255
    ip 10.1.30.126

interface Vlan40
  hsrp 0
    preempt
    priority 255
    ip 10.1.40.254

nx-osv-4(config)# copy run start
[########################################] 100%
Copy complete.
nx-osv-4(config)# sh run hsrp

!Command: show running-config hsrp
!Time: Sat Feb 20 10:51:00 2016

version 7.2(0)D1(1)
feature hsrp


interface Vlan30
  hsrp 0
    preempt
    ip 10.1.30.126

interface Vlan40
  hsrp 0
    preempt
    ip 10.1.40.254


!!
ersion 7.2(0)D1(1)
feature vrrp


interface Vlan31
  vrrp 2
    priority 254
    address 10.1.31.126
    no shutdown
    exit

interface Vlan41
  vrrp 2
    priority 254
    address 10.1.41.254
    no shutdown
    exit
!
nx-osv-8# sh run vrrp

!Command: show running-config vrrp
!Time: Sat Feb 20 10:55:23 2016

version 7.2(0)D1(1)
feature vrrp


interface Vlan31
  vrrp 2
    address 10.1.31.126
    no shutdown
    exit

interface Vlan41
  vrrp 2
    address 10.1.41.254
    no shutdown
    exit
!

No comments:

Post a Comment