Configuring the logon banner

About this task

Configure the logon banner to display a warning message to users before authentication.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Configure the switch to use a custom banner or use the default banner:

    banner <custom|static>

  3. Create a custom banner:

    banner WORD<1–80>

Example

Switch:1> enable

Switch:1# configure terminal

Activate the use of the default banner:

Switch:1(config)# banner static

Variable Definitions

The following table defines parameters for the banner command.

Variable

Value

custom|static

Activates or disables use of the default banner.

displaymotd

Enables displaymotd.

motd

Sets the message of the day banner.

WORD<1–80>

Adds lines of text to the CLI logon banner.