2020년 5월 27일 수요일

Cisco IOS/Nexus 7000 NX-OS 비교 ( STP 관련 명령어 )

 Cisco IOS/Nexus 7000 NX-OS 비교 - STP 관련 명령어 -

 

 

Cisco IOS CLI Cisco NX-OS CLI
Configuring VLANs
vlan 10,20 vlan 10,20
Configuring Rapid PVST+
spanning-tree mode rapid-pvst Rapid-PVST is enabled by default.


spanning-tree mode rapid-pvst

Configuring the Rapid-PVST+ Bridge Priority
spanning-tree vlan 10 root primary

spanning-tree vlan 20 root secondary

spanning-tree vlan 10 root primary

spanning-tree vlan 20 root secondary

Configuring MST
spanning-tree mode mst spanning-tree mode mst
Configuring a MST Instance
spanning-tree mst configuration

instance 1 vlan 10

instance 2 vlan 20

spanning-tree mst configuration

instance 1 vlan 10

instance 2 vlan 20

Configuring the MST Bridge Priority
spanning-tree mst 1 root primary

spanning-tree mst 2 root secondary

spanning-tree mst 1 root primary

spanning-tree mst 2 root secondary

Configuring STP Port Types Globally
spanning-tree portfast edge default

or

spanning-tree portfast network default

spanning-tree port type edge default

or

spanning-tree port type network default

Configuring STP Port Types per Interface
interface gigabitethernet1/1

switchport

spanning-tree portfast edge

or

spanning-tree portfast network

or

spanning-tree portfast disable

interface ethernet 1/1

switchport

spanning-tree port type edge

or

spanning-tree port type network

or

spanning-tree port type normal

Configuring a Trunk as an Edge Port Type
interface gigabitethernet1/1

switchport

spanning-tree portfast edge trunk

interface ethernet 1/1

switchport

spanning-tree port type edge trunk

Disabling PVST Simulation Globally
no spanning-tree mst simulate pvst global no spanning-tree mst simulate pvst global
Disabling PVST Simulation per Port
interface gigabitethernet1/1

switchport

spanning-tree mst simulate pvst disable

interface ethernet 1/1

switchport

spanning-tree mst simulate pvst disable

 

Cisco NX-OS STP Cisco IOS Software STP Command Description
show spanning-tree show spanning-tree Displays high level process information for all STP enabled VLANs
show spanning-tree active show spanning-tree active Displays all ports in an active state
show spanning-tree blockedports show spanning-tree blockedports Displays all ports in a blocked state
show spanning-tree detail show spanning-tree detail Displays detailed information per STP instance
show spanning-tree inconsistentports show spanning-tree inconsistentports Displays inconsistent port status
show spanning-tree interface <type> show spanning-tree interface <type> Displays detailed STP information for a specific interface (many sub-options)
show spanning-tree mst show spanning-tree mst Displays high-level MST configuration
show spanning-tree mst configuration show spanning-tree mst configuration Displays the MST instance configuration
show spanning-tree mst detail show spanning-tree mst detail Displays detailed MST information
show spanning-tree mst interface show spanning-tree mst interface Displays MST interface information
show spanning-tree pathcost method - Displays STP path cost method
show spanning-tree root show spanning-tree root Displays STP root information
show spanning-tree summary show spanning-tree summary Displays STP summary information
show spanning-tree vlan <#> show spanning-tree vlan <#> Displays per VLAN STP information

 

 

http://docwiki.cisco.com/wiki/Cisco_NX-OS/IOS_STP_Comparison