c. Enter global configuration mode and assign the switch hostname.
Switch# configure terminal
Switch(config)# hostname S1
S1(config)#
d. Configure the switch password access.
S1(config)# enable secret class
S1(config)#
e. Prevent unwanted Domain Name System (DNS) lookups.
S1(config)# no ip domain-lookup
S1(config)#
f. Configure a login message-of-the-day (MOTD) banner.
S1(config)# banner motd #
Enter Text message. End with the character ‘#’.
Unauthorized access is strictly prohibited. #