問題
R1とR2はEthernetで直接接続する2台だけで、R1=192.168.1.1/30、R2=192.168.1.2/30である。両端のOSPFタイプをそろえ、DR/BDR選出を行わないようにする。R1へ適用するコマンド列はどれか。
- 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 - 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 - 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 - 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データベースを同期する。