問題 ccna-200-301-topic-1-question-109・第3版

問題

各ルーターに最後の利用可能なホストIPv4アドレスを設定する。R7のFastEthernet1/0は10.88.31.64/26、R8のFastEthernet0/0は10.19.63.80/28、R9のFastEthernet1/1は10.23.98.128/27に属する。要件を満たす設定はどれか。

  1. A 
    R7(config)# interface FastEthernet1/0
     ip address 10.88.31.127 255.255.255.192
    R8(config)# interface FastEthernet0/0
     ip address 10.19.63.95 255.255.255.240
    R9(config)# interface FastEthernet1/1
     ip address 10.23.98.159 255.255.255.224
    
  2. B 
    R7(config)# interface FastEthernet1/0
     ip address 10.88.31.126 255.255.255.240
    R8(config)# interface FastEthernet0/0
     ip address 10.19.63.94 255.255.255.192
    R9(config)# interface FastEthernet1/1
     ip address 10.23.98.158 255.255.255.248
    
  3. C 
    R7(config)# interface FastEthernet1/0
     ip address 10.88.31.127 255.255.255.240
    R8(config)# interface FastEthernet0/0
     ip address 10.19.63.95 255.255.255.192
    R9(config)# interface FastEthernet1/1
     ip address 10.23.98.159 255.255.255.248
    
  4. D 
    R7(config)# interface FastEthernet1/0
     ip address 10.88.31.126 255.255.255.192
    R8(config)# interface FastEthernet0/0
     ip address 10.19.63.94 255.255.255.240
    R9(config)# interface FastEthernet1/1
     ip address 10.23.98.158 255.255.255.224
    

正解:D

理由

通常のIPv4サブネットでは、最後に使えるホスト値はブロードキャストの一つ前である。アドレスだけでなく、対応するマスクでネットワーク境界とブロードキャストを求める。/26は64、/28は16、/27は32アドレスの範囲であり、指定されたサブネットと同じマスクへ合わせる。

選択肢ごとの説明

A.
R7(config)# interface FastEthernet1/0
 ip address 10.88.31.127 255.255.255.192
R8(config)# interface FastEthernet0/0
 ip address 10.19.63.95 255.255.255.240
R9(config)# interface FastEthernet1/1
 ip address 10.23.98.159 255.255.255.224

R7の.127/26、R8の.95/28、R9の.159/27はいずれも各サブネットのブロードキャストで、最後の利用可能ホストではない。

B.
R7(config)# interface FastEthernet1/0
 ip address 10.88.31.126 255.255.255.240
R8(config)# interface FastEthernet0/0
 ip address 10.19.63.94 255.255.255.192
R9(config)# interface FastEthernet1/1
 ip address 10.23.98.158 255.255.255.248

R7の.126/28とR9の.158/29はそれぞれ最後のホストになる。R8の.94/26の範囲は.64~.127なので、最後のホストは.126であり.94ではない。

C.
R7(config)# interface FastEthernet1/0
 ip address 10.88.31.127 255.255.255.240
R8(config)# interface FastEthernet0/0
 ip address 10.19.63.95 255.255.255.192
R9(config)# interface FastEthernet1/1
 ip address 10.23.98.159 255.255.255.248

R7の.127/28とR9の.159/29はブロードキャストになる。R8の.95/26はホスト値だが、そのサブネットの最後のホストは.126である。

D.
R7(config)# interface FastEthernet1/0
 ip address 10.88.31.126 255.255.255.192
R8(config)# interface FastEthernet0/0
 ip address 10.19.63.94 255.255.255.240
R9(config)# interface FastEthernet1/1
 ip address 10.23.98.158 255.255.255.224

R7の.126/26、R8の.94/28、R9の.158/27は、各マスクで求めるブロードキャスト.127/.95/.159の一つ前になる。指定された各サブネットのマスクとも一致する。

お問い合わせ

演習する →