CCNP之IPv6技术-动态路由协议

简介:
实验平台: Cisco 3725+NM4T 串口模块 +GT96100-FE 快速以太网模块
IOS      c3725-adventerprisek9-mz.124-9.T1.bin
实验目标:通过各种支持 IPv6 的动态路由协议使用整个网络能够互通
实验拓扑:如下图
 
 
R1 配置:
R1(config)#ipv6 unicast-routing // 开启 IPv6 路由功能(不能少)
R1(config)#int fa0/0
R1(config-if)#ipv6 address 2000::1/16
R1(config-if)#no shut
R1(config)#int s1/0
R1(config-if)#ipv6 address 2001::1/16
R1(config-if)#no shut
--------- 上面为基本 IP 信息配置部分 ------------
 
R1(config)#ipv6 router rip bjxh  // bjxh ”为任意名称
R1(config-rtr)#exit
R1(config)#int fa0/0
R1(config-if)#ipv6 rip bjxh enable // 在接口上激活 RIP
R1(config-if)#int s1/0
R1(config-if)#ipv6 rip bjxh enable
--------- 以上为支持 IPV6 RIPng 动态路由配置部分 ------------
 
R1(config)#no ipv6 router rip bjxh  // 去掉 RIP 协议
R1(config)#ipv6 router ospf 110    // 启动 OSPFv3 进程号为 110 ,各路由器可以不同
R1(config-rtr)#router-id  1.1.1 .1  // 必须指定 RID
R1(config)#int fa0/0
R1(config-if)#ipv6 ospf 110 area 0  // 将接口加入到区域 0
R1(config-if)#int s1/0
R1(config-if)#ipv6 ospf 110 area 0
--------- 以上为支持 IPV6 OSPFv3 动态路由配置部分 ------------
 
R1(config)#no ipv router ospf 110
R1(config)#ipv6 router eigrp 90   // 启动 EIGRP 协议,自治系统号为 90 ,各路由器要相同
R1(config-rtr)#router-id  1.1.1 .1  // 需要指定 RID
R1(config-rtr)#no shut  // 一定要激活协议
R1(config-rtr)#ex
R1(config)#int fa0/0
R1(config-if)#ipv6 eigrp 90  // 在接口上激活协议
R1(config-if)#int s1/0
R1(config-if)#ipv6 ei 90
--------- 以上为支持 IPV6 EIGRP 动态路由配置部分 ------------
 
R2 配置
R2(config)#ipv6 unicast-routing
R2(config)#int s1/0
R2(config-if)#ipv6 address 2001::2/16
R2(config-if)#no shut
R2(config)#int s1/1
R2(config-if)#ipv6 address 2002::1/16
R2(config-if)#no shut
--------- 以上为基本 IP 信息配置部分 ------------
 
R2(config)#ipv6 router rip bjxh
R2(config-rtr)#exit
R2(config)#int s1/0
R2(config-if)#ipv6 rip bjxh en
R2(config-if)#int s1/1
R2(config-if)#ipv rip bjxh en
--------- 以上为支持 IPV6 RIPng 动态路由配置部分 ------------
 
R2(config)#no ipv6 router rip bjxh
R2(config)#ipv6 router ospf 110
R2(config-rtr)#router-id  2.2.2 .2
R2(config-rtr)#ex
R2(config)#int s1/0
R2(config-if)#ipv ospf  110 a  0
R2(config-if)#int s1/1
R2(config-if)#ipv os  110 a  1
--------- 以上为支持 IPV6 OSPFv3 动态路由配置部分 ------------
 
R2(config)#no ipv6 router ospf 110
R2(config)#ipv6 router eigrp 90
R2(config-rtr)#router-id  2.2.2 .2
R2(config-rtr)#no shut
R2(config-rtr)#ex
R2(config)#int s1/0
R2(config-if)#ipv ei 90
R2(config-if)#int s1/1
R2(config-if)#ipv ei 90
--------- 以上为支持 IPV6 EIGRP 动态路由配置部分 ------------
 
R3 配置:
R3(config)#ipv6 unicast-routing
R3(config)#int s1/0
R3(config-if)#ipv add 2002::2/16
R3(config-if)#no shut
R3(config-if)#int fa0/0
R3(config-if)#ipv add 2003::1/16
R3(config-if)#no shut
--------- 上面为基本 IP 信息配置部分 ------------
 
R3(config)#ipv6 router rip bjxh
R3(config)#int fa0/0
R3(config-if)#ipv rip bjxh en
R3(config-if)#int s1/0
R3(config-if)#ipv rip bjxh en
--------- 以上为支持 IPV6 RIP 动态路由配置部分 ------------
 
R3(config)#no ipv router rip bjxh
R3(config)#ipv router os 110
R3(config-rtr)#router-id  3.3.3 .3
R3(config-rtr)#ex
R3(config)#int fa0/0
R3(config-if)#ipv os  110 a  1
R3(config-if)#int s1/0
R3(config-if)#ipv os  110 a  1
--------- 以上为支持 IPV6 OSPFv3 动态路由配置部分 ------------
 
R3(config)#no ipv router ospf 110
R3(config)#ipv6 router eigrp 90
R3(config-rtr)#router-id  3.3.3 .3
R3(config-rtr)#no shut
R3(config-rtr)#ex
R3(config)#int fa0/0
R3(config-if)#ipv ei 90
R3(config-if)#int s1/0
R3(config-if)#ipv ei 90
--------- 以上为支持 IPV6 EIGRP 动态路由配置部分 ------------
 
R3#show ipv rou
IPv6 Routing Table - 8 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
       D - EIGRP, EX - EIGRP external
R   2000::/16 [120/3]
     via FE80::C000:13FF:FE 2C :0, Serial1/0
R   2001::/16 [120/2]
     via FE80::C000:13FF:FE 2C :0, Serial1/0
--------- 部分省略 -----------
 
R3#show ipv route
IPv6 Routing Table - 8 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
       D - EIGRP, EX - EIGRP external
OI  2000::/16 [110/138]
     via FE80::C000:13FF:FE 2C :0, Serial1/0
OI  2001::/16 [110/128]
     via FE80::C000:13FF:FE 2C :0, Serial1/0
--------- 部分省略 -----------
 
R3#show ipv rou
IPv6 Routing Table - 8 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
       D - EIGRP, EX - EIGRP external
D   2000::/16 [90/2707456]
     via FE80::C000:13FF:FE 2C :0, Serial1/0
D   2001::/16 [90/2681856]
     via FE80::C000:13FF:FE 2C :0, Serial1/0
--------- 部分省略 -----------
 
R3#p 2000::1
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2000::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/88/192 ms
 
这只是这三种路由协议的最基本配置,还有很多性能调优性的配置这里没有列出
以及支持 Ipv6 IS-IS 协议以及 BGP 协议会在后续的博文中写出。
 
本文转自Y.weisheng 51CTO博客,原文链接:http://blog.51cto.com/yuan2/228708,如需转载请自行联系原作者
相关文章
|
弹性计算 网络协议 数据处理
稳定平滑进行云上业务IPv6化改造—— Series1:改造思路及CDN改造
随着国家工信部印发的《推进IPv6规模部署行动计划》的深入推进,近期国资委相关的大型国企都开始着手进行业务的IPv6化改造,其在阿里云上的门户及B2B、B2C等对外业务,自然进入第一批改造的范围。本文是基于在具体客户的IPv6化过程中积累的最佳实践编写,希望能够给读者带来一些IPv6化改造的启发。
稳定平滑进行云上业务IPv6化改造—— Series1:改造思路及CDN改造
|
2月前
|
机器学习/深度学习 人工智能 分布式计算
AI 大模型时代的网络架构演进
​2025 年 7 月 26 日,第二届中国计算机学会(CCF)分布式计算大会暨中国算力网大会(CCF Computility 2025)在甘肃兰州隆重召开。大会以“算力网:新质生产力背景下的分布式系统”为主题,吸引了来自学术界与产业界的 1200 余位专家学者、行业代表齐聚一堂,共探分布式计算与算力网络的前沿技术与未来趋势。
|
8月前
|
Web App开发 数据采集 JavaScript
Chrome浏览器实例的TypeScript自动化脚本
Chrome浏览器实例的TypeScript自动化脚本
|
11月前
|
网络协议 网络性能优化 API
TCP或RDMA
【10月更文挑战第1天】TCP或RDMA
466 2
|
11月前
|
SQL 安全 网络安全
网络安全与信息安全:防范措施与加密技术解析
【10月更文挑战第9天】在数字化时代,网络安全与信息安全已成为我们日常生活中不可或缺的一部分。本文将深入探讨网络安全漏洞、加密技术和安全意识等方面的内容,以帮助读者更好地了解和应对网络安全威胁。通过分享相关知识和案例分析,我们希望提高大家对网络安全的认识和重视程度,共同维护一个安全、可靠的网络环境。
801 0
|
运维 监控 JavaScript
【阿里云云原生专栏】Serverless架构下的应用部署与运维:阿里云Function Compute深度探索
【5月更文挑战第21天】阿里云Function Compute是事件驱动的无服务器计算服务,让用户无需关注基础设施,专注业务逻辑。本文详述了在FC上部署应用的步骤,包括创建函数、编写代码和部署,并介绍了运维功能:监控告警、日志管理、版本管理和授权管理,提供高效低成本的计算服务。
500 6
|
Shell Go
通过安装GVM 安装GO 操作步骤
通过安装GVM 安装GO 操作步骤
418 0
|
存储 监控 NoSQL
软件体系结构 - Redis 技术架构
【4月更文挑战第16天】软件体系结构 - Redis 技术架构
319 0
|
算法 Linux 调度
根基已筑!Anolis OS 23.1 预览版本搭载 Linux 6.6 内核和工具链升级完成
Anolis OS 23.1 对软件包的选择和组合进行了重新规划与决策,满足更为广泛的应用场景需求。
|
Java Maven
Maven错误:was cached in the local repository, resolution will not be reattempted until the update
Maven错误:was cached in the local repository, resolution will not be reattempted until the update
640 1