Switches make use of common IOS commands for configuration, to check for connectivity and to display current switch status. Click buttons 1 to 4 for sample outputs of the commands and the important pieces of information that an administrator can gather from it.
Interface / Port Related:
- show port-security - Displays any ports with security activated. To examine a specific interface, include the interface ID. Information included in the output: the maximum addresses allowed, current count, security violation count, and action to be taken. (Figure 1)
- show port-security address - Displays all secure MAC addresses configured on all switch interfaces. (Figure 2)
- show interfaces - Displays one or all interfaces with line (protocol) status, bandwidth, delay, reliability, encapsulation, duplex, and I/O statistics. (Figure 3)
- show mac-address-table - Displays all MAC addresses that the switch has learned, how those addresses were learned (dynamic/static), the port number, and the VLAN assigned to the port. (Figure 4)
Like the router, the switch also supports the show cdp neighbors command.
The same in-band and out-of-band management techniques that apply to routers also applies to switch configuration.