助け合いフォーラム

Cisco

CCNP ENARSI(300-410)
問題ID : 26195
問題を開く
下記設定を行った場合、BDRになるルータはどれか(全て選択)

この問題はプレミアムコンテンツです。

上に戻る

コマンド入力時の挙動/順について

公開日 2023/02/08

RA, RC, RDのRouterコマンドの入力順について


ip ospf 1 area 0
no shutdown
上記2つのコマンドを順に入力すると、
OSPF process 1 cannot start. There must be at least one "up" IP interface
というエラーが発生し、Interface でOSPFを有効化することができませんでした。

質問


これは機種やIOSのバージョンによって異なるのでしょうか?
どなたかご存知でしたら教えてください。

解決方法


なお、順を入れ替えて
no shutdown で Interface をUpしたあと、
ip ospf 1 area 0 によってOSPFのプロセスを立ち上げると OSFPが有効化されました。

2023/02/09 12:12

「ip ospf 1 area 0」を実行すると、エラーメッセージが出力されますが、その後に「no shutdown」を実行することによりOSPFプロセスが起動します。(エラーを無視して次のコマンドを実行する)

Router#sh ip ospf 
Router#     ←OSPFはまだ起動していない
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int gi 0/0
Router(config-if)#ip address 10.1.1.100 255.255.255.0  ←IPアドレスを設定
Router(config-if)#ip ospf 1 area 0  ←インターフェースでOSPFを起動
Router(config-if)#
*Feb  9 00:21:49.481: %OSPF-4-NORTRID: OSPF process 1 failed to allocate unique router-id and cannot start  ←エラーメッセージ
Router(config-if)#end
*Feb  9 00:21:53.994: %SYS-5-CONFIG_I: Configured from console by consolep
Router#sh ip ospf
%OSPF: Router process 1 is not running, please configure a router-id  ←まだOSPFプロセス1を起動できていない
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int gi 0/0
Router(config-if)#no shutdown   ←gi0/0をアクティブにする
Router(config-if)#
*Feb  9 00:22:22.229: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to up
*Feb  9 00:22:23.229: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
Router(config-if)#end
*Feb  9 00:22:26.614: %SYS-5-CONFIG_I: Configured from console by console
Router#sh ip ospf 
 Routing Process "ospf 1" with ID 10.1.1.100   ←gi0/0がアクティブになったので、OSPF1が起動した
 Start time: 00:02:49.310, Time elapsed: 00:00:42.241
 Supports only single TOS(TOS0) routes
~以下省略~

そのため、[1]ip ospf 1 area 0、[2]no shutdown の順に実行しても問題はないと思われます。
エラーメッセージが出た後に「no shutdown」を実行されてみてはいかがでしょうか?


コメント

この返信に対して
コメントを記入できます

2023/02/12 21:58

コメントいただき、ありがとうございます!


コメント

この返信に対して
コメントを記入できます

スタッフからの返信

s staff_koba

2023/02/09 15:01

ryuji_takamiさん shina305さん ご指摘の点を修正致しました。 ご報告、誠にありがとうございました。

この投稿に対して返信しませんか?