問題
必要な事前設定が適用済みのR1とR2で、次の全要件を満たす設定はどれか。
- router ospf配下のnetwork文を使わず、両ルーター間ですべてのネットワークを広告する。
- 両側の隣接リンクへ同じ一つのコマンドを設定し、DR/BDR選出と余分なOSPFホスト経路の生成を避ける。
- hostnameとenableパスワードは変更せず、構成をNVRAMへ保存する。

- A
! R1 enable configure terminal interface Loopback0 ip ospf 1 area 0 exit interface Ethernet0/0 ip ospf 1 area 0 ip ospf network point-to-point end copy running-config startup-config ! R2 enable configure terminal interface Loopback0 ip ospf 1 area 0 exit interface Ethernet0/0 ip ospf 1 area 0 ip ospf network point-to-point end copy running-config startup-config - B
! R1 enable configure terminal interface Loopback0 ip ospf 1 area 0 exit interface Ethernet0/0 ip ospf 1 area 0 ip ospf network point-to-multipoint end copy running-config startup-config ! R2 enable configure terminal interface Loopback0 ip ospf 1 area 0 exit interface Ethernet0/0 ip ospf 1 area 0 ip ospf network point-to-multipoint end copy running-config startup-config - C
! R1 enable configure terminal interface Loopback0 ip ospf 1 area 0 exit interface Ethernet0/0 ip ospf 1 area 0 ip ospf network broadcast end copy running-config startup-config ! R2 enable configure terminal interface Loopback0 ip ospf 1 area 0 exit interface Ethernet0/0 ip ospf 1 area 0 ip ospf network broadcast end copy running-config startup-config - D
! R1 enable configure terminal router ospf 1 network 192.168.0.0 0.0.0.255 area 0 network 1.1.1.1 0.0.0.0 area 0 exit interface Ethernet0/0 ip ospf network point-to-point end copy running-config startup-config ! R2 enable configure terminal router ospf 1 network 192.168.0.0 0.0.0.255 area 0 network 2.2.2.2 0.0.0.0 area 0 exit interface Ethernet0/0 ip ospf network point-to-point end copy running-config startup-config
正解:A
理由
Loopback0とEthernet0/0をそれぞれOSPFへ参加させる。
ip ospf 1 area 0
Ethernet0/0の両端には次の設定を適用する。
ip ospf network point-to-point
DR/BDRを選出せず、point-to-multipointに伴うインターフェースの/32ホスト経路も作らない。
選択肢ごとの説明
- A.
! R1 enable configure terminal interface Loopback0 ip ospf 1 area 0 exit interface Ethernet0/0 ip ospf 1 area 0 ip ospf network point-to-point end copy running-config startup-config ! R2 enable configure terminal interface Loopback0 ip ospf 1 area 0 exit interface Ethernet0/0 ip ospf 1 area 0 ip ospf network point-to-point end copy running-config startup-config 全インターフェースをnetwork文なしで参加させ、両端をpoint-to-pointへそろえて保存する。
- B.
! R1 enable configure terminal interface Loopback0 ip ospf 1 area 0 exit interface Ethernet0/0 ip ospf 1 area 0 ip ospf network point-to-multipoint end copy running-config startup-config ! R2 enable configure terminal interface Loopback0 ip ospf 1 area 0 exit interface Ethernet0/0 ip ospf 1 area 0 ip ospf network point-to-multipoint end copy running-config startup-config DR/BDRは選出しないが、point-to-multipointはインターフェースのホスト経路を生成する。両方の要件を満たさない。
- C.
! R1 enable configure terminal interface Loopback0 ip ospf 1 area 0 exit interface Ethernet0/0 ip ospf 1 area 0 ip ospf network broadcast end copy running-config startup-config ! R2 enable configure terminal interface Loopback0 ip ospf 1 area 0 exit interface Ethernet0/0 ip ospf 1 area 0 ip ospf network broadcast end copy running-config startup-config broadcastではDR/BDR選出を行う。選出を避ける要求に合わない。
- D.
! R1 enable configure terminal router ospf 1 network 192.168.0.0 0.0.0.255 area 0 network 1.1.1.1 0.0.0.0 area 0 exit interface Ethernet0/0 ip ospf network point-to-point end copy running-config startup-config ! R2 enable configure terminal router ospf 1 network 192.168.0.0 0.0.0.255 area 0 network 2.2.2.2 0.0.0.0 area 0 exit interface Ethernet0/0 ip ospf network point-to-point end copy running-config startup-config 経路の参加にrouter ospf配下のnetwork文を使っている。network文を使わない要求に反する。