Basic switch configuration includes the hostname for identification, passwords for security, and assignment of IP addresses for connectivity. In-band access requires the switch to have an IP address. Figure 1 shows the commands entered to enable a switch.
Figure 2 shows the results of the configuration commands that were entered in Figure 1. Verify and save the switch configuration using the copy running-config startup-config command. To clear the switch configuration, use the erase startup-config command and then the reload command. It may also be necessary to erase any VLAN information using the command delete flash:vlan.dat. When switch configurations are in place, view the configurations using the show running-config command.