問題 ccna-200-301-topic-1-question-461・第6版

問題

R1とR2はEthernetで直接接続する2台だけで、R1=192.168.1.1/30、R2=192.168.1.2/30である。両端のOSPFタイプをそろえ、DR/BDR選出を行わないようにする。R1へ適用するコマンド列はどれか。

  1. A 
    router ospf 1
     network 192.168.1.1 0.0.0.0 area 0
    exit
    interface Ethernet1/1
     ip address 192.168.1.1 255.255.255.252
     ip ospf cost 0
    
  2. B 
    router ospf 1
     network 192.168.1.1 0.0.0.0 area 0
     hello interval 15
    exit
    interface Ethernet1/1
     ip address 192.168.1.1 255.255.255.252
    
  3. C 
    router ospf 1
     network 192.168.1.1 0.0.0.0 area 0
    exit
    interface Ethernet1/1
     ip address 192.168.1.1 255.255.255.252
     ip ospf network broadcast
    
  4. D 
    router ospf 1
     network 192.168.1.1 0.0.0.0 area 0
    exit
    interface Ethernet1/1
     ip address 192.168.1.1 255.255.255.252
     ip ospf network point-to-point
    

正解:D

理由

DR/BDRの選出を行わないネットワークタイプへ変更する。

ip ospf network point-to-point

priorityを0にしてDR候補から外す操作とは異なる。

選択肢ごとの説明

A.
router ospf 1
 network 192.168.1.1 0.0.0.0 area 0
exit
interface Ethernet1/1
 ip address 192.168.1.1 255.255.255.252
 ip ospf cost 0

costを変更してもnetwork typeは変わらず、通常の有効範囲にも0は含まれない。

B.
router ospf 1
 network 192.168.1.1 0.0.0.0 area 0
 hello interval 15
exit
interface Ethernet1/1
 ip address 192.168.1.1 255.255.255.252

Hello間隔の変更はDR選出自体を止めない。このhello intervalという記述もrouter ospf配下の通常の構文ではない。

C.
router ospf 1
 network 192.168.1.1 0.0.0.0 area 0
exit
interface Ethernet1/1
 ip address 192.168.1.1 255.255.255.252
 ip ospf network broadcast

broadcastはDR/BDRを選出するタイプなので、指定と逆である。

D.
router ospf 1
 network 192.168.1.1 0.0.0.0 area 0
exit
interface Ethernet1/1
 ip address 192.168.1.1 255.255.255.252
 ip ospf network point-to-point

point-to-pointではDR/BDRを選出せず、両端でOSPFデータベースを同期する。

参考資料

お問い合わせ

演習する →