协议迁移分析

简介:

 有时候单位网络升级需要把路由协议迁移如:rip向ospf  rip向eigrp 我们这里就好好说下这个问题

如图所示:我们把原来的rip协议迁移到ospf

首先完成初始配置

interface Loopback0

 ip address 1.1.1.1 255.255.255.0

!

interface Serial0/0

 ip address 192.168.1.1 255.255.255.0

 serial restart-delay 0

 no fair-queue

!

interface Serial0/1

 ip address 192.168.2.1 255.255.255.0

 encapsulation frame-relay

 serial restart-delay 0

 no arp frame-relay

 frame-relay map ip 192.168.2.2 102 broadcast

 frame-relay map ip 192.168.2.4 104 broadcast

 no frame-relay inverse-arp

!

interface Serial0/2

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial0/3

 no ip address

 shutdown

 serial restart-delay 0

!

router rip

 version 2

 network 1.0.0.0

 network 192.168.1.0

 network 192.168.2.0

 no auto-summary

r2配置

interface Loopback0

 ip address 2.2.2.2 255.255.255.0

!

interface Serial0/0

 ip address 192.168.1.2 255.255.255.0

 serial restart-delay 0

 no fair-queue

!

interface Serial0/1

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial0/2

 ip address 192.168.2.2 255.255.255.0

 encapsulation frame-relay

 serial restart-delay 0

 no arp frame-relay

 frame-relay map ip 192.168.2.1 201 broadcast

 frame-relay map ip 192.168.2.4 204 broadcast

 no frame-relay inverse-arp

!

interface Serial0/3

 no ip address

 shutdown

 serial restart-delay 0

!

router rip

 version 2

 network 2.0.0.0

 network 192.168.1.0

 network 192.168.2.0

 no auto-summary

r3;

no ip domain lookup

!

!

frame-relay switching

!         

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface Serial0/0

 no ip address

 shutdown

 serial restart-delay 0

 no fair-queue

!

interface Serial0/1

 no ip address

 encapsulation frame-relay

 serial restart-delay 0

 clock rate 64000

 frame-relay lmi-type cisco

 frame-relay intf-type dce

 frame-relay route 102 interface Serial0/2 201

 frame-relay route 104 interface Serial0/3 401

!

interface Serial0/2

 no ip address

 encapsulation frame-relay

 serial restart-delay 0

 clock rate 64000

 frame-relay lmi-type cisco

 frame-relay intf-type dce

 frame-relay route 201 interface Serial0/1 102

 frame-relay route 204 interface Serial0/3 402

!

interface Serial0/3

 no ip address

 encapsulation frame-relay

 serial restart-delay 0

 clock rate 64000

 frame-relay lmi-type cisco

 frame-relay intf-type dce

 frame-relay route 401 interface Serial0/1 104

 frame-relay route 402 interface Serial0/2 204

r4:

interface Loopback0

 ip address 4.4.4.4 255.255.255.0

!

interface Serial0/0

 ip address 192.168.3.4 255.255.255.0

 serial restart-delay 0

!

interface Serial0/1

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial0/2

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial0/3

 ip address 192.168.2.4 255.255.255.0

 encapsulation frame-relay

 serial restart-delay 0

 no arp frame-relay

 frame-relay map ip 192.168.2.1 401 broadcast

 frame-relay map ip 192.168.2.2 402 broadcast

 no frame-relay inverse-arp

!

router rip

 version 2

 network 4.0.0.0

 network 192.168.2.0

 network 192.168.3.0

 no auto-summary

r5:

 

interface Loopback0

 ip address 5.5.5.5 255.255.255.0

!

interface Serial0/0

 ip address 192.168.3.5 255.255.255.0

 serial restart-delay 0

 no fair-queue

!

interface Serial0/1

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial0/2

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial0/3

 no ip address

 shutdown

 serial restart-delay 0

!

router eigrp 1

 no auto-summary

!

router rip

 version 2

 network 5.0.0.0

 network 192.168.3.0

 no auto-summary

r1的路由表

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

 

     1.0.0.0/24 is subnetted, 1 subnets

C       1.1.1.0 is directly connected, Loopback0

     2.0.0.0/24 is subnetted, 1 subnets

R       2.2.2.0 [120/1] via 192.168.2.2, 00:00:10, Serial0/1

                [120/1] via 192.168.1.2, 00:00:10, Serial0/0

     4.0.0.0/24 is subnetted, 1 subnets

R       4.4.4.0 [120/1] via 192.168.2.4, 00:00:18, Serial0/1

     5.0.0.0/24 is subnetted, 1 subnets

R       5.5.5.0 [120/2] via 192.168.2.4, 00:00:03, Serial0/1

C    192.168.1.0/24 is directly connected, Serial0/0

C    192.168.2.0/24 is directly connected, Serial0/1

R    192.168.3.0/24 [120/1] via 192.168.2.4, 00:00:18, Serial0/1

r3的show fr r

r3#show frame-relay r

Input Intf      Input Dlci      Output Intf     Output Dlci     Status

Serial0/1       102             Serial0/2       201             active

Serial0/1       104             Serial0/3       401             active

Serial0/2       201             Serial0/1       102             active

Serial0/2       204             Serial0/3       402             active

Serial0/3       401             Serial0/1       104             active

Serial0/3       402             Serial0/2       204             active

我们用distance修改管理距离,先降低ospf管理距离

例子:router ospf 1

distance 130

network  ip地址   反掩码    area 0

 O   1.1.1.0 [110/65] via 192.168.1.1, 00:14:53, Serial0/0

4.0.0.0/24 is subnetted, 1 subnets

O       4.4.4.0 [110/65] via 192.168.3.4, 00:00:06, Serial0/0

     5.0.0.0/24 is subnetted, 1 subnets

C       5.5.5.0 is directly connected, Loopback0

O    192.168.2.0/24 [110/128] via 192.168.3.4, 00:00:06, Serial0/0

C    192.168.3.0/24 is directly connected, Serial0/0

 


本文转自q狼的诱惑 51CTO博客,原文链接:http://blog.51cto.com/liangrui/411271,如需转载请自行联系原作者

相关文章
|
敏捷开发 弹性计算 中间件
平台即服务(PaaS):简化开发与部署的新篇章
【6月更文挑战第21天】PaaS简化了应用开发与部署,提供资源池化、自动化管理及丰富的开发工具,助力企业降低成本、提高效率和系统稳定性。它支持敏捷开发、加速产品上市,改善用户体验,并推动创新,成为现代软件开发的关键。
1653 2
|
JSON JavaScript 前端开发
小白一眼就能懂的JSON简介与基本使用指南
小白一眼就能懂的JSON简介与基本使用指南
|
12月前
|
自然语言处理 监控 数据可视化
2025年国内外知名数据可视化软件盘点:功能亮点与应用价值
在数字化转型背景下,数据可视化软件成为企业释放数据价值的关键工具。本文从功能亮点、市场表现等维度,解析瓴羊Quick BI、Tableau、Power BI等主流工具在可视化能力、用户友好性、集成兼容性等方面的差异,并结合行业应用与用户评价,为企业选型提供实用参考。像瓴羊 Quick BI 的“智能小Q”一样,自然语言交互、智能洞察(如自动识别数据异常、预测趋势)将成为标配。
|
存储 XML 传感器
RFID电子标签如何选择才能事半功倍呢?
RFID电子标签是物联网信息载体的关键,选型需匹配应用场景。从频率、类型、材质到读写性能,精准适配物流、零售、制造等需求,兼顾成本与兼容性,测试验证确保稳定,方能事半功倍。
1022 10
|
数据采集 JSON Java
Java爬虫获取1688店铺所有商品接口数据实战指南
本文介绍如何使用Java爬虫技术高效获取1688店铺商品信息,涵盖环境搭建、API调用、签名生成及数据抓取全流程,并附完整代码示例,助力市场分析与选品决策。
|
12月前
|
存储 弹性计算 缓存
阿里云服务器型u1实例2核4G5M80G云盘199元1年简单测评:看看是否值得选择?
目前,阿里云服务器2核4G配置价格最低的是一款199元一年的云服务器,目前活动中推出了一款极具吸引力的通用算力型u1实例云服务器,配置为2核4G、5M带宽、80G ESSD Entry云盘,活动优惠价仅为199元/年。而且续费价格不变,这一价格相较于日常价有着非常大的优惠,那么,这款云服务器究竟是否值得选择呢?本文从价格、续费、实例性能等多个方面为大家分析,以供选择参考。
537 12
|
12月前
|
监控 Java Serverless
1TB数据,ES却收到了2TB?揪出那个客户端中的“隐形复读机”
揭秘日志服务中的“隐形复读机”:客户端因非抢先认证导致数据重复发送,带宽消耗翻倍。通过优化鉴权配置或使用Serverless监控,可轻松定位并节省50%流量成本。
1148 4
|
12月前
|
SQL 容灾 Nacos
Seata的部署和集成
本文介绍Seata TC服务器的部署与微服务集成,包括下载、配置、数据库表初始化及高可用集群搭建,实现基于Nacos的分布式事务管理与异地容灾支持。
|
12月前
|
关系型数据库 应用服务中间件 Shell
Docker网络
Docker网络通过namespace实现容器间隔离与通信。默认创建docker0网桥,支持bridge、host、none、container四种模式。自定义网络可实现容器间服务名互通,替代已过时的--link。常用命令包括network ls、create、inspect等,实现灵活组网。
350 0
|
安全 算法 数据建模
中国主要SSL证书提供商
国内主流SSL证书提供商包括CFCA、Gworg、SHECA、iTrusChina等,均提供DV、OV、EV等不同验证级别的证书,支持单域、通配符、多域名保护,满足网站安全与信任需求。
744 0