mac

Commands for Basic Switch Configuration
35
1.1.2 banner
Command: banner motd <LINE>
no banner motd
Function: This command is used to configure the information displayed when the login
authentication of a telnet or console user is successful, the no command configures that
the information is not displayed when the authentication is successful.
Parameters: <LINE>: The information displayed when the authentication is successful,
length limit from 1 to 100 characters.
Default: Do not show the information when the authentication is successful.
Command mode: Global mode.
Example:
Switch(config)#banner motd Welcome
1.1.3 boot img
Command: boot img <img-file-url> {primary | backup}
Function: Configure the first and second img files used in the next boot of the switch.
Parameters: primary means to configure the first IMG file, backup means to configure
the second IMG file, <img-file-url> is the full path of the booting IMG file, the format of
which is as follows:
1. The file path comprises of three parts: device prefix used as the root directory
(flash:/), sub-directory, and the file name. No space is allowed in each part or between
two parts.
2. The suffix of all file names should be .img.
3. The length of the full file path should not be longer than 128 characters, while the
file name can not be longer than 80 characters.
Command Mode: Admin Mode.
Default: The factory original configuration only specifies the first booting IMG file, it is
nos.img file in the FLASH, without the second booting IMG file.
Usage Guide: The first and second img files can only use .img files stored in switch.
Example: Set flash:/nos.img as the second booting IMG file used in the next booting of
the switch.
Switch#boot img flash:/nos.img backup