コンフィグレーションガイド Vol.1


8.1.9 ログインバナーの設定

コンフィグレーションコマンドbannerでログインバナーを設定すると,consoleから,またはリモート運用端末のtelnetやftpクライアントなどから本装置に接続したとき,ログインする前やログインしたあとにメッセージを表示できます。

[設定のポイント]

リモート運用端末のtelnetやftpクライアントからネットワークを経由して本装置のtelnetやftpサーバへ接続するとき,ログインする前に次のメッセージを表示させます。

###################################################
Only Administrators can connect.
The Administrator's phone number is xxx-xxxx-xxxx.
###################################################

[コマンドによる設定]

  1. (config)# banner login plain-text

    --- Press CTRL+D or only '.' line to end ---

    ###################################################

    Only Administrators can connect.

    The Administrator's phone number is xxx-xxxx-xxxx.

    ###################################################

    .

    ログイン前メッセージのスクリーンイメージを入力します。

    入力が終わったら,ピリオド(.)だけの行(または[Ctrl]+[D]キー)を入力します。

  2. (config)# show banner

    banner login encode "IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjCk9ubHkgQWRtaW5pc3RyYXRvcnMgY2FuIGNvbm5lY3QuClRoZSBBZG1pbmlzdHJhdG9yJ3MgcGhvbmUgbnVtYmVyIGlzIHh4eC14eHh4LXh4eHguCiMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIwo="

    入力されたメッセージは自動的にエンコードされて設定されます。

  3. (config)# show banner login plain-text

    ###################################################

    Only Administrators can connect.

    The Administrator's phone number is xxx-xxxx-xxxx.

    ###################################################

    (config)#

    showの際にplain- textパラメータを指定すると,テキスト形式で確認できます。

設定が完了したら,リモート運用端末のtelnetまたはftpクライアントから本装置へ接続します。接続後,クライアントにメッセージが表示されます。

図8‒11 リモート運用端末から本装置へ接続した例(telnetで接続した場合)
> telnet 10.10.10.10
Trying 10.10.10.10...
Connected to 10.10.10.10.
Escape character is '^]'.
 
###################################################
Only Administrators can connect.
The Administrator's phone number is xxx-xxxx-xxxx.
###################################################
login:
図8‒12 リモート運用端末から本装置へ接続した例(ftpで接続した場合)
> ftp 10.10.10.10
Connected to 10.10.10.10.
220-
###################################################
Only Administrators can connect.
The Administrator's phone number is xxx-xxxx-xxxx.
###################################################
220 10.10.10.10 FTP server ready.
Name (10.10.10.10:staff):