Implementing Rapid PVST Traffic Engineering for Cisco Nexus Switches
NX-OS defaults to running Rapid Per-VLAN Spanning-Tree Protocol. This means that each VLAN is created will create a separate instance STP, each running the 802.1w RSTP protocol. The default behavior of STP for NX-OS is almost identical to Catalyst IOS.
Platform: https://racks.uninets.com
Lab Name: Nexus 9k NXOSv
Access full Cisco Nexus lab guide here: https://bit.ly/2ZgF36G
Task
Use command “write erase” to erase the previous configuration of switches NXOS01-NXOS02, NXOS03, and NXOS04 and reload both switches. If necessary, use provisioning documents
All links between NXOS01 and NXOS02, NXOS03 and NXOS04 should be configured as 802.1Q trunk ports.
Configure the links between NXOS03 & NXOS04 to be a port channel.
Create VLANs 10 & 20 on all switches and assign them as following:Win Server’slink should be in VLAN 10, and NXOS03 should use VLAN 10.0.0.1/24.
Win Server’slink should be in VLAN 20, and use the IP address 20.0.0.1/24.
SW’s link with NXOS03 should be in VLAN 20. Use the IP address 20.0.0.2/24.
SW’s link with NXOS04 should be in VLAN 10 using the IP address 10.0.0.2/24.
Configure Spanning Tree Protocol between switches as follows: All switches should use 32 bits to calculate spanning-tree port cost costs.
NXOS01 should serve as the STP Root Bridge to VLAN 10, with NXOS02 serving as the backup Root Bridge.
NXOS04 should be the STP Root Bridge to VLAN 20, with NXOS03 as the backup Root Bridge.
Win Server’sVLAN 10 traffic should be directed to SW by NXOS03 ->NXOS02 ->NXOS01 ->NXOS04 ->SW.
The path for SW’s VLAN 20 traffic from Win Server to NXOS03 ->NXOS01/->NXOS02/->NXOS04 should be followed.
Save your configuration by using the command “copy Run Start”
Configuration
NXOS03:
NXOS03:!
vlan 10,20!spanning-tree pathcost method long!spanning-tree vlan 20 priority 8192!interface Ethernet1/1-2switchportswitchport mode trunkchannel-group 1no shutdown!interface port-channel1switchport mode trunkspanning-tree vlan 10,20 cost 99999!interface Ethernet1/3-4switchportswitchport mode trunkspanning-tree vlan 10 cost 99999no shutdown!interface Ethernet1/5-6switchportswitchport mode trunkspanning-tree vlan 20 cost 99999no shutdown!interface Ethernet1/7switchportswitchport access vlan 10no shutdown!interface Ethernet1/8switchportswitchport access vlan 20no shutdown! NXOS04:
NXOS04:!vlan 10,20!spanning-tree pathcost method long!spanning-tree vlan 20 priority 4096!interface Ethernet1/1-2switchportswitchport mode trunkchannel-group 1no shutdown!interface port-channel1switchport mode trunk!interface Ethernet1/3-6switchportswitchport mode trunkno shutdown!interface Ethernet1/7switchportswitchport access vlan 20no shutdown!interface Ethernet1/8switchportswitchport access vlan 10no shutdownNXOS01:
NXOS01:!vlan 10,20!spanning-tree pathcost method long!spanning-tree vlan 10 priority 4096!interface Ethernet1/1-2switchportswitchport mode trunkno shutdown!interface Ethernet1/3-4switchportswitchport mode trunkspanning-tree vlan 10 cost 99999no shutdown!interface Ethernet1/5-6switchportswitchport mode trunkspanning-tree vlan 20 cost 99999no shutdown!
NXOS02:
NXOS02:!vlan 10,20!spanning-tree pathcost method long!spanning-tree vlan 10 priority 8192!interface Ethernet1/1-6switchportswitchport mode trunkno shutdown!
SW:
SW:!hostname SW!Interface Eth0/0no switchportip address 20.0.0.2 255.255.255.0no shutdown!Interface Eth0/1no switchportip address 10.0.0.2 255.255.255.0no shutdown!
Verification
WinServer can assign IP addresses to both its interfaces
Note the Mac addresses of both interfaces on WinServer interfaces. In yellow
Pay attention to the Mac addresses in SW interfaces
SW#show interfaces eth0/0SW#show interfaces eth0/0Ethernet0/0 is up, line protocol is up (connected)Hardware is Ethernet, address is aabb.cc00.6000 (bia aabb.cc00.6000)Internet add