銳捷實戰系類 (四十四) 路由器RIPv2配置

實訓目的

  • 回顧RIP協議基本原理和特點。
  • 掌握RIPv2配置及其各個基本參數。

實訓背景

RIP(Routing Information Protocol,路由信息協議)是一種動態路由選擇協議。它採用距離向量演算法,是一種距離向量協議。只與自己直接連接的路由器交換信息,只學習15跳以內的路由信息。目前有RIPv1和RIPv2兩種,區別如下:

RIP使用UDP協議交換路由信息,埠號為520。RIP應用於OSI網路7層模式中的網路層。

實訓拓撲

實驗所需設備:

|設備類型|設備型號|數量|

|-|-|-:|

|路由器|RSR20|2|

|主機|Windows 10|2|

實訓步驟

步驟1:基本配置。

R1:

Ruijie>enableRuijie#config terminalRuijie(config)#hostname R1R1(config)#

R2:

Ruijie>enableRuijie#config terminalRuijie(config)#hostname R2R2(config)#

步驟2:全網基本IP地址配置。

R1(config)#interface fastEthernet 0/0R1(config-FastEthernet 0/0)#ip address 192.168.1.1 255.255.255.0R1(config-FastEthernet 0/0)#exitR1(config)#interface fastEthernet 0/1R1(config-FastEthernet 0/1)#ip address 192.168.2.1 255.255.255.0R1(config-FastEthernet 0/1)#exitR1(config)#R2(config)#interface fastEthernet 0/0R2(config-if-FastEthernet 0/0)#ip address 192.168.1.2 255.255.255.0R2(config-if-FastEthernet 0/0)#exitR2(config)#interface fastEthernet 0/1R2(config-if-FastEthernet 0/1)#ip address 192.168.3.1 255.255.255.0R2(config-if-FastEthernet 0/1)#exitR2(config)#

PC1:

PC2:

步驟3:全網路由啟用rip,並把對應的介面通告到rip進程。

注意:

  • RIP有2個版本version 1和version 2,version 2使用組播更新代替廣播更新,且攜帶路由的掩碼信息,建議使用RIPv2。
  • RIP通過命令network通告網路時,只能通告主類網路,即使network寫子網地址,也會通告該主類網路,屬於該主類網路的所有介面,都會被通告進RIP進程。
  • RIP默認會在主類網路邊界做自動匯總,若有不連續網路,會導致路由學習異常,建議啟用RIP協議後,關閉自動匯總,採用手工匯總的方式。

R1(config)#router ripR1(config-router)#version 2 R1(config-router)#no auto-summary R1(config-router)#network 192.168.1.0 R1(config-router)#network 192.168.2.0R1(config-router)#endR1#R2(config)#router ripR2(config-router)#version 2R2(config-router)#no auto-summaryR2(config-router)#network 192.168.1.0R2(config-router)#network 192.168.3.0R2(config-router)#endR2#

步驟4:使用show ip route命令查看RIP協議。

R1#show ip route

步驟5:使用Ping測試PC1與PC2是否互通。


推薦閱讀:

將單晶元技術引入互聯網
【歡視商店】增強無線wifi信號,一招搞定!
無線在教育信息化過程扮演怎樣的角色?

TAG:路由器 | 無線路由器 | 無線網路 |