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,如需转载请自行联系原作者
目录
打赏
0
0
0
0
69
分享
相关文章
动态路由协议
【8月更文挑战第18天】动态路由协议
114 6
动态路由协议二
2.rip路由协议 路由信息协议(RIP) 是内部网关协议IGP中最先得到广泛使用的协议【1058 】。RIP是一种分布式的基于距离矢量的路由选择协议,是因特网的标准协议,其最大优点就是实现简单,开销较小。 但RIP的缺点也较多。首先,其限制了网络的规模,能使用的最大距离为15(16表示不可达)。其次路由器交换的信息是路由器的完整路由表,因而随着网络规模的扩大,开销也就增加。最后,"坏消息传播得慢",使更新过程的收敛时间过长。因此对于规模较大的网络就应当使用OSPF协议。然而在规模较小的网络中,使用RIP协议的仍占多数。
155 0
动态路由协议二
动态路由协议一
一动态路由 1.什么是动态路由 动态路由是指路由器能够自动地建立自己的路由表,并且能够根据实际情况的变化适时地进行调整 2.动态路由的概述 动态路由是与静态路由相对的一个概念,指路由器能够根据路由器之间的交换的特定路由信息自动地建立自己的路由表,并且能够根据链路和节点的变化适时地进行自动调整。当网络中节点或节点间的链路发生故障,或存在其它可用路由时,动态路由可以自行选择最佳的可用路由并继续转发的报文。
270 0
动态路由协议一
思科私有动态路由协议:EIGRP
EIGRP是一种基于内部网关路由协议 (IGRP) 原理的高级距离矢量路由协议,具有提高运算能力和收敛速度快的独特特性。
329 0
思科私有动态路由协议:EIGRP
动态路由协议(一)
本章的学习目标:是理解动态路由的基本概念和原理,以及动态路由协议分类。
299 0
动态路由协议(一)
动态路由协议(二)
本章将会讲解RIP路由的工作原理,在这之前可以回顾一下动态路由协议(一)。 本章重点:RIP路由协议的原理和配置
188 0
动态路由协议(二)
应用最广泛的动态路由协议:OSPF
OSPF,英文全称:Open Shortest Path First,中文名称:开放最短路径优先。 OSPF是 IP 路由协议系列之一,是 Internet 的内部网关协议 (IGP),用于在 IP 网络中的单个自治系统 (AS) 中分发 IP 路由信息。
516 0
应用最广泛的动态路由协议:OSPF