which is the command to configure a banner to be displayed when connecting to a switch?
The command is:
bash
Switch(config)# banner motd $ Keep out $
This banner motd command configures a Message of the Day banner that is
displayed when someone connects to the Cisco switch.