Ad space (banner)
📡Networking Lessons
Lesson 27 / 39

Setting a Login Message with banner motd

When you want a notice or warning shown at login, use banner motd. Short for Message Of The Day, it sets the message displayed whenever someone logs into the device.

The syntax is banner motd delimiter message delimiter — the message is wrapped between a pair of special delimiter characters such as ^C.

Running banner motd ^C Authorized access only. ^C makes the warning "Authorized access only." appear at every subsequent login to the device.

A common stumble is including the delimiter character inside the message itself, which cuts the message off early. Choose a delimiter unlikely to appear in the text.

In real work, this legal warning against unauthorized access is all but mandatory under corporate security policy.

Networking
Try it (type this into the pseudo terminal)
banner motd ^C Authorized access only. ^C

🧑‍💻 You can type this command into the Networking pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)