Ports on the back of the switch:
BLEU (top port)= Console
YELLOW (lower port)= Management
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
install version: cat9k_iosxe.17.15.03.SPA.bin
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
before the use of webui:
create user for login:
switch>enable
switch>#conf t
switch(config)#username xyzxyzxyz privilege 15 algorithm-type scrypt secret xyzxyzxyz
login the webui.
NOTE:
The following example shows how to generate a type 8 (PBKDF2 with SHA-256) or a type 9 (SCRYPT) password:
Device# configure terminal
Device(config)# username demo8 algorithm-type sha256 secret cisco
Device(config)# username demo9 algorithm-type scrypt secret cisco
Device(config)# end
Device# show running-config | inc username
username demo8 secret 8 $8$dsYGNam3K1SIJO$7nv/35M/qr6t.dVc7UY9zrJDWRVqncHub1PE9UlMQFs
username demo9 secret 9 $9$nhEmQVczB7dqsO$X.HsgL6x1il0RxkOSSvyQYwucySCt7qFm4v7pqCxkKM
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Saving Config to flash:
copy running-config startup-config
Or
Write
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
check IP's of the switch:
switch>show ip interface brief
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
enter date and time:
switch>enable
switch# clock set 11:43:00 jul 10 2025
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Configure IP address on the management interface:
CISCO9300L(config)#interface gigabitEthernet0/0
CISCO9300L(config-if)#shutdown
CISCO9300L(config-if)#no shutdown
CISCO9300L(config-if)#exit
CISCO9300L#show interfaces gigabitEthernet0/0
CISCO9300L# configure terminal
CISCO9300L(config)#interface gigabitEthernet0/0
CISCO9300L(config-if)#vrf forwarding Mgmt-vrf
CISCO9300L(config-if)#ip address 10.10.100.150 255.255.255.0
CISCO9300L(config-if)#end
CISCO9300L#
CISCO9300L#show running-config interface GigabitEthernet0/0
Building configuration...
Current configuration : 129 bytes
!
interface GigabitEthernet0/0
vrf forwarding Mgmt-vrf
ip address 10.10.100.150 255.255.255.0
shutdown
negotiation auto
end
set ip address on port 1/0/1
CISCO9300L-48P-4X-A#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
CISCO9300L-48P-4X-A(config)#interface gigabitEthernet1/0/1
CISCO9300L-48P-4X-A(config-if)#no switchport
CISCO9300L-48P-4X-A(config-if)#ip address 10.10.100.250 255.255.255.0
CISCO9300L-48P-4X-A(config-if)#no shutdown
CISCO9300L-48P-4X-A(config-if)#exit
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Set Gigabitethernet 0/1 as an Ethernet access port that carries traffic for VLAN 1 only:
switch# configure terminal
switch(config)# interface Gigabitethernet 0/1
switch(config-if)# switchport mode access
switch(config-if)# switchport access vlan 1
Set Trunk port to carry the different VLAN tags between two devices on the same physical link:
(IEEE 802.1Q).
By default this configuration allows all VLANs to be transmitted over the trunk link:
Switch(config)# interface GigabitEthernet 0/1
Switch(config-if)# switchport trunk encapsulation dot1q
Switch(config-if)# switchport mode trunk
To restrict the link to carry only specified VLANs use the allowed vlan command:
Switch(config)# interface GigabitEthernet 0/1
Switch(config-if)# switchport trunk allowed vlan 1,100
To verify how the trunk port is configured you can issue few show commands:
Switch# show run interface GigabitEthernet 0/1
Switch# show interface trunk
Trunk port for ALL vlans:
CISCO9300L-48P-4X-A(config)#configure terminal
CISCO9300L-48P-4X-A#config terminal
Enter configuration commands, one per line. End with CNTL/Z.
CISCO9300L-48P-4X-A(config)#interface gigabitEthernet1/0/1
CISCO9300L-48P-4X-A(config-if)#switchport mode trunk
CISCO9300L-48P-4X-A(config-if)#
*Dec 7 16:56:29.729: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1, changed state to down
*Dec 7 16:56:32.734: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1, changed state to up
CISCO9300L-48P-4X-A(config-if)#switchport a
Check port interface:
CISCO9300L-48P-4X-A#show interfaces gigabitethernet1/0/1 switchport
OR
CISCO9300L-48P-4X-A#show interfaces gigabitethernet1/0/1 trunk
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
ping test:
CISCO9300L-48P-4X-A#ping 10.10.100.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.100.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
CISCO9300L-48P-4X-A#
CISCO9300L-48P-4X-A#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
CISCO9300L-48P-4X-A#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
set routing to 10.10.100.1:
CISCO9300L-48P-4X-A(config)#ip route 0.0.0.0 0.0.0.0 10.10.100.1
CISCO9300L-48P-4X-A(config)#do ping 10.10.100.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.100.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
CISCO9300L-48P-4X-A(config)#do ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/13/15 ms
CISCO9300L-48P-4X-A(config)#write
CISCO9300L#write memory
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
How to reset a Cisco c9300 switch:
For factory reset on a Cisco IOS (switch / router ):
Switch: SWITCH_IGNORE_STARTUP_CFG=1
Switch:boot
switch>enable
Switch)#: factory-reset all
remove old configs from the switch:
Use Putty to ssh using serial port or via network connection (IP address)
Run command ‘enable’ or ‘en’ if you want to shorten it
Run command ‘wr erase’ to clear old configs (this is optional we did this because we got ours second hand from a refurbisher)
Run ‘reload’ and confirm
Type username/password if it is setup if not there will be no password
CLean all previous install packages:
switch>enable
switch>#request platform software package clean switch all
NOTE: No startup anymore, you have todo a emergency install, and save the config to flash!
emergency install having empty boot flash:
boot usbflash0:/cat9k_lite_iosxe.16.09.04.SPA.bin
(wait for boot)
copy usbflash0:/cat9k_lite_iosxe.16.09.04.SPA.bin flash:
config t
boot system cat9k_lite_iosxe.16.09.04.SPA.bin
switch#(config)exit
switch#reload
switch#(confirm) y
Updating the firmware cisco switch:
copy usbflash0: firmwarename.bin flash:
install add file flash: firmwarename.bin activate commit
OR
via the webui.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Copyright © 2026 Bagmeijer.com All rights reserved