Basic FortiOS 2.80 OSPF configuration

FortiGate Configuration
1. Area configuration:
Fortigate-500 # config router ospf
(ospf)# config area
(area)# edit 0.0.0.1
new entry '0.0.0.1' added
(0.0.0.1)# end
2. Network configuration:
(ospf)# config network
(network)# edit 1
new entry '1' added
(1)# set prefix 172.16.87.0/24
(1)# set area 0.0.0.1
(1)# next
(network)# edit 2
new entry '2' added
(2)# set prefix 10.10.10.0/24
(2)# set area 0.0.0.1
(2)# end
(ospf)#end
3. Cisco configuration:
router ospf 1
log-adjacency-changes
network 1.0.0.0 0.255.255.255 area 1
network 100.0.0.0 0.255.255.255 area 1
network 134.2.0.0 0.0.255.255 area 1
network 172.16.87.0 0.0.0.255 area 1
network 198.3.3.0 0.0.0.255 area 1
4. Verifying routing table on the FortiGate unit:
Fortigate-500 # get router ospf
abr-type : cisco
area:
== [ 0.0.0.1 ]
id: 0.0.0.1
database-overflow : disable
database-overflow-max-lsas: 10000
database-overflow-time-to-recover: 300
default-information-metric: 10
default-information-metric-type: 2
default-information-originate: disable
default-information-route-map: (null)
default-metric : 10
distance : 110
distribute-list:
neighbor:
network:
== [ 1 ]
id: 1 area: 0.0.0.1 prefix: 172.16.87.0 255.255.255.0
== [ 2 ]
id: 2 area: 0.0.0.1 prefix: 10.10.10.0 255.255.255.0
ospf-interface:
passive-interface:
redistribute:
== [ connected ]
name: connected status: disable metric: 10 routemap: (nu
ll)
== [ static ]
name: static status: disable metric: 10 routemap: (null)
== [ rip ]
name: rip status: disable metric: 10 routemap: (null)
rfc1583-compatible : disable
router-id : 0.0.0.0
spf-timers : 5 10
summary-address:
Fortigate-500 # get router info ospf route
OSPF process 1:
Codes: C - connected, D - Discard, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
O 1.1.1.1/32 [11] via 172.16.87.24, external, Area 0.0.0.1
O 10.10.10.0/24 [10] is directly connected, dmz, Area 0.0.0.1
O 100.0.0.0/8 [20] via 172.16.87.24, external, Area 0.0.0.1
O 134.2.2.2/32 [11] via 172.16.87.24, external, Area 0.0.0.1
O 172.16.87.0/24 [10] is directly connected, external, Area 0.0.0.1
O 198.3.3.3/32 [11] via 172.16.87.24, external, Area 0.0.0.1
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值