In computer programming languages, a switch statement is a type of selection control mechanism
used to allow the value of a variable or expression to change the control flow of program execution via
search and map. SPOTO focus on IT certification training for 16 years. We offer Cisco, CISSP,
Redhat Linux and AWS certification exam products to help candidates to get the certification
easily. Join Now.
1. Set the hostname/system name on the IOS-based switch:
Switch(config)# hostname hostname
Set the hostname/system name on the CLI-based switch:
Switch(enable) set system name name-string
2. Set the login password on the IOS-based switch:
Switch(config)# enable password level 1 password
Set the login password on the CLI-based switch:
Switch(enable) set password
Switch(enable) set enalbepass
3. Set up remote access on IOS-based switches:
Switch(config)# interface VLAN 1
Switch(config-if)# IP address IP-address netmask
Switch(config-if)# IP default-gateway IP-address
Set up remote access on a CLI-based switch:
Switch(enable) set interface sc0 IP-address netmask broadcast-address
Switch(enable) set interface sc0 vlan
Switch(enable) set IP route default gateway
4. Enable and browse CDP information on IOS-based switches:
Switch(config-if)# CDP enable
Switch(config-if)# no cdp enable
In order to view the CDP notification information of Cisco neighboring devices:
Switch# show cdp interface [type model/port]
Switch# show CDP neighbors [type module/port] [detail]
Enable and browse CDP information on a CLI-based switch:
Switch(enable) set CDP {enable|disable} module/port
In order to view the CDP notification information of Cisco neighboring devices:
Switch(enable) show CDP neighbors[module/port] [vlan|duplex|capabilities|detail]