You can control display of the MOTD and line-activation (EXEC) banners. By default, these banners are displayed on all lines.
To enable or disable the display of such banners, use the following commands in line configuration mode, as needed:
-
no
exec-banner
--Suppresses the display of MOTD and EXEC banners.
-
exec-banner
--Reinstates the display of the EXEC or MOTD banners.
-
no
motd-banner
--Suppresses the display of MOTD banners.
-
motd-banner
--Reinstates the display of the MOTD banners.
These commands determine whether the router will display the EXEC banner and the MOTD banner when an EXEC session is created.
These banners are defined with the
bannermotd and
bannerexec global configuration commands. By default, the MOTD banner and the EXEC banner are enabled on all lines.
Disable the EXEC and MOTD banners using the
noexec-banner command.
The MOTD banners can also be disabled by the
nomotd-banner line configuration command, which disables MOTD banners on a line. If the
noexec-banner command is configured on a line, the MOTD banner will be disabled regardless of whether the
motd-banner command is enabled or disabled. The table below summarizes the effects of the combination of the
exec-banner command and the
motd-banner command.
Table 2. Banners Displayed by exec-banner and motd-banner Command Combinations
|
exec-banner (default)
|
no exec-banner
|
motd-banner (default)
|
MOTD banner
EXEC banner
|
None
|
no motd-banner
|
EXEC banner
|
None
|
For reverse Telnet connections, the EXEC banner is never displayed. Instead, the incoming banner is displayed. The MOTD banner
is displayed by default, but it is disabled if either the
noexec-banner command or
nomotd-banner command is configured. The table below summarizes the effects of the combination of the
exec-banner command and the
motd-banner command for reverse Telnet connections.
Table 3. Banners Displayed Based on exec-banner and motd-banner Command Combinations for Reverse Telnet Sessions to Async Lines
|
exec-banner (default)
|
no exec-banner
|
motd-banner (default)
|
MOTD banner
Incoming banner
|
Incoming banner
|
no motd-banner
|
Incoming banner
|
Incoming banner
|