1. 程式人生 > >【Fortinet】飛塔(FortiGate)防火墻低端產品命令行下配置RIP

【Fortinet】飛塔(FortiGate)防火墻低端產品命令行下配置RIP

rip fortinet forgate 飛塔防火墻 命令行配置rip

前言:

FortiGate中端、高端產品支持web頁面配置RIP/OSPF/BGP,低端(桌面級)產品不支持,只支持CLI配置------雖然官網有手冊(英文版),但沒有實際案例,並給出建立連接的結果來的舒服~~這就是此文的目的~~

FortiGate配置ospf和Cisco/H3C/華為都不太一樣,希望此文對大家有幫助!

實驗使用的FortiGate使用的是80E和60E,對接設備為Cisco 4331。

註:本文只寫出ForGate端的配置命令。


技術分享

拓撲圖

目的:

ForGate和Cisco建立RIP連接關系,動態學習路由。相關的IP信息如拓撲圖所示。


配置思路:

1.宣告網段

2.將接口加入RIP進程下

3.宣告網段,並應用area:

3.將靜態路由重分發進RIP


命令行配置:

1.宣告網段:

config router rip

config network

edit 1

set prefix 134.118.19.0 255.255.255.0

next

end

2.將接口加入RIP進程下:

config interface

edit "internal1"

set receive-version 1 2 //接收RIP version 1和version 2更新

set send-version 1 2 //發送RIP version 1和version 2更新

next

end

3.將靜態路由重分發進RIP:

config redistribute "static"

set status enable

end

此時配置結束。

註:敲完 next或end 配置就會保存。


驗證效果:

1.4.1查看RIP database

NPTJ-Firewall # get router info ripdatabase

Codes: R - RIP, Rc - RIP connected, Rs -RIP static, K - Kernel,

C - Connected, S - Static, O - OSPF, I - IS-IS, B - BGP

Network Next Hop Metric From If Time

R 10.0.0.0/8 134.118.19.1 2134.118.19.1 internal1 02:37

R 134.0.0.0/8 134.118.19.1 2134.118.19.1 internal1 02:37

R 134.111.0.0/16 134.118.19.1 2134.118.19.1 internal1 02:37

R 134.118.0.0/16 134.118.19.1 2 134.118.19.1 internal1 02:37

R 134.118.15.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.16.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.17.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

Rc 134.118.19.0/24 1 internal1

R 134.118.22.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.30.0/23 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.32.0/23 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.34.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.35.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.36.0/23 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.40.0/22 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.50.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.70.0/24 134.118.19.252 2 134.118.19.252 internal1 02:49

R 134.118.80.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.90.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.100.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.106.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.110.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.111.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.112.0/24 134.118.19.252 2 134.118.19.252 internal1 02:49

R 134.118.113.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.114.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.115.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.118.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.118.121.0/24 134.118.19.252 2134.118.19.252 internal1 02:49

R 134.119.0.0/16 134.118.19.1 2 134.118.19.1 internal1 02:37

R 134.120.0.0/16 134.118.19.1 2134.118.19.1 internal1 02:37

R 134.121.0.0/16 134.118.19.1 2134.118.19.1 internal1 02:37

R 134.124.0.0/16 134.118.19.1 2134.118.19.1 internal1 02:37

R 134.125.0.0/16 134.118.19.1 2134.118.19.1 internal1 02:37

R 134.127.0.0/16 134.118.19.1 2134.118.19.1 internal1 02:37

R 134.128.0.0/16 134.118.19.1 2134.118.19.1 internal1 02:37

R 134.129.0.0/16 134.118.19.1 2134.118.19.1 internal1 02:37

R 134.132.0.0/16 134.118.19.1 2134.118.19.1 internal1 02:37

R 134.133.0.0/16 134.118.19.1 2134.118.19.1 internal1 02:37

R 134.134.0.0/16 134.118.19.1 2134.118.19.1 internal1 02:37

R 172.16.0.0/16 134.118.19.1 2134.118.19.1 internal1 02:37

R 172.17.0.0/16 134.118.19.1 2134.118.19.1 internal1 02:37

R 192.168.2.0/30 134.118.19.1 2 134.118.19.1 internal1 02:37

R 192.168.3.0/30 134.118.19.1 2134.118.19.1 internal1 02:37

R 192.168.4.0/30 134.118.19.1 2134.118.19.1 internal1 02:37

R 192.168.15.0/24 134.118.19.1 2 134.118.19.1 internal1 02:37

R 192.168.20.0/30 134.118.19.1 2134.118.19.1 internal1 02:37

R 192.168.22.0/30 134.118.19.1 2134.118.19.1 internal1 02:37

R 192.168.53.0/30 134.118.19.1 2134.118.19.1 internal1 02:37

R 192.168.58.0/30 134.118.19.1 2134.118.19.1 internal1 02:37

R 192.168.60.0/30 134.118.19.1 2134.118.19.1 internal1 02:37

R 192.168.200.0/24 134.118.19.1 2134.118.19.1 internal1 02:37

1.4.2查看通過RIP學習到的路由

NPTJ-Firewall # get router inforouting-table rip

R 10.0.0.0/8 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 134.0.0.0/8 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 134.111.0.0/16 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 134.118.0.0/16 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 134.118.15.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.16.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.17.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.22.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.30.0/23 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.32.0/23 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.34.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.35.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.36.0/23 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.40.0/22 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.50.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.70.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.80.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.90.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.100.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.106.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.110.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.111.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.112.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.113.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.114.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.115.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.118.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.118.121.0/24 [120/2] via 134.118.19.252, internal1, 1d18h51m

R 134.119.0.0/16 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 134.120.0.0/16 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 134.121.0.0/16 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 134.124.0.0/16 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 134.125.0.0/16 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 134.127.0.0/16 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 134.128.0.0/16 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 134.129.0.0/16 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 134.132.0.0/16 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 134.133.0.0/16 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 134.134.0.0/16 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 172.16.0.0/16 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 172.17.0.0/16 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 192.168.2.0/30 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 192.168.3.0/30 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 192.168.4.0/30 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 192.168.15.0/24 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 192.168.20.0/30 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 192.168.22.0/30 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 192.168.53.0/30 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 192.168.58.0/30 [120/2] via 134.118.19.1, internal1, 1d18h51m

R 192.168.60.0/30 [120/2] via 134.118.19.1, internal1, 1d18h51m


成功建立鄰接關系,也學習到了路由,配置成功!


本文出自 “TommyKing” 博客,請務必保留此出處http://tommyking.blog.51cto.com/10481841/1959566

【Fortinet】飛塔(FortiGate)防火墻低端產品命令行下配置RIP