实验17-1: IPv6 静态路由

Ø    实验目的
通过本实验可以掌握
(1)启用IPv6 流量转发
(2)配置IPv6 地址
(3)IPv6 静态路由配置和调试
(4)IPv6 默认路由配置和调试

Ø    拓扑结构

实验步骤
u    步骤1:配置路由器R1
R1(config)#ipv6 unicast-routing //启用IPv6 流量转发
R1(config)#interface Loopback0
R1(config-if)#ipv6 address 2006:AAAA::1/64 //配置IPv6 地址
R1(config)#interface Loopback1
R1(config-if)#ipv6 address 2006:BBBB::1/64
R1(config)#interface Serial1/0
R1(config-if)#ipv6 address 2007:CCCC::1/64
R1(config-if)#no shutdown
R1(config)#ipv6 route 2008:DDDD::/64 Serial1/0 //配置IPv6 静态路由
u    步骤2:配置路由器R2
R2(config)#ipv6 unicast-routing
R2(config)#interface Loopback0
R2(config-if)#ipv6 address 2008:DDDD::2/64
R2(config)#interface Serial1/0
R2(config-if)#ipv6 address 2007:CCCC::2/64
R2(config-if)#clockrate 128000
R2(config-if)#no shutdown
R2(config)#ipv6 route ::/0 Serial1/0 //配置IPv6 默认路由

Ø    实验调试
n    show ipv6 interface
该命令用来查看IPv6 的接口信息。
R1#show ipv6 interface s1/0
Serial1/0 is up, line protocol is up
   IPv6 is enabled, link-local address is FE80::CE00:13FF:FEE8:0
   FE80::C800:BFF:FE80:0
//本接口启用IPv6,本地链路地址自动配置
   Global unicast address(es):
2007:CCCC::1, subnet is 2007:CCCC::/64
   //全球聚合地址
   Joined group address(es):
FF02::1
//表示本地链路上的所有节点和路由器
FF02::2
//表示本地链路上的所有路由器
FF02::1:FF00:1
//用于替换ARP 机制的被请求节点的多播地址
FF02::1:FFE8:0
//与单播地址2007:CCCC::1 相关的被请求节点多播地址
  MTU is 1500 bytes
  ICMP error messages limited to one every 100 milliseconds
  ICMP redirects are enabled
  //启用ICMP 重定向
  ND DAD is enabled, number of DAD attempts: 1
  //邻居发现和重复地址检测启动
  ND reachable time is 30000 milliseconds
  //ND 可达时间
  Hosts use stateless autoconfig for addresses
  //使用无状态自动配置地址

n    show ipv6 route
该命令用来查看IPv6 路由表。
R1#show ipv6 route
IPv6 Routing Table - 9 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
C   2006:AAAA::/64 [0/0]
     via ::, Loopback0
L   2006:AAAA::1/128 [0/0]
     via ::, Loopback0
C   2006:BBBB::/64 [0/0]
     via ::, Loopback1
L   2006:BBBB::1/128 [0/0]
     via ::, Loopback1
C   2007:CCCC::/64 [0/0]
     via ::, Serial1/0
L   2007:CCCC::1/128 [0/0]
     via ::, Serial1/0
S   2008:DDDD::/64 [1/0]
     via ::, Serial1/0
L   FE80::/10 [0/0]
     via ::, Null0

R2#show ipv6 route
IPv6 Routing Table - 7 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
S   ::/0 [1/0]
     via ::, Serial1/0
C   2007:CCCC::/64 [0/0]
     via ::, Serial1/0
L   2007:CCCC::2/128 [0/0]
     via ::, Serial1/0
C   2008:DDDD::/64 [0/0]
     via ::, Loopback0
L   2008:DDDD::2/128 [0/0]
     via ::, Loopback0
L   FE80::/10 [0/0]
     via ::, Null0
L   FF00::/8 [0/0]
     via ::, Null0
以上输出表明路由器R1 上有一条IPv6 的静态路由,R2 上有一条IPv6 的默认路由,IPv6中的默认路由是没有“*”的。

(3)ping
 R2#ping ipv6 2006:AAAA::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2006:AAAA::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/62/76 ms

实验17-2: IPv6 RIPng

Ø    实验目的
通过本实验可以掌握
(1)启用IPv6 流量转发
(2)向RIPng 网络注入默认路由
(3)    RIPng 配置和调试

Ø    拓扑结构

实验步骤
n    步骤1:配置路由器R1
R1(config)#ipv6 unicast-routing
R1(config)#ipv6 router rip cisco
R1(config-rtr)#split-horizon
R1(config-rtr)#poison-reverse
R1(config)#interface Serial1/0
R1(config-if)#ipv6 address 2007:12::1/64
R1(config-if)#ipv6 rip cisco enable
R1(config-if)#clockrate 128000
R1(config-if)#no shutdown
R1(config)#interface Serial1/1
R1(config-if)#ipv6 address 2007:13::1/64
R1(config-if)#ipv6 rip cisco enable
R1(config-if)#no shutdown

n     步骤2:配置路由器R2
R2(config)#ipv6 unicast-routing
R2(config)#ipv6 router rip cisco
R2(config-rtr)#split-horizon
R2(config-rtr)#poison-reverse
R2(config)#interface Serial1/0
R2(config-if)#ipv6 address 2007:12::2/64
R2(config-if)#ipv6 rip cisco enable
R2(config-if)#no shutdown
R2(config)#interface Serial1/1
R2(config-if)#ipv6 address 2007:24::2/64
R2(config-if)#ipv6 rip cisco enable
R2(config-if)#clock rate 128000
R2(config-if)#no shutdown

n     步骤3:配置路由器R3
    R3(config)#ipv6 unicast-routing
R3(config)#ipv6 router rip cisco
R3(config-rtr)#split-horizon
R3(config-rtr)#poison-reverse
R3(config)#interface Loopback0
R3(config-if)#ipv6 address 2008:3333::3/64
R3(config-if)#ipv6 rip cisco enable
R3(config)#interface Serial1/1
R3(config-if)#ipv6 address 2007:13::3/64
R3(config-if)#ipv6 rip cisco enable
R3(config-if)#no shutdown

n    步骤4:配置路由器R4
R4(config)#ipv6 unicast-routing
R4(config)#ipv6 router rip cisco //启动IPv6 RIPng 进程
R4(config-rtr)#split-horizon //启用水平分割
R4(config-rtr)#poison-reverse //启用毒化反转
R4(config)#interface Loopback0
R4(config-if)#ipv6 address 2008:4444::4/64
R4(config-if)#ipv6 rip cisco enable //在接口上启用RIPng
R4(config)#interface Serial1/1
R4(config-if)#ipv6 address 2007:24::4/64
R4(config-if)#ipv6 rip cisco enable
R4(config-if)#ipv6 rip cisco default-information originate
//向IPv6 RIPng 区域注入一条默认路由(::/0)
R4(config-if)#no shutdown
R4(config)#ipv6 route ::/0 Loopback0 //配置默认路由
【提示】
“ipv6 rip cisco default-information only ”命令也可以向IPv6 RIPng 区域注入
一条默认路由,但是该命令只从该接口发送默认的IPv6 路由,而该接口其它的IPv6 的RIPng路由都被抑制。

Ø    实验调试
(1)show ipv6 route
R2#show ipv6 route
IPv6 Routing Table - 10 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
R   ::/0 [120/2]
     via FE80::CE03:11FF:FE9C:0, Serial1/1
R   2006:3333::/64 [120/3]
     via FE80::CE00:11FF:FE9C:0, Serial1/0
C   2007:12::/64 [0/0]
     via ::, Serial1/0
L   2007:12::2/128 [0/0]
     via ::, Serial1/0
R   2007:13::/64 [120/2]
     via FE80::CE00:11FF:FE9C:0, Serial1/0
C   2007:24::/64 [0/0]
     via ::, Serial1/1
L   2007:24::2/128 [0/0]
     via ::, Serial1/1
R   2008:4444::/64 [120/2]
     via FE80::CE03:11FF:FE9C:0, Serial1/1
L   FE80::/10 [0/0]
     via ::, Null0
L   FF00::/8 [0/0]
     via ::, Null0
以上输出表明R4 确实向IPv6 RIPng 网络注入一条IPv6 的默认路由,同时收到3 条
IPv6 RIPng 路由条目,而且所有IPv6 RIPng 路由条目的下一跳地址均为邻居路由器接口的“link-local”地址。可以通过“show ipv6 rip next-hops”命令查看RIPng 的下一跳地址。
R2#show ipv6 rip next-hops
 RIP process "cisco", Next Hops
  FE80::CE00:11FF:FE9C:0/Serial1/0 [3 paths]
  FE80::CE03:11FF:FE9C:0/Serial1/1 [3 paths]

(2)show ip protocols
R2#show ipv6 protocols
IPv6 Routing Protocol is "connected"
IPv6 Routing Protocol is "static"
IPv6 Routing Protocol is "rip cisco"
  Interfaces:
    Serial1/1
    Serial1/0
  Redistribution:
None
以上输出表明启动的IPv6 RIPng 进程为cisco,同时在Serial1/1 和Serial1/0
接口上起用RIPng。
n     show ipv6 rip database
该命令用来查看RIPng 的数据库。
R2#show ipv6 rip database
RIP process "cisco", local RIB
 2006:3333::/64, metric 3, installed
     Serial1/0/FE80::CE00:11FF:FE9C:0, expires in 171 secs
 2007:12::/64, metric 2
     Serial1/0/FE80::CE00:11FF:FE9C:0, expires in 171 secs
 2007:13::/64, metric 2, installed
     Serial1/0/FE80::CE00:11FF:FE9C:0, expires in 171 secs
 2007:24::/64, metric 2
     Serial1/1/FE80::CE03:11FF:FE9C:0, expires in 167 secs
 2008:4444::/64, metric 2, installed
     Serial1/1/FE80::CE03:11FF:FE9C:0, expires in 167 secs
 ::/0, metric 2, installed
     Serial1/1/FE80::CE03:11FF:FE9C:0, expires in 167 secs
以上输出显示了R2 的RIPng 的数据库。
n       debug ipv6 rip
该命令用来动态查看RIPng 的更新。
R2#debug ipv6 rip
RIP Routing Protocol debugging is on
*Mar  1 01:00:47.251: RIPng: response received from FE80::CE03:11FF:FE9C:0 on Serial1/1 for cisco
*Mar  1 01:00:47.255:        src=FE80::CE03:11FF:FE9C:0 (Serial1/1)
*Mar  1 01:00:47.259:        dst=FF02::9
*Mar  1 01:00:47.259:        sport=521, dport=521, length=132
*Mar  1 01:00:47.263:        command=2, version=1, mbz=0, #rte=6
*Mar  1 01:00:47.263:        tag=0, metric=1, prefix=2008:4444::/64
*Mar  1 01:00:47.267:        tag=0, metric=1, prefix=2007:24::/64
*Mar  1 01:00:47.267:        tag=0, metric=16, prefix=2007:12::/64
*Mar  1 01:00:47.271:        tag=0, metric=16, prefix=2007:13::/64
*Mar  1 01:00:47.271:        tag=0, metric=16, prefix=2006:3333::/64
*Mar  1 01:00:47.275:        tag=0, metric=1, prefix=::/0
*Mar  1 01:00:50.455: RIPng: response received from FE80::CE00:11FF:FE9C:0 on Serial1/0 for cisco
*Mar  1 01:00:50.459:        src=FE80::CE00:11FF:FE9C:0 (Serial1/0)
*Mar  1 01:00:50.463:        dst=FF02::9
*Mar  1 01:00:50.463:        sport=521, dport=521, length=132
*Mar  1 01:00:50.467:        command=2, version=1, mbz=0, #rte=6
*Mar  1 01:00:50.467:        tag=0, metric=1, prefix=2007:12::/64
*Mar  1 01:00:50.471:        tag=0, metric=1, prefix=2007:13::/64
*Mar  1 01:00:50.471:        tag=0, metric=2, prefix=2006:3333::/64
*Mar  1 01:00:50.475:        tag=0, metric=16, prefix=2007:24::/64
*Mar  1 01:00:50.475:        tag=0, metric=16, prefix=2008:4444::/64
*Mar  1 01:00:50.479:        tag=0, metric=16, prefix=::/0
*Mar  1 01:00:53.435: RIPng: Sending multicast update on Serial1/1 for cisco
*Mar  1 01:00:53.439:        src=FE80::CE01:11FF:FE9C:0
*Mar  1 01:00:53.439:        dst=FF02::9 (Serial1/1)
*Mar  1 01:00:53.443:        sport=521, dport=521, length=132
*Mar  1 01:00:53.447:        command=2, version=1, mbz=0, #rte=6
*Mar  1 01:00:53.447:        tag=0, metric=1, prefix=2007:12::/64
*Mar  1 01:00:53.451:        tag=0, metric=1, prefix=2007:24::/64
*Mar  1 01:00:53.451:        tag=0, metric=2, prefix=2007:13::/64
*Mar  1 01:00:53.455:        tag=0, metric=3, prefix=2006:3333::/64
*Mar  1 01:00:53.455:        tag=0, metric=16, prefix=2008:4444::/64
*Mar  1 01:00:53.459:        tag=0, metric=16, prefix=::/0
*Mar  1 01:00:53.463: RIPng: Sending multicast update on Serial1/0 for cisco
*Mar  1 01:00:53.463:        src=FE80::CE01:11FF:FE9C:0
*Mar  1 01:00:53.467:        dst=FF02::9 (Serial1/0)
*Mar  1 01:00:53.467:        sport=521, dport=521, length=132
*Mar  1 01:00:53.471:        command=2, version=1, mbz=0, #rte=6
*Mar  1 01:00:53.471:        tag=0, metric=1, prefix=2007:12::/64
*Mar  1 01:00:53.475:        tag=0, metric=1, prefix=2007:24::/64
*Mar  1 01:00:53.475:        tag=0, metric=16, prefix=2007:13::/64
*Mar  1 01:00:53.479:        tag=0, metric=16, prefix=2006:3333::/64
*Mar  1 01:00:53.483:        tag=0, metric=2, prefix=2008:4444::/64
*Mar  1 01:00:53.483:        tag=0, metric=2, prefix=::/0
以上输出显示路由器R2 发送和接收RIPng 的信息

实验20:IPv6的更多相关文章

  1. CCIE路由实验(9) -- IPv6

    1.IPv6地址的各种情况2.配置通过DHCP-PD方式分配前缀信息3.IPv6路由基本配置4.IPv6路由--RIPng5.IPv6路由--EIGRPv66.IPv6路由--OSPFv37.IPv6 ...

  2. 【Python】【demo实验20】【练习实例】【寻找“完数”】

    原题: 一个数如果恰好等于它的因子之和,这个数就称为"完数".例如6=1+2+3.编程找出1000以内的所有完数. 我的代码: #!/usr/bin/python # encodi ...

  3. CCNA CCNP CCIE所有实验名称完整版

    实验1:通过Console端口访问Cisco路由器  实验2:通过Telnet访问Cisco路由器  实验3:配置终端服务器  实验4:通过浏览器访问路由器  实验5:模式切换.上下文帮助及查看有关信 ...

  4. IPv6原理、应用与实践

    欢迎大家前往腾讯云+社区,获取更多腾讯海量技术实践干货哦~ 作者:腾讯微信技术架构部团队 2017年11月26日,中共中央办公厅和国务院办公厅印发了<推荐互联网协议第六版(IPv6)规模部署行动 ...

  5. IPv6技术详解:基本概念、应用现状、技术实践(下篇)

    本文来自微信技术架构部的原创技术分享. 1.前言 在上篇<IPv6技术详解:基本概念.应用现状.技术实践(上篇)>,我们讲解了IPV6的基本概念. 本篇将继续从以下方面展开对IPV6的讲解 ...

  6. 20155223 实验5 MSF基础应用

    20155223 实验5 MSF基础应用 基础问题回答 用自己的话解释什么是exploit,payload,encode? exploit:漏洞攻击.一个exploit程序肯定会触发系统的一个或多个漏 ...

  7. 成都国嵌-嵌入式linux必修实验手册…

    emouse收集整理,转载请注明: emouse的技术专栏 博客园:http://www.cnblogs.com/emouse/ CSDN:http://blog.csdn.net/haozi_198 ...

  8. 【Beta】Scrum09

    Info 考试周,暂停工作 时间:2016.12.26 21:35 时长:20min 地点:大运村1号公寓5楼楼道 类型:日常Scrum会议 NXT:2016.12.31 21:30 Task Rep ...

  9. 七天学会ASP.NET MVC (四)——用户授权认证问题

    小编应各位的要求,快马加鞭,马不停蹄的终于:七天学会 Asp.Net MVC 第四篇出炉,在第四天的学习中,我们主要了学习如何在MVC中如何实现认证授权等问题,本节主要讲了验证错误时的错误值,客户端验 ...

随机推荐

  1. selenium自动化测试入门 定位frame和iframe中的元素对象

    < frame> <iframe> 标签,浏览器会在标签中打开一个特定的页面窗口(框架),它在本窗口中嵌套进入一个网页,当用selenium定位页面元素的时候会遇到定位不到fr ...

  2. 「2018-12-02模拟赛」T1 最短路 解题报告

    1.最短路(short.pas/cpp/in/out) 问题描述: 小 C 终于被小 X 感动了,于是决定与他看电影,然而小 X 距离电影院非常远,现在假设 每条道路需要花费小 X 的时间为 1,由于 ...

  3. 1033 旧键盘打字 (20 分)C语言

    题目描述 旧键盘上坏了几个键,于是在敲一段文字的时候,对应的字符就不会出现.现在给出应该输入的一段文字.以及坏掉的那些键,打出的结果文字会是怎样? 输入描述: 输入在2行中分别给出坏掉的那些键.以及应 ...

  4. kafka sasl/plain安全认证

    1.SASL认证机制版本支持 SASL/GSSAPI (Kerberos) - starting at version 0.9.0.0SASL/PLAIN - starting at version ...

  5. spring boot事务管理

    spring boot集成事务十分的简单,只需要在启动类上面增加@EnableTransactionManagement注解,然后在需要实现事务的方法上添加@Transactional注解就可以了.下 ...

  6. Docker系列-第五篇Docker容器数据卷

    1.是什么 在生产环境中使用 Docker,往往需要对数据进行持久化,或者需要在多个容器之间进行数据共享,这必然涉及容器的数据管理操作 . 容器中的管理数据主要有两种方式 : 数据卷 ( Data V ...

  7. 【JavaScript学习笔记】函数、数组、日期

    一.函数 一个函数应该只返回一种类型的值. 函数中有一个默认的数组变量arguments,存储着传入函数的所有参数. 为了使用函数参数方便,建议给参数起个名字. function fun1(obj, ...

  8. C++中全排列函数next_permutation 用法

    今天蓝桥杯刷题时发现一道字符串排序问题,突然想起next_permutation()函数和prev_permutation()函数. 就想写下next_permutation()的用法 next_pe ...

  9. 【LC_Lesson2】---整数反转练习

    题目描述: 给出一个 32 位的有符号整数,你需要将这个整数中每位上的数字进行反转. 示例 1: 输入: 123 输出: 321 示例 2: 输入: -123 输出: -321 示例 3: 输入: 1 ...

  10. Java 几道常见String面试题

    String s1="abc"; String s2="abc"; System.out.println(s1==s2); System.out.println ...