what is the command to assign the name “sw-floor-2” to a switch?

what is the command to assign the name “sw-floor-2” to a switch?

2 hours ago 1
Nature

To assign the name "sw-floor-2" to a switch, use the command hostname sw- floor-2 in global configuration mode

. Here's how to do it:

  1. Enter global configuration mode by typing config or configure terminal

. The command prompt will change to indicate that you are in global configuration mode

  1. Enter the command hostname sw-floor-2

. This assigns the name "sw-floor-2" to the switch

  1. Exit global configuration mode by typing exit
  1. To save the configuration, use the command copy running-config startup-config

. This ensures that the switch retains the assigned name after a reboot

Read Entire Article