OSPF(Open Shortest Path First)は、リンクステート型のIGPであり、最短経路計算にDijkstraアルゴリズムを用います。
FortiGateでも一般的なOSPFの概念は同じですが、インターフェースベースの設定やGUI操作に独自の特徴があります。
FortiGateでOSPFを構成する際の基本的な流れは以下です。
config router ospf
set router-id 1.1.1.1
config area
edit 0.0.0.0
next
end
config network
edit 1
set prefix 192.168.1.0 255.255.255.0
set area 0.0.0.0
next
end
end
config router ospf
set router-id 2.2.2.2
config area
edit 0.0.0.0
next
end
config ospf-interface
edit "port2"
set interface "port2"
set area 0.0.0.0
set hello-interval 10
set dead-interval 40
next
end
end
config router ospf config ospf-interface edit "port2" set interface "port2" set authentication md5 set md5-key 1 key123 next end endconfig router ospf config ospf-interface edit "port2" set interface "port2" set authentication md5 config md5-keys edit 1 set key-string "key123" next end next end endconfig router key-chain edit "OSPF-KEY" config key edit 1 set key-string "key123" next end next end config router ospf config ospf-interface edit "port2" set interface "port2" set authentication message-digest set keychain "OSPF-KEY" next end end静的ルートをOSPFに再配布する場合
config router access-list
edit "wanted-static"
config rule
edit 1
set prefix 192.168.33.0/24
set exact-match enable
set action permit
next
end
next
end
config router route-map
edit "static-to-ospf"
config rule
edit 1
set match-ip-address "wanted-static"
next
end
next
end
config router ospf
config redistribute "static"
set status enable
set routemap "static-to-ospf"
set metric-type 1
end
end
get router info ospf neighborget router info ospf interface <ifname>get router info ospf database [brief|self-originate|router lsa]get router info routing-table ospfdiagnose ip router ospf all enable diagnose ip router ospf level info diagnose debug console timestamp enable diagnose debug enable ... diagnose ip router ospf all disable diagnose debug disable以上、FortiGateのOSPFの設定についてでした。
最後までお読みいただき、ありがとうございました。