These commands have been tested on the 6400 and 6850 models but may also work on others.
Reset switch to factory defaults
Delete the boot.cfg file from the working and certified directories and then reload the switch
cd working rm boot.cfg cd .. cd certified rm boot.cfg reload
After it reboots type either of the following commands to verify that you have a new config file.
show configuration snapshot write terminal
The first command will save the primary (working) config and the second will save the secondary (Certified) config.
write memory copy working certified
If you have a stack with 2 or more switches then use the following command to synchronise the config across all slots
copy working certified flash-synchro
Verify the configuration and synchronisation status with the following command.
You should get the results below
Running CMM : PRIMARY,
CMM Mode : MONO CMM,
Current CMM Slot : 1,
Running configuration : WORKING,
Certify/Restore Status : CERTIFIED
Running Configuration : SYNCHRONIZED,
Change system name and session prompt
Replace ‘Switch1’ with your own name
system name Switch1 session prompt default "Switch1>"
Set system location and contact info.
system location "Local Data Center" system contact "firstname.lastname@example.org"
Check the information has been changed with the following command:
Specify Domain name, NTP and DNS servers
ip name-server 192.168.0.1 ip domain-name ad.domain.com ntp server 192.168.0.1 ntp client enable
System and hardware information
show stack topology
show health all cpu
show health all memory
Create new VLAN with description. I’ll be using VLAN 10 for this example.
vlan 10 name "Guest"
Remove VLAN with:
no vlan 10
Assign switch ports 1 through 24 on slot 1 to VLAN 10 using the following command:
vlan 10 port default 1/1-24
for 802.1q (tagged) port use the following command:
vlan 10 802.1q 1/1
You can remove the VLAN port members with the following command:
no vlan 10 port default 1/1-24 no vlan 10 802.1q 1/1
To verify the VLAN 10 configuration, use:
show vlan 10
To verify that ports 1/1-24 were assigned to VLAN 10 use:
show vlan 10 port
Show status of all ports:
show interfaces status
Show information about all ports:
show interfaces port
To show information about a specific port only (slot/port):
show interfaces 1/5
Make changes to an interface with the following commands. I’ll be using slot 1 and port 5 in my examples.
Disable auto negotiate (enable or disable):
interfaces 1/5 autoneg disable
Change duplex (full or half):
interfaces 1/5 duplex full
Change interface speed (10,100,1000):
interfaces 1/5 speed 100
Disable or enable a port (up or down):
interfaces 1/5 admin down
Label the ports with:
interfaces 1/5 alias "Specify name here"
Create a management interface
ip interface "mgnt_IP" address 192.168.0.10 mask 255.255.255.0 vlan 3
show ip interface
Remove interface with
no ip interface "mgnt_IP"
Run the following command to create a LACP group for ports 19,20,21 and 22. In this example i’ll be using 2 as the ID, 4 as the size and 5 as the key
lacp linkagg 2 size 4 admin state enable lacp linkagg 2 actor admin key 5 lacp agg 1/19 actor admin key 5 lacp agg 1/20 actor admin key 5 lacp agg 1/21 actor admin key 5 lacp agg 1/22 actor admin key 5
Now set the VLAN for the LACP group:
vlan 3 port default 2
Start or stop POE on slot 1 (Change slot number accordingly):
lanpower start 1 lanpower stop 1
Start or stop POE on a port (slot/port):
lanpower start 1/5 lanpower stop 1/5
The following services are available:
ftp, ssh, telnet, http, secure-http, udp-relay, snmp, all
Enable a service:
ip service ssh
Disable a service:
no ip service ssh