RIPv1 与 RIPv2 基础配置
生活随笔
收集整理的這篇文章主要介紹了
RIPv1 与 RIPv2 基础配置
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
實驗要求:
分別使用 RIP 協議的兩個版本宣告直連網段,讓全網互通。
IP 地址表:
實驗配置如下:
配置 R1:
- R1(config)#interface f0/0 R1(config-if)#ipaddress192.168.1.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface Loopback0 R1(config-if)#ipaddress100.1.1.0255.255.255.0 R1(config-if)#exit
配置 R2:
- R2(config)#interface f1/0 R2(config-if)#ipaddress192.168.1.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface loopback0 R2(config-if)#ipaddress200.1.1.1255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit
配置 RIPv1:
- R1(config)#routerrip R1(config-router)#version1 R1(config-router)#network192.168.1.0 R1(config-router)#network100.1.1.0 R1(config-router)#exit R2(config)#router rip R2(config-router)#version1 R2(config-router)#network192.168.1.0 R2(config-router)#network200.1.1.0 R2(config-router)#exit
配置 RIPv2:
接下來:showiproute -----à 查看路由表,在啟用 RIPv1 時,路由表里僅顯示主類網段。而啟用 RIRv2 時,路由表不僅顯示主類網段,也會顯示子網信息。
?
在 RIP 協議中分為 RIPv1 和 RIPv2 兩個版本。
RIPv1 是一種有類的距離矢量路由協議,其更新中不包含子網掩碼,不支持 VLAM,因此路由表中僅顯示主類網段。
RIPv2 是一種無類的距離矢量路由協議,其更新中包含子網掩碼,支持 VLSM,因此路由表中顯示主類網段和子網信息。
?
歡迎關注微信公眾號【廈門微思網絡】。www.xmws.cn專業IT認證培訓19周年
主要課程:思科、華為、紅帽、ORACLE、VMware、CISP、PMP等認證培訓及考證
總結
以上是生活随笔為你收集整理的RIPv1 与 RIPv2 基础配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 运维基础(9)Linux性能调优三大系统
- 下一篇: 8年运维大神总结:坚持4-3-2备份策略