动态路由选择 > 关于路由信息协议 (RIP) > RIP 路由配置文件示例

RIP 路由配置文件示例

要在 Fireware XTM 上使用任何动态路由协议,必须为动态路由守护程序复制并粘贴一个配置文件。 本主题包括了 RIP 路由守护程序的一个配置文件示例。 如果要用此配置文件作为自己的配置文件的基础,请将文本复制到某个应用程序(如记事本或写字板)中,并以新的名称保存。 可以编辑相关参数以满足组织的要求。

可选命令会加注“!”字符。 要启用命令,请删除“!”并按照需要修改变量。

!! SECTION 1: Configure MD5 authentication keychains.  
! Set MD5 authentication key chain name (KEYCHAIN), key number (1),
! and authentication key string (AUTHKEY). 
! key chain KEYCHAIN 
! key 1 
! key-string AUTHKEY
!! SECTION 2: Configure interface properties.
! Set authentication for interface (eth1).
! interface eth1
! 
! Set RIP simple authentication password (SHAREDKEY).
! ip rip authentication string SHAREDKEY
! 
! Set RIP MD5 authentication and MD5 keychain (KEYCHAIN). 
! ip rip authentication mode md5 
! ip rip authentication key-chain KEYCHAIN
!  
!! SECTION 3: Configure global RIP daemon properties.
! Set RIP to send or received to version 1; default is version 2.
! ip rip send version 1 
! ip rip receive version 1 
!
! Enable RIP daemon. Must be enabled for all RIP configurations. 
! router rip
! 
! Set RIP version to 1; default is version 2. 
! version 1 
! 
! Disable split-horizon to prevent routing loop. Default is enabled. 
! no ip split-horizon 
!
!! SECTION 4: Configure interfaces and networks.  
! Disable RIP send and receive on interface (eth0). 
! no network eth0 
! 
! Set RIP to receive-only on interface (eth2). 
! passive-interface eth2 
! 
! Set RIP to receive-only on all interfaces. 
! passive-interface default 
! 
! Enable RIP broadcast (version 1) or multicast (version 2) on 
! network (192.168.253.0/24)
! network 192.168.253.0/24
! 
! Set unicast routing table updates to neighbor (192.168.253.254). 
! neighbor 192.168.253.254 
!! SECTION 5: Redistribute RIP routes to peers and inject OSPF or BGP 
!! routes to RIP routing table.  
! Share route of last resort (default route) from kernel routing table 
! with RIP peers.
! default-information originate 
!
! Redistribute firewall static routes to RIP peers. 
! redistribute kernel 
!
! Set route maps (MAPNAME) to restrict route redistribution in Section 6. 
! Redistribute routes from all interfaces to RIP peers or with a route map 
! filter (MAPNAME). 
! redistribute connected 
! redistribute connected route-map MAPNAME 
! 
! Redistribute routes from OSPF to RIP or with a route map filter (MAPNAME). 
! redistribute ospf !redistribute ospf route-map MAPNAME 
! 
! Redistribute routes from BGP to RIP or with a route map filter (MAPNAME). 
! redistribute bgp !redistribute bgp route-map MAPNAME 
!! SECTION 6: Configure route redistribution filters with route maps and 
!! access lists. 
! Create an access list to only allow redistribution of 172.16.30.0/24.
! access-list LISTNAME permit 172.16.30.0/24 
! access-list LISTNAME deny any 
!
! Create a route map with name MAPNAME and allow with a priority of 10. 
! route-map MAPNAME permit 10 
! match ip address LISTNAME 

另请参阅

关于路由信息协议 (RIP)

路由信息协议 (RIP) 命令

配置 XTM 设备以使用 RIP

提供反馈  •   获得支持  •   全部产品文件  •   知识库