問題 ccnp-350-401-topic-1-question-472・第2版

問題

R1のshow ip ospf interface Gi0/1に「Attached via Interface Enable」「Enabled by interface config」と表示される。OSPFをこの方式で有効にした構成はどれか。

  1. A 
    R1(config)#interface Gi0/1
    R1(config-if)#ip ospf enable
    R1(contig-if)#ip ospf network broadcast
    R1(config-if)#no shutdown
    
  2. B 
    R1(config)#router ospf 1
    R1(config-router)#network 0.0.0.0 0.0.0.0 area 0
    R1(config-router)#no passive-interface Gi0/1
    
  3. C 
    R1(config)#interface Gi0/1
    R1(config-if)#ip ospf 1 area 0
    R1(config-if)#no shutdown
    
  4. D 
    R1(config)#router ospf 1
    R1(config-router)#network 192.168.50.0 0.0.0.255 area 0
    

正解:C

理由

OSPFの有効化方式は表示のInterface EnableとNetwork Statementで区別できる。ネットワークタイプBROADCASTというだけでは、設定方式を区別できない。

選択肢ごとの説明

A.
R1(config)#interface Gi0/1
R1(config-if)#ip ospf enable
R1(contig-if)#ip ospf network broadcast
R1(config-if)#no shutdown

ip ospf enableにはOSPFプロセス番号とareaがなく、このインターフェース有効化の構文ではない。

B.
R1(config)#router ospf 1
R1(config-router)#network 0.0.0.0 0.0.0.0 area 0
R1(config-router)#no passive-interface Gi0/1

router ospf配下のnetworkはnetwork statementによる選択である。wildcardが全0の指定も、全インターフェースを意味しない。

C.
R1(config)#interface Gi0/1
R1(config-if)#ip ospf 1 area 0
R1(config-if)#no shutdown

インターフェースのip ospf 1 area 0で有効にするため、この表示になる。

D.
R1(config)#router ospf 1
R1(config-router)#network 192.168.50.0 0.0.0.255 area 0

networkで選ぶ方式ならAttached via Network Statementになる。

お問い合わせ

演習する →