首页 电脑网络 电脑知识 正文

简单的路由重分布实验(rip和ospf重分布)

简单的路由重分布实验(rip和ospf重分布) 1、网络拓扑,R1,R2,R3相连Router1 S0/0 Router2 S0/0Router2 S0/1 Router3 S0/12、具体配置R1配置R1>enR1#config teR1#config terminal R1(config)#interface ser
简单的路由重分布实验(rip和ospf重分布)   1、网络拓扑,R1,R2,R3相连 Router1 S0/0 <----> Router2 S0/0 Router2 S0/1 <----> Router3 S0/1 2、具体配置 R1配置 R1>en R1#config te R1#config terminal  R1(config)#interface serial 0/0 R1(config-if)#ip add 14.0.0.1 255.255.255.252       //s0/0接口地址 R1(config-if)#clock rate 64000 R1(config-if)#no shut R1(config-if)#exit R1(config)#interface loopback 0 R1(config-if)#ip add 10.0.0.1 255.255.255.255       //R1环回口接口地址 R1(config-if)#no shut R1(config)#router rip                                               // 启用RIP协议 R1(config-router)#version 2 R1(config-router)#network 10.0.0.1                        //RIP宣告 R1(config-router)#network 14.0.0.1  R1(config-router)#exit R2的配置 R2>en R2#config terminal  R2(config)#interface serial 0/0 R2(config-if)#ip add 14.0.0.2 255.255.255.252             //R2 s0/0接口地址 R2(config-if)#no shut R2(config-if)#exit R2(config)#interface serial 0/1 R2(config-if)#ip add 15.0.0.1 255.255.255.252             //R2 s0/1接口地址 R2(config-if)#clock rate 64000 R2(config-if)#no shut R2(config)#interface loopback 0 R2(config-if)#ip add 12.0.0.1 255.255.255.255             //R2 环回口接口地址 R2(config-if)#no shut R2(config-if)#exit R2(config)#router rip                                                      //启用RIP R2(config-router)#version 2 R2(config-router)#network 14.0.0.2                               //宣告RIP R2(config-router)#exit R2(config)#router ospf 100                                             //启用OSPF R2(config-router)#network 12.0.0.1 0.0.0.0 area 0         //宣告OSPF R2(config-router)#network 15.0.0.1 0.0.0.0 area 0 R2(config)#router rip  R2(config-router)#version 2 R2(config-router)#redistribute ospf 100 metric 1               //将OSPF重分布到RIP中 R2(config-router)#exit R2(config)#router ospf 100 R2(config-router)#redistribute rip subnets                         //将RIP重分布到OSPF中 R3的配置 R3>en R3#config terminal  R3(config)#interface serial 0/1 R3(config-if)#ip add 15.0.0.2 255.255.255.252              //R3 s0/1接口地址 R3(config-if)#no shut R3(config-if)#exit R3(config)#interface loopback 0 R3(config-if)#ip add 13.0.0.1 255.255.255.255               //R3 环回口地址 R3(config-if)#no shut R3(config-if)#exit R3(config)#router ospf 100                                              //启用OSPF R3(config-router)#network 13.0.0.1 0.0.0.0 area 0          //宣告OSPF R3(config-router)#network 15.0.0.2 0.0.0.0 area 0 3、show查看路由信息 R1#show ip route  Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP        D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area         N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2        E1 - OSPF external type 1, E2 - OSPF external type 2        i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2        ia - IS-IS inter area, * - candidate default, U - per-user static route        o - ODR, P - periodic downloaded static route Gateway of last resort is not set      10.0.0.0/32 is subnetted, 1 subnets C       10.0.0.1 is directly connected, Loopback0 R    12.0.0.0/8 [120/1] via 14.0.0.2, 00:00:13, Serial0/0 R    13.0.0.0/8 [120/1] via 14.0.0.2, 00:00:13, Serial0/0      14.0.0.0/30 is subnetted, 1 subnets C       14.0.0.0 is directly connected, Serial0/0 R    15.0.0.0/8 [120/1] via 14.0.0.2, 00:00:13, Serial0/0   R2#show ip route  Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP        D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area         N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2        E1 - OSPF external type 1, E2 - OSPF external type 2        i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2        ia - IS-IS inter area, * - candidate default, U - per-user static route        o - ODR, P - periodic downloaded static route Gateway of last resort is not set R    10.0.0.0/8 [120/1] via 14.0.0.1, 00:00:12, Serial0/0      12.0.0.0/32 is subnetted, 1 subnets C       12.0.0.1 is directly connected, Loopback0      13.0.0.0/32 is subnetted, 1 subnets O       13.0.0.1 [110/65] via 15.0.0.2, 00:30:31, Serial0/1      14.0.0.0/30 is subnetted, 1 subnets C       14.0.0.0 is directly connected, Serial0/0      15.0.0.0/30 is subnetted, 1 subnets C       15.0.0.0 is directly connected, Serial0/1 R3#show ip route  Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP        D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area         N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2        E1 - OSPF external type 1, E2 - OSPF external type 2        i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2        ia - IS-IS inter area, * - candidate default, U - per-user static route        o - ODR, P - periodic downloaded static route Gateway of last resort is not set O E1 10.0.0.0/8 [110/164] via 15.0.0.1, 00:30:14, Serial0/1      12.0.0.0/32 is subnetted, 1 subnets O       12.0.0.1 [110/65] via 15.0.0.1, 00:30:51, Serial0/1      13.0.0.0/32 is subnetted, 1 subnets C       13.0.0.1 is directly connected, Loopback0      14.0.0.0/30 is subnetted, 1 subnets O E1    14.0.0.0 [110/164] via 15.0.0.1, 00:26:55, Serial0/1      15.0.0.0/30 is subnetted, 1 subnets C       15.0.0.0 is directly connected, Serial0/1
(免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)

本文转载自互联网,如有侵权,联系删除

本文地址:https://www.peigen.net/post/10828.html

相关推荐

板栗怎么私信主播?

板栗直播可以看直播,想必有一些用户已经知道,如果遇见自己喜欢的主播,我们该怎么私信主播呢?为此,小编特意查询资料,把板栗如何私信主播的方法分享给大家。 1)打开板栗,点击打开要私信的直播,接着点击左上...

电脑知识 2024-11-30 0 138

e兼职APP怎么进行身份认证?

e兼职app下载最靠谱的大学生兼职,帮助大学生提升技能,借用靠谱企业的力量培育大学生的社会经验与专业技能,最快5秒内找到心仪的兼职,大众点评最好的兼职软件。不过这么好用的软件,在使用前需要进行身份验证...

电脑知识 2024-11-30 0 141

口碑农场邀请码怎么获取

口碑农场是口碑app中新增加的一个玩法。口碑农场邀请码怎么获取?想要获得口碑农场的邀请码,具体该怎么操作?下面就是口碑农场邀请码获取教程,一起来看一下。...

电脑知识 2024-11-30 0 132

伙星app怎么更换主页封面?

伙星是一款关于相机相关的应用,能够让用户来制作各种好玩的、搞笑的照片,并且还有着许许多多的特效,能够让你看到很多很好玩的内容,除了这些,用户可以在里面进行拍照和漂流瓶交友等,那么在伙星app中要怎么更...

电脑知识 2024-11-30 0 118

会声会影怎么添加背景音乐?

会声会影2018是一款强大的照片|图片|视频制作、剪辑软件,具有多种的视频编辑功能和制作动画效果。但是如果想要让自己制作的视频有意思,背景音乐一定少不了,下面,小编就为大家介绍下会声会影添加背景音乐方...

电脑知识 2024-11-30 0 136

如何制作高质量的PPT?

如何制作高质量的PPT?不管是对于一个学生、老师还是上班族Word、PPT、表格这三个办公软件都是必修的技能了。我们如何将这些做得优秀?如何脱衣而出?所以呀今天我们就先来讨论一下如何制作PPT。如果...

电脑知识 2024-11-30 0 122

感谢您的支持