最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

思科Cisco路由器配置——基于rip協(xié)議的路由重分布配置實驗詳解

  發(fā)布時間:2020-02-27 14:30:05   作者:Stalk   我要評論
這篇文章主要介紹了思科Cisco基于rip協(xié)議的路由重分布配置實驗,結合具體實驗案例形式分析了思科Cisco基于rip協(xié)議實現(xiàn)的路由重分布全網互通配置操作具體實現(xiàn)步驟、配置命令與相關操作注意事項,需要的朋友可以參考下

本文實例講述了思科Cisco基于rip協(xié)議的路由重分布配置實驗。分享給大家供大家參考,具體如下:

一、實驗目的:使用路由重分布達到全網互通

二、拓撲圖

三、具體實驗步驟配置

先給各個主機配置ip地址和網關以PC1為例:

(1)R1路由器配置

Router>enable  --進入特權模式
Router#configure terminal  --進入全局配置
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1  --修改路由器名為R1
R1(config)#interface s0/0/0  --進入端口
R1(config-if)#ip address 192.168.32.2 255.255.255.0  --配置端口ip地址
R1(config-if)#no shutdown  --激活端口

R1(config-if)#clock rate 64000  --配置時鐘速率
R1(config-if)#interface s0/1/0  --進入端口
R1(config-if)#ip address 192.168.12.1 255.255.255.0  --配置端口ip地址
R1(config-if)#no shutdown  --激活端口

R1(config-if)#clock rate 64000  --配置時鐘速率
This command applies only to DCE interfaces
R1(config-if)#interface s0/0/1  --進入端口
R1(config-if)#ip address 192.168.22.1 255.255.255.0  --配置端口ip地址
R1(config-if)#no shutdown  --激活端口

R1(config-if)#clock rate 64000  --配置時鐘速率
This command applies only to DCE interfaces
R1(config-if)#exit  --返回上一級
R1(config)#route rip  --開啟rip協(xié)議
R1(config-router)#version 2  版本2
R1(config-router)#network 192.168.12.0  --添加直連網段到rip
R1(config-router)#network 192.168.22.0
R1(config-router)#exit  --返回上一級
R1(config)#ip route 192.168.42.0 255.255.255.0 192.168.32.1  --配置靜態(tài)路由
R1(config)#router rip  --開啟路由重分布
R1(config-router)#redistribute static  --重分布靜態(tài)路由
R1(config-router)#redistribute connected  --重分布直連路由
R1(config-router)#end  --返回特權模式

(2)R2路由器配置

Router>enable  --進入特權模式
Router#configure terminal  --進入全局配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R2  --修改路由器名為R1
R2(config)#interface s0/1/0  --進入端口
R2(config-if)#ip address 192.168.12.2 255.255.255.0  --為端口配置ip地址
R2(config-if)#no shutdown  --激活端口

R2(config-if)#clock rate 64000  --配置時鐘速率
R2(config-if)#interface s0/0/1  --進入端口
R2(config-if)#ip address 192.168.23.2 255.255.255.0  --為端口配置ip地址
R2(config-if)#no shutdown  --激活端口

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down
R2(config-if)#clock rate 64000  --配置時鐘速率
R2(config-if)#interface s0/0/0  --進入端口
R2(config-if)#ip address 192.168.13.1 255.255.255.0  --為端口配置ip地址
R2(config-if)#no shutdown  --激活端口

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
R2(config-if)#clock rate 64000  --配置時鐘速率
R2(config-if)#exit  --返回上一級
R2(config)#route rip  --開啟rip協(xié)議
R2(config-router)#version 2  --版本2
R2(config-router)#network 192.168.12.0  --添加直連網段到rip
R2(config-router)#network 192.168.13.0
R2(config-router)#exit  --返回上一級
R2(config)#ip route 192.168.43.0 255.255.255.0 192.168.23.1  --配置靜態(tài)路由
R2(config)#router rip  --開啟路由重分布
R2(config-router)#redistribute static  --重分布靜態(tài)路由
R2(config-router)#redistribute connected  --重分布直連路由
R2(config-router)#end  --返回特權模式

(3)R3路由器配置

Router>enable  --進入特權模式
Router#configure terminal  --進入全局配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R3  --修改路由器名為R3
R3(config)#interface s0/0/0  --進入端口
R3(config-if)#ip address 192.168.22.2 255.255.255.0  --為端口配置ip地址
R3(config-if)#no shutdown  --激活端口

R3(config-if)#clock rate 64000  --配置時鐘速率
R3(config-if)#interface s0/0/1  --進入端口
R3(config-if)#ip address 192.168.13.2 255.255.255.0  --為端口配置ip地址
R3(config-if)#no shutdown  --激活端口

R3(config-if)#clock rate 64000  --配置時鐘速率
This command applies only to DCE interfaces
R3(config-if)#interface s0/1/0  --進入端口
R3(config-if)#ip address 192.168.33.1 255.255.255.0  --為端口配置ip地址
R3(config-if)#no shutdown  --激活端口

%LINK-5-CHANGED: Interface Serial0/1/0, changed state to down
R3(config-if)#clock rate 64000  --配置時鐘速率
R3(config-if)#exit  --返回上一級
R3(config)#route rip  --開啟rip協(xié)議
R3(config-router)#version 2  --版本2
R3(config-router)#network 192.168.22.0  --添加直連網段到rip
R3(config-router)#network 192.168.13.0  
R3(config-router)#exit  --返回上一級
R3(config)#ip route 192.168.53.0 255.255.255.0 192.168.33.2  --配置靜態(tài)路由
R3(config)#router rip  --開啟路由重分布
R3(config-router)#redistribute static  --重分布靜態(tài)路由
R3(config-router)#redistribute connected  --重分布直連路由
R3(config-router)#end  --返回特權模式

(4)R4路由器配置

Router>enable  --進入特權模式
Router#configure terminal  --進入全局配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R4  --修改路由器名為R4
R4(config)#interface f0/0  --進入端口
R4(config-if)#ip address 192.168.42.254 255.255.255.0  --為端口配置ip地址
R4(config-if)#no shutdown  --激活端口

R4(config-if)#interface s0/0/0  --進入端口
R4(config-if)#ip address 192.168.32.1 255.255.255.0  --為端口配置ip地址
R4(config-if)#no shutdown  --激活端口

R4(config-if)#clock rate 64000  --配置時鐘速率
This command applies only to DCE interfaces
R4(config-if)#exit  --返回上一級
R4(config)#ip route 0.0.0.0 0.0.0.0 192.168.32.2  --配置缺省路由
R4(config)#end  --返回特權模式

(5)R5路由器配置

Router>enable  --進入特權模式
Router#configure terminal  --進入全局配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R5  --修改主機名為R5
R5(config)#interface s0/0/0  --進入端口
R5(config-if)#ip address 192.168.23.1 255.255.255.0  --為端口配置ip地址
R5(config-if)#no shutdown  --激活端口

R5(config-if)#clock rate 64000  --配置時鐘速率
This command applies only to DCE interfaces
R5(config-if)#interface f0/0  --進入端口
R5(config-if)#ip address 192.168.43.254 255.255.255.0  --為端口配置ip地址
R5(config-if)#no shutdown  --激活端口

R5(config-if)#exit  --返回上一級
R5(config)#ip route 0.0.0.0 0.0.0.0 192.168.23.2  --配置缺省路由
R5(config)#end  --返回特權模式

(6)R6路由器配置

Router>enable  --進入特權模式
Router#configure terminal  --進入全局配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R6  --修改路由器名為R6
R6(config)#interface s0/0/0  --進入端口
R6(config-if)#ip address 192.168.33.2 255.255.255.0  --為端口配置ip地址
R6(config-if)#no shutdown  --激活端口

R6(config-if)#clock rate 64000  --配置時鐘速率
This command applies only to DCE interfaces
R6(config-if)#interface f0/0  --進入端口
R6(config-if)#ip address 192.168.53.254 255.255.255.0  --為端口配置ip地址
R6(config-if)#no shutdown  --激活端口

R6(config-if)#exit  --返回上一級
R6(config)#ip route 0.0.0.0 0.0.0.0 192.168.33.1  --配置缺省路由
R6(config)#end  --返回特權模式

四、驗證:各主機互相ping,看是否全網互通

(1)PC1PC2

(2)PC2PC3

 

(3)PC3PC1

 

結果:全網互通成功

相關文章

最新評論

广元市| 平阴县| 阳泉市| 新安县| 聂拉木县| 高陵县| 新泰市| 新化县| 通辽市| 恩施市| 乳源| 博客| 嘉兴市| 皋兰县| 嘉义县| 柘城县| 青州市| 洪江市| 龙南县| 大冶市| 古田县| 肇州县| 廊坊市| 琼中| 错那县| 开平市| 临安市| 鄂温| 哈密市| 尤溪县| 泾川县| 松溪县| 都匀市| 长葛市| 天津市| 扶绥县| 海丰县| 綦江县| 瑞安市| 南丰县| 永顺县|