LoginSignup
6
2

More than 3 years have passed since last update.

Cisco Routerにおける、OSPF設定の手順

Last updated at Posted at 2017-12-29

cap.PNG
こんな感じのネットワークを想定します。
Cisco Packet tracerにて作成。
前提として
○routerの各interfaceはip address 割り当て済み
○routerの各interfaceにno shutdownコマンド入力済み
○各ホストにはdhcpでip addressを割り当て済み。default gatewayも割り当て済み

この状態から、OSPFを用いてroutingを行う場合は、各routerに以下のコマンドを入力します。

>enable
#conf t
(config)#router ospf 1
//ospfプロセスを有効化するコマンド。1はprocess-idであり、一つのrouter上で複数のOSPFプロセスを実行する際に使用されます。

(config-router)#network 192.168.1.0 0.0.0.255 area 1
//ospfを有効にするinterfaceをネットワークアドレスによって指定するコマンド。0.0.0.255はワイルドカードマスクです。area 1 はospfのarea指定。

以上のコマンドをそれぞれのrouterに打ち込めば、OSPFでのroutingができて、host同士の通信が行えるはずです。

6
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
2