which is the command to configure a banner to be displayed when connecting to a switch?

2 weeks ago 4
Nature

The command to configure a banner that is displayed when connecting to a switch is typically: For Cisco devices:

banner motd $ Your banner message here $

This configures the Message of the Day (MOTD) banner that appears before the login prompt on a switch. The $ acts as a delimiter for the start and end of the banner message, but any single character can be used as a delimiter. For other switches, such as those running ExtremeXOS, the command may be:

configure banner before-login save-to-configuration

This command sets a login banner that appears before login, and you type in the banner text after running the command. Summary of typical Cisco syntax:

  • Enter global configuration mode: configure terminal
  • Set the banner: banner motd <delimiter> Your message <delimiter>
  • Exit and save configuration if desired.

For example:

Switch(config)# banner motd $Keep out! Unauthorized access prohibited.$

This banner will be displayed when connecting to the switch before login. If using Dell EMC OS10 switches or others, a similar approach with banner login or banner motd is used. References:

  • Cisco banner motd command usage
  • Extreme Networks configure banner syntax
  • Dell OS10 banner example