問題 ccna-200-301-topic-1-question-999・第5版

問題

10.139.58.0/28からルーターの10.122.49.1へSSH接続する。ドメイン名、鍵、SSH認証と経路は設定済みで、通信はFastEthernet0/0へ入る。このSSH要求を許可する設定はどれか。

  1. A 
    configure terminal
    interface FastEthernet0/0
    ip address 10.122.49.1 255.255.255.252
    ip access-group 110 in
    exit
    ip access-list extended 110
    permit tcp 10.139.58.0 0.0.0.15 host 10.122.49.1 eq 22
    
  2. B 
    configure terminal
    interface FastEthernet0/0
    ip address 10.122.49.1 255.255.255.240
    access-group 120 in
    exit
    ip access-list extended 120
    permit tcp 10.139.58.0 255.255.255.248 any eq 22
    
  3. C 
    configure terminal
    interface FastEthernet0/0
    ip address 10.122.49.1 255.255.255.252
    ip access-group 105 in
    exit
    ip access-list standard 105
    permit tcp 10.139.58.0 0.0.0.7 eq 22 host 10.122.49.1
    
  4. D 
    configure terminal
    interface FastEthernet0/0
    ip address 10.122.49.1 255.255.255.248
    ip access-group 10 in
    exit
    ip access-list standard 10
    permit udp 10.139.58.0 0.0.0.7 host 10.122.49.1 eq 22
    

正解:A

理由

SSHはTCP 22で、10.139.58.0/28の送信元を照合するワイルドカードは0.0.0.15になる。拡張ACLなら送信元、宛先ホスト、プロトコルとポートを指定できる。ACLを入る方向へ適用することと、標準ACLの送信元だけの検査を区別する。

選択肢ごとの説明

A.
configure terminal
interface FastEthernet0/0
ip address 10.122.49.1 255.255.255.252
ip access-group 110 in
exit
ip access-list extended 110
permit tcp 10.139.58.0 0.0.0.15 host 10.122.49.1 eq 22

拡張ACL 110でTCP、送信元10.139.58.0/28、宛先10.122.49.1、ポート22を許可し、Fa0/0の入る方向へ適用する。

B.
configure terminal
interface FastEthernet0/0
ip address 10.122.49.1 255.255.255.240
access-group 120 in
exit
ip access-list extended 120
permit tcp 10.139.58.0 255.255.255.248 any eq 22

送信元の255.255.255.248は/28のワイルドカードではない。access-groupにはipが抜け、指定した送信元範囲とIOSの適用構文が合わない。

C.
configure terminal
interface FastEthernet0/0
ip address 10.122.49.1 255.255.255.252
ip access-group 105 in
exit
ip access-list standard 105
permit tcp 10.139.58.0 0.0.0.7 eq 22 host 10.122.49.1

standard ACLへTCPや宛先、ポートを指定する構文は合わない。0.0.0.7も/29の範囲で、必要な/28全体を含まない。

D.
configure terminal
interface FastEthernet0/0
ip address 10.122.49.1 255.255.255.248
ip access-group 10 in
exit
ip access-list standard 10
permit udp 10.139.58.0 0.0.0.7 host 10.122.49.1 eq 22

標準ACLはUDPと宛先ポートを指定できず、SSHはTCPである。送信元0.0.0.7も求める/28全体の照合ではない。

お問い合わせ

演習する →