Dell NSeries Switch Basic configuration cheat sheet
In working recently with a few Dell NSeries switches on the bench and in production, I have created a simple cheat sheet for myself with configuration commands I find myself needing most in tweaking and configuring the Dell switches. I will be added to this post as I find new commands which are helpful.
show system id – This will show the service tag of the switch
show interfaces status – shows list of all interfaces and their names
interface range tengigabitethernet all – This command in the config interface commandline will select all ten gig ports.
Setting spanning tree priority:
- show spanning-tree detail
- spanning-tree priority 12288
To switch to PVST input the following commands
console(config)# spanning-tree mode rapid-pvst
For legacy devices that use PVST
console(config)#spanning-tree mode pvst
To remove specific VLANs from PVST and include specific VLANs, input the following commands. This example removes VLAN 10 and adds VLAN 20.
console(config)#no spanning-tree vlan 10
console(config)#spanning-tree vlan 20
Setting root bridge priority
The following command will set priority for root bridge selection. This example sets vlan 20 and 30 as priority 4096 and VLAN 40 through 45 as priority 8192.
console(config)#spanning-tree vlan 40,50 priority 4096
console(config)#spanning-tree vlan 60-70 priority 8192
STP is recommended to be set in portfast configuration when the ports are an “edge” port (port that goes to an end user device such as a computer, printer, phones, etc. A port in Portfast will move directly to forwarding state when the link comes up without waiting for the forward-time delay.
To review PVST, run the following command. X is replaced with the VLAN ID you wish to check.
console#show spanning-tree vlan X
interface range tengigabitethernet all
switchport mode trunk
switchport trunk allowed vlan add 100
voice vlan 100
classofservice dot1p-mapping 5 5
cos-queue min-bandwidth 0 0 5 5 10 30 40
cos-queue strict 5
To remove VLAN: issue no in front of the vlans in vlan database command line
Configuring for Trunk Mode:
switchport mode trunk
switchport trunk allowed vlan add 1-4,98-99
remove – switchport trunk allowed vlan remove 5
Configuring for General Mode:
Configuring for Access Mode:
Console (config)# interface vlan 1
Console (config-if)# ip address 10.1.2.3 255.0.0.0