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.
General Config
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.
Spanning Tree
Setting spanning tree priority:
- show spanning-tree detail
- spanning-tree priority 12288
Enabling PVST
To switch to PVST input the following commands
console>enable
console#config
For rapid-pvst
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
Enabling Portfast
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.
console(config)#interface te1/0/1
console(config-if)#spanning-tree portfast
To review PVST, run the following command.ย Xย is replaced with the VLAN ID you wish to check.
console#show spanning-tree vlan X
VLANS
Voice VLAN:
configure
vlan database
vlan 100
exit
voice vlan
interface range tengigabitethernet all
switchport mode trunk
switchport trunk allowed vlan add 100
voice vlan 100
ClassofService:
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