Switch#delete
This file will be erased. Are you sure? (y/n) y
Switch#reboot
Do you want to reboot the Switch? (y/n) y
############################################################
Use a console cable to connect to a switch and log in to the Monitor mode (Reboot the switch and then press “ctrl+P”.).
Go to “more startup-config” to recover the username and password.
If the switch config is “service password-encryption”, it will not show in “more startup-config”.
We can use “delete startup-config” to remove the configuration from the switch.
Switch#config
Switch_config#aaa authentication login default local
Switch_config#aaa authentication enable default none
Switch_config#aaa authorization exec default local
Switch_config#username admin password admin
Switch_config#ip sshd enable
Switch#config
Switch_config#line ?
console -- Primary terminal line
vty -- Virtual terminal
Switch_config#line console 0
Switch_config_line#exec-timeout ?
<0-86400>
Switch_config_line#exec-timeout
NB: 0 (zero) means no time out
Switch_config#backup-link-group 1
Switch_config#interface GigaEthernet 0/5
Switch_config_g0/5#backup-link-group 1 active
Switch_config_g0/5#exit
Switch_config#interface GigaEthernet 0/6
Switch_config_g0/6#backup-link-group 1 backup
NB: If the active link fails then the traffic will be pass through Backup link automatically
Switch_config#snmp-server community 0 <PLANET> RW
Switch_config#snmp-server host <17en2.16.2.30> <PLANET> authentication configure snmp
NB: "PLANET" is the community name and the IP 172.16.2.30 is your PC IP.
Switch#
Switch#config
Switch_config#interface gigaEthernet 0/2
Switch_config_g0/2#switchport mode trunk
Switch_config_g0/2#switchport trunk vlan-allowed 999,500,510
Switch_config_g0/2#switchport pvid 999
Switch_config_g0/2#exit
Switch_config#show interface GigaEthernet0/2
interface GigaEthernet0/2
switchport trunk vlan-allowed 500,510,999
switchport mode trunk
switchport pvid 999 [Here Native VLAN is 999]
Switch#config
Switch_config#interface gigaEthernet 0/1
Switch_config_g0/1#storm-control ?
broadcast -- Broadcast address storm control
multicast -- Multicast address storm control
unicast -- Unknown-Unicast address storm control
Switch_config#interface gigaEthernet 0/1
Switch_config_g0/1storm-control broadcast threshold 100
Switch_config_g0/1 storm-control multicast threshold 100
Switch_config_g0/1storm-control unicast threshold 100
Switch#config
Switch_config#ip dhcp-relay snooping
Switch_config#ip dhcp-relay snooping vlan 1
Switch_config#ip arp inspection vlan 1
Switch_config#ip verify source vlan 1
To trust the DHCP server
Switch#config
Switch_config#interface gigaEthernet 0/1 [The trusted server is connected from gig 0/1.]
Switch_config_g0/1#dhcp snooping trust
Switch_config_g0/1#arp inspection trust
Switch_config_g0/1#ip-source trust
Switch_config_g0/1#
Switch_config_g0/1#switchport rate-limit ?
<1-15625> -- Configure Max Bandwidth (unit:64kbps)
bandwidth -- Configure Bandwidth (unit:1% of physical bandwidth)
Switch_config_g0/1#switchport rate-limit 2000 ingress
(1) How to check all Ports in the PoE status
WEST-110#show poe all
Port Enable Status Pair Priority
g0/1 enabled disabled signal low
g0/2 enabled searching signal low
g0/3 enabled searching signal low
g0/4 enabled searching signal low
g0/5 enabled searching signal low
g0/6 enabled searching signal low
g0/7 enabled disabled signal low
g0/8 enabled searching signal low
g0/9 enabled searching signal low
(2) How to check PoE power status
WEST-110#show poe power
Port Current Max Average Peak Bottom
g0/1 0 mW 30000 mW Unavailable Unavailable Unavailable
g0/2 0 mW 30000 mW Unavailable Unavailable Unavailable
g0/3 0 mW 30000 mW Unavailable Unavailable Unavailable
g0/4 6000 mW 30000 mW Unavailable Unavailable Unavailable
(3) How to check PoE system status
Switch#show poe system
SLOT:0
POE DRIVER:PETH PD6XXXX DRV
POE CHIP:PDXXXXX
POE CHIP Version:0x0
POE POWER CHIP Version: 0x81
POE Port Num:48
PSE Total Power:350000 mW
PSE Usage Threshold:1%
PSE Alarm Power:3500 mW
PSE Consumed Power:4000 mW
PSE Mib Notification: Enable
PSE Temperature: 49 degrees
(4) How to disable the PoE in PoE port
Switch_config_g0/1#poe disable
Switch#config
Switch_config_g0/1#keepalive
Switch_config#aaa authentication login default group tacacs+ local
Switch_config#aaa authentication enable default none
Switch_config#aaa authorization commands 15 default group tacacs+
Switch_config#aaa authorization commands 0 default group tacacs+
Switch_config#aaa authorization exec default group tacacs+ local
Switch_config#aaa accounting commands 15 default start-stop group tacacs+
Switch_config#aaa accounting commands 0 default start-stop group tacacs+
Switch_config#aaa accounting network default start-stop group tacacs+
Switch_config#tacacs-server host 172.25.102.61
Switch_config#tacacs-server key abc123xyz
Switch#config
Switch_config#mirror session 1 destination interface g0/1
Switch_config#mirror session 1 source interface g0/2 both
NB: The source port is the testing port, and the destination port is the packet capture port (where the laptop is connected with Wireshark).
A: When tg1/3/1 to tg1/3/2 are set as stack interfaces, they can no longer be used and thus do not appear in the configuration.
Switching back to standalone mode will restore their visibility.
A: No, that is not necessary. After upgrading the master switch,
you can directly synchronize the version to the standby device using the update command on the master device.
The command is: update switch.
A: The switch gets stuck at "please wait for loading startup-config to be finished" because it is continuously negotiating the stack.
This issue occurs if the stack cables are not connected or not linked up after configuring the stack.
The switch attempts to negotiate for about 10 minutes by default. Once the cables are properly connected,
the negotiation typically completes within 2-3 minutes.
A: This message indicates that the PoE initialization has failed. The device requires RMA processing.