問題 ccna-200-301-topic-1-question-984・第4版

問題

R4のローカル認証で、Telnetだけを許可し、ログイン直後に権限15を与える。enable用の秘密値は平文で入力し、secretのハッシュとして設定へ保存する。特権EXECから実行する設定列はどれか。

  1. A 
    configure terminal
    username test1 privilege 15 password testpass1
    enable secret level 15 0 Test123
    line vty 0 15
     login local
     transport input telnet
    
  2. B 
    configure terminal
    username test1 privilege 15 password testpass1
    enable password level 15 0 Test123
    line vty 0 15
     login local
     transport input all
    
  3. C 
    configure terminal
    username test1 privilege 15 password testpass1
    enable password level 1 7 Test123
    line vty 0 15
     accounting exec default
     transport input all
    
  4. D 
    configure terminal
    username test1 privilege 15 password testpass1
    enable secret level 1 0 Test123
    line vty 0 15
     login authentication
     password Test123
     transport input telnet
    

正解:A

理由

ローカル利用者のprivilege 15とVTYのlogin localを対応させる。transport input telnetは接続方式をTelnetへ限定する。特権パスワードのコマンド部分は次のとおりである。

コマンド名・省略表記 作用・条件
enable secret level 15 0 末尾の0は入力する秘密値が平文であることを示し、保存時にそのまま平文になる指定ではない。

選択肢ごとの説明

A.
configure terminal
username test1 privilege 15 password testpass1
enable secret level 15 0 Test123
line vty 0 15
 login local
 transport input telnet

ローカル認証後の権限15、Telnet限定、enable secretの平文入力とハッシュ保存がすべて指定されている。

B.
configure terminal
username test1 privilege 15 password testpass1
enable password level 15 0 Test123
line vty 0 15
 login local
 transport input all

transport input allはTelnetへ限定しない。enable passwordは指定するsecretによるハッシュ保存でもない。

C.
configure terminal
username test1 privilege 15 password testpass1
enable password level 1 7 Test123
line vty 0 15
 accounting exec default
 transport input all

accountingは利用の記録で、login localによるローカル認証を設定していない。enableもlevel1/Type7指定で、Telnet限定も満たさない。

D.
configure terminal
username test1 privilege 15 password testpass1
enable secret level 1 0 Test123
line vty 0 15
 login authentication
 password Test123
 transport input telnet

enable secretの対象がlevel1であり、level15ではない。login authenticationも使用する認証メソッドリストを欠き、ローカルDBを指定するlogin localになっていない。

参考資料

お問い合わせ

演習する →