实验目的

1.  掌握 OSPFv3 的配置方法

2.  掌握在帧中继环境下 OSPFv3 的配置方法

3.  掌握 OSPFv3 NSSA 的配置方法

4.  掌握外部路由汇总的配置

5.  掌握区域间路由的汇总配置

IPv4地址表

Device

Interface

IP Address

R1

F 0/0

10.1.88.1

e 1/0

11.1.88.1

R5

S 3/0

192.168.88.5

R6

S 3/0

192.168.88.6

R3

F 0/0

10.1.88.3

S 3/0

192.168.88.3

R2

F 0/0

10.1.88.2

S 3/0

12.1.88.2

R7

e 1/0

11.1.88.7

S 3/0

12.1.88.7

第一步:开启R4的帧中继交换功能

R4(config)#frame-relay switching

第二步:配置接口的封装

R4(config)#int s3/0

R4(config-if)#no shutdown

R4(config-if)#clock rate 128000

R4(config-if)#encapsulation frame-relay

R4(config)#int s3/1

R4(config-if)#no shutdown

R4(config-if)#clock rate 128000

R4(config-if)#encapsulation frame-relay

R4(config)#int s3/2

R4(config-if)#no shutdown

R4(config-if)#clock rate 128000

R4(config-if)#encapsulation frame-relay

第三步:配置LMI类型

R4(config)#int s3/0

R4(config-if)#frame-relay lmi-type cisco

R4(config-if)#frame-relay intf-type dce

R4(config)#int s3/1

R4(config-if)#frame-relay lmi-type cisco

R4(config-if)#frame-relay intf-type dce

R4(config)#int s3/2

R4(config-if)#frame-relay lmi-type cisco

R4(config-if)#frame-relay intf-type dce

第四步:配置帧中继交换表

R4(config)#int s3/0

R4(config-if)#frame-relay route 103 interface s3/1 301

R4(config-if)#frame-relay route 104 interface s3/2 401

R4(config)#int s3/1

R4(config-if)#frame-relay route 301 interface Serial3/0 103

R4(config)#int s3/2

R4(config-if)#frame-relay route 401 interface Serial3/0 104

用show frame-relay route命令查看帧中继交换机是否正常

第五步:配置R3、R5、R6,使得他们能够互相通信

R3(config)#int s3/0

R3(config-if)#ip address 192.168.88.3 255.255.255.0

R3(config-if)#no shutdown

R3(config-if)#encapsulation frame-relay

R3(config-if)#frame-relay lmi-type cisco

R3(config-if)#no frame-relay inverse-arp     //关闭自动映射

R3(config-if)#frame-relay map ip 192.168.88.5 103 broadcast

R3(config-if)#frame-relay map ip 192.168.88.6 104 broadcast

R5(config)#int s3/0

R5(config-if)#ip address 192.168.88.5 255.255.255.0

R5(config-if)#no shutdown

R5(config-if)#encapsulation frame-relay

R5(config-if)#no frame-relay inverse-arp

R5(config-if)#frame-relay map ip 192.168.88.3 301 broadcast

R6(config)#int s3/0

R6(config-if)#ip address 192.168.88.6 255.255.255.0

R6(config-if)#no shutdown

R6(config-if)#encapsulation frame-relay

R6(config-if)#no frame-relay inverse-arp

R6(config-if)#frame-relay map ip 192.168.88.3 401 broadcast

Ping命令测试

查看R3的帧中继表

第六步:开始配置OSPF

先配置外部路由器(R1、R3为例,R2、R7同理)

R1(config)#router ospf 1

R1(config-router)#router-id 1.1.1.1

R1(config-router)#area 1 nssa――配置区域 1 为 NSSA 区域

R1(config)#interface loopback 0

R1(config-if)#ip add 1.1.1.1 255.255.255.255

R1(config)#int f 0/0

R1(config-if)#ip add 10.1.88.1 255.255.255.0

R1(config-if)#no shutdown

R1(config-if)#ip ospf 1 area 0

R1(config-if)#int e1/0

R1(config-if)#ip add 11.1.88.1 255.255.255.0

R1(config-if)#no shut

R1(config-if)#ip ospf 1 area 1

R1(config-if)#ex

R1(config)#router ospf 1

R1(config-router)#network 1.1.1.1 0.0.0.0 area 0

R1(config-router)#network 10.1.88.1 0.0.0.255 area 0

R1(config-router)#network 11.1.88.1 0.0.0.255 area 1

R3(config)#router ospf 1

R3(config-router)#router-id 3.3.3.3

R3(config)#interface loopback 0

R3(config-if)#ip add 3.3.3.3 255.255.255.255

R3(config)#int f0/0

R3(config-if)#ip add 10.1.88.3 255.255.255.0

R3(config-if)#no shut

R3(config-if)#ip ospf 1 area 0

R3(config-if)#int s3/0

R3(config-if)#ip ospf 1 area 2

R3(config-if)#ex

R3(config)#router ospf 1

R3(config-router)#network 3.3.3.3 0.0.0.0 area 0

R3(config-router)#network 10.1.88.0 0.0.0.255 area 0

R3(config-router)#network 192.168.88.0 0.0.0.255 area 2

R3(config-router)#neighbor 192.168.88.5

R3(config-router)#neighbor 192.168.88.6

第七步:配置帧中继中路由器的ospf(R5为例,R6同理)

R5(config)#router ospf 1

R5(config-router)#router-id 5.5.5.5

R5(config-router)#ex

R5(config)#int loopback 0

R5(config-if)#ip add 5.5.5.5 255.255.255.255

R5(config-if)#ip ospf 1 area 2

R5(config-if)#int s3/0

R5(config-if)# ip ospf 1 area 2

R5(config-if)# ip ospf priority 0

R5(config)#router ospf 1

R5(config-router)#network 5.5.5.5 0.0.0.0 area 2

R5(config-router)#network 192.168.88.0 0.0.0.255 area 2

在R3上查看ospf邻居关系

Show ip ospf neighbor

测试路由通路情况

在R2上测试得出结果如下(从内部到外部结课ping通,完成实验要求)

由于RIPNG是对IPV6的设及的一种路由协议,不支持IPV4,所以在这没有做相关配置

Ospfv3配置

拓扑图

Device

Interface

IPv6 Address

R3

F 0/0

2123::88:3/64

S 3/0.1

2356::88:3/64

Loopback 0

2011::1/128

R5

S 3/0.1

2356::88:5/64

Loopback 0

2033::1/128

R6

S 3/0.1

2356::88:6/64

Loopback 0

2044::1/128

R2

F 0/0

2123::88:2/64

S 3/0

2027::88:2/64:

Loopback 0

2055::1/128

R1

F 0/0

2123::88:1/64

Loopback 0

2066::1/128

Loopback 1

2166::1/128

R7

S 3/0

2027::88:7/64:

Loopback 0

2088::1/128

帧中继R4配置与ospfv2相同

第一步:完成接口IPV6地址的配置,切记不要忘了配置loopback0

R3(config)#ipv6 unicast-routing   ―――全局打开 IPv6 路由功能

R3config)#interface loopback 0

R3(config-if)#ipv6 enable

R3(config-if)#ipv6 address 2011::1/128―――配置 loopback0 接口地址

R3(config-if)#int f 0/0

R3(config-if)#ipv6 enable

R3(config-if)# ipv6 address 2123::88:3/64

R3(config-if)#no shut

R3(config-if)#int s 3/0

R3(config-if)#ipv6 enable

R3(config-if)# encapsulation frame-relay

R3(config-if)#no shut

R3(config)#interface serial 3/0.1 multipoint

R3(config-subif)#ipv6 address 2356::88:3/64

R3(config-subif)#frame-relay map ipv6 2356::88:5 103 broadcast

R3(config-subif)#frame-relay map ipv6 2356::88:6 104 broadcast

R3(config-subif)#frame-relay map ipv6 2356::88:3 104 broadcast

R3(config-subif)#frame-relay map ipv6 FE80::C804:1CFF:FE48:8 104 broadcast

R3(config-subif)#frame-relay map ipv6 FE80::C803:1CFF:FE48:8 103 broadcast

R5(config)#ipv6 unicast-routing

R5(config)#interface loopback 0

R5(config-if)#ipv6 address 2033::1/128

R5(config-if)#int s 3/0

R5(config-if)#ipv6 enable

R5(config-if)# encapsulation frame-relay

R5(config-if)#no shutdown

R5(config)#interface serial 3/0.1 multipoint

R5(config-subif)#ipv6 address 2356::88:5/64

R5(config-subif)#frame-relay map ipv6 2356::88:3 301 broadcast

R5(config-subif)#frame-relay map ipv6 2356::88:6 301 broadcast

R5(config-subif)#frame-relay map ipv6 2356::88:5 301 broadcast

R5(config-subif)#frame-relay map ipv6 FE80::C804:1CFF:FE48:8 304 broadcast

R5(config-subif)#frame-relay map ipv6 FE80::C801:1CFF:FE48:8 301 broadcast

R6(config)#ipv6 unicast-routing

R6(config)#interface loopback 0

R6(config-if)#ipv6 address 2044::1/128

R6(config-if)#int s 3/0

R6(config-if)#ipv6 enable

R6(config-if)# encapsulation frame-relay

R6(config-if)#no shutdown

R6(config)#interface serial 3/0.1 multipoint

R6(config-subif)#ipv6 address 2356::88:6/64

R6(config-subif)#frame-relay map ipv6 2356::88:3 401 broadcast

R6(config-subif)#frame-relay map ipv6 2356::88:6 401 broadcast

R6(config-subif)#frame-relay map ipv6 2356::88:5 401 broadcast

R6(config-subif)#frame-relay map ipv6 FE80::C803:1CFF:FE48:8 403 broadcast

R6(config-subif)#frame-relay map ipv6 FE80::C801:1CFF:FE48:8 401 broadcast

R3上pingR5 56

第二步:按实验拓扑的区域,完成ospfv3配置区域1为nssa区域

R1(config)#ipv6 unicast-routing

R1(config)#ipv6 router ospf 1―――启动 OSPFv3 进程

R1(config-rtr)#router-id 1.1.1.1

R1(config-rtr)#area 1 nssa――配置区域 1 为 NSSA 区域

R1(config-rtr)#int f 0/0

R1(config-if)#ipv6 enable

R1(config-if)# ipv6 ospf 1 area 0

R1(config-if)#no shutdown

R1(config-if)#int loopback 0

R1(config-if)#ipv6 enable

R1(config-if)#ipv6 address 2066::1/128

R1(config-if)# ipv6 ospf 1 area 0

R1(config-if)#int e1/0

R1(config-if)#ipv6 enable

R1(config-if)# ipv6 ospf 1 area 1

R1(config-if)#no shutdown

R2(config)#ipv6 unicast-routing

R2(config)#ipv6 router ospf 1―――启动 OSPFv3 进程

R2(config-rtr)#router-id 2.2.2.2

R2(config-rtr)#area 1 nssa――配置区域 1 为 NSSA 区域

R2(config-rtr)#int f 0/0

R2(config-if)#ipv6 enable

R2(config-if)# ipv6 ospf 1 area 0

R2(config-if)#no shutdown

R2(config-if)#int loopback 0

R2(config-if)#ipv6 enable

R2(config-if)#ipv6 address 2055::1/128

R2(config-if)# ipv6 ospf 1 area 0

R2(config-if)#int s 3/0

R2(config-if)#ipv6 enable

R2(config-if)# ipv6 ospf 1 area 1

R2(config-if)#no shutdown

R3(config)#ipv6 unicast-routing

R3(config)#ipv6 router ospf 1―――启动 OSPFv3 进程

R3(config-rtr)#router-id 3.3.3.3

R3(config-rtr)#int f 0/0

R3(config-if)#ipv6 enable

R3(config-if)# ipv6 ospf 1 area 0

R3(config-if)#no shutdown

R3(config-if)#int loopback 0

R3(config-if)#ipv6 enable

R3(config-if)#ipv6 address 2011::1/128

R3(config-if)# ipv6 ospf 1 area 0

R3(config-if)#int s 3/0.1

R3(config-subif)#ipv6 enable

R3(config-subif)# ipv6 ospf 1 area 2

R3(config-subif)#ipv6 ospf neighbor FE80::C803:1CFF:FE48:8

R3(config-subif)#ipv6 ospf neighbor FE80::C804:1CFF:FE48:8

R3(config-subif)# ipv6 address FE80::C801:1CFF:FE48:8 link-local

R5(config)#ipv6 router ospf 1

R5(config-rtr)#router-id 5.5.5.5

R5(config-rtr)#int loopback 0

R5(config-if)#ipv6 enable

R5(config-if)#ipv6 address 2033::1/128

R5(config-if)# ipv6 ospf 1 area 2

R5(config-if)#int s 3/0.1

R5(config-subif)#ipv6 enable

R5(config-subif)# ipv6 ospf 1 area 2

R5(config-subif)# ipv6 ospf priority 0

R5(config-subif)# ipv6 address FE80::C803:1CFF:FE48:8 link-local

R6(config)#ipv6 router ospf 1

R6(config-rtr)#router-id 6.6.6.6

R6(config-rtr)#int loopback 0

R6(config-if)#ipv6 enable

R6(config-if)#ipv6 address 2044::1/128

R6(config-if)# ipv6 ospf 1 area 2

R6(config-if)#int s 3/0.1

R6(config-subif)#ipv6 enable

R6(config-subif)# ipv6 ospf 1 area 2

R6(config-subif)# ipv6 ospf priority 0

R6(config-subif)# ipv6 address FE80::C804:1CFF:FE48:8 link-local

R7(config)#ipv6 unicast-routing

R7(config)#ipv6 router ospf 1―――启动 OSPFv3 进程

R7(config-rtr)#router-id 7.7.7.7

R7(config-rtr)#area 1 nssa――配置区域 1 为 NSSA 区域

R7(config-rtr)#int s 3/0

R7(config-if)#ipv6 enable

R7(config-if)# ipv6 ospf 1 area 1

R7(config-if)#no shutdown

R7(config-if)#int loopback 0

R7(config-if)#ipv6 enable

R7(config-if)#ipv6 address 2088::1/128

R7(config-if)# ipv6 ospf 1 area 1

R7(config-if)#int e1/0

R7(config-if)#ipv6 enable

R7(config-if)# ipv6 ospf 1 area 1

R7(config-if)#no shutdown

第三步:检查ospfv3的邻居关系

测试ping

引入外部路由类型5和外部路由类型7

在R1上新增加一个loopback1接口,地址为2166::1/128,然后重分布进入OSPFv3

R1(config)#interface loopback 1

R1(config-if)#ipv6 address 2166::1/128

R1(config-if)#exit

R1(config)#ipv6 router ospf 1

R1(config-rtr)#redistribute connected

配置 R7 和 R8 的 RIPng,然后重分布 RIPng 到 OSPFv3

R8(config)#ipv6 router rip yeslab

R8(config-rtr)#exit

R8(config)#interface fastEthernet 0/0

R8(config-if)#ipv6 rip yeslab enable

R8(config-if)#exit

R7(config)#ipv6 router rip yeslab

R7(config-rtr)#exit

R7(config)#interface fastEthernet 0/0

R7(config-if)#ipv6 rip yeslab enable

R7(config-if)#exit

R7(config)#ipv6 router ospf 1

R7(config-rtr)#redistribute rip yeslab     重分布 RIPng 到 OSPFv3

R7(config-rtr)#redistribute connected       重分布直连

总结

本次的作业较难,花费了较长的时间才做出来。主要的点在于帧中继的规则和OSPF的区域划分。不懂的问题也向同学请教了,大家一起互帮互助解决问题共同进步。

OSFPv3的配置的更多相关文章

  1. 配置android sdk 环境

    1:下载adnroid sdk安装包 官方下载地址无法打开,没有vpn,使用下面这个地址下载,地址:http://www.android-studio.org/

  2. Android Studio配置 AndroidAnnotations——Hi_博客 Android App 开发笔记

    以前用Eclicps 用习惯了现在 想学学 用Android Studio 两天的钻研终于 在我电脑上装了一个Android Studio 并完成了AndroidAnnotations 的配置. An ...

  3. react-router 组件式配置与对象式配置小区别

    1. react-router 对象式配置 和 组件式配置    组件式配置(Redirect) ----对应---- 对象式配置(onEnter钩子) IndexRedirect -----对应-- ...

  4. 总结:Mac前端开发环境的搭建(配置)

    新年新气象,在2016年的第一天,我入手了人生中第一台自己的电脑(大一时好友赠送的电脑在一次无意中烧坏了主板,此后便不断借用别人的或者网站的).macbook air,身上已无分文...接下来半年的房 ...

  5. Android Studio 多个编译环境配置 多渠道打包 APK输出配置

    看完这篇你学到什么: 熟悉gradle的构建配置 熟悉代码构建环境的目录结构,你知道的不仅仅是只有src/main 开发.生成环境等等环境可以任意切换打包 多渠道打包 APK输出文件配置 需求 一般我 ...

  6. Virtual Box配置CentOS7网络(图文教程)

    之前很多次安装CentOS7虚拟机,每次配置网络在网上找教程,今天总结一下,全图文配置,方便以后查看. Virtual Box可选的网络接入方式包括: NAT 网络地址转换模式(NAT,Network ...

  7. [linux]阿里云主机的免登陆安全SSH配置与思考

    公司服务器使用的第三方云端服务,即阿里云,而本地需要经常去登录到服务器做相应的配置工作,鉴于此,每次登录都要使用密码是比较烦躁的,本着极速思想,我们需要配置我们的免登陆. 一 理论概述 SSH介绍 S ...

  8. nginx配置反向代理或跳转出现400问题处理记录

    午休完上班后,同事说测试站点访问接口出现400 Bad Request  Request Header Or Cookie Too Large提示,心想还好是测试服务器出现问题,影响不大,不过也赶紧上 ...

  9. Swift3.0服务端开发(一) 完整示例概述及Perfect环境搭建与配置(服务端+iOS端)

    本篇博客算是一个开头,接下来会持续更新使用Swift3.0开发服务端相关的博客.当然,我们使用目前使用Swift开发服务端较为成熟的框架Perfect来实现.Perfect框架是加拿大一个创业团队开发 ...

随机推荐

  1. nginx实践(五)之代理服务(正向代理与反向代理介绍)

    正向代理 正向代理代理是为客户端服务,代理负责DNS解析域名到对应ip,并进行访问服务端,返回响应给客户端 反向代理 客户端自己负责请求DNS解析域名到对应ip,服务端通过代理分发流量,进行负载均衡 ...

  2. Redis持久化概念

    redis持久化概念 Author:SimpleWu GitHub-redis 什么是持久化? 概念:把内存的数据保存在磁盘的过程. Redis的持久化? redis是内存数据库,它把数据存储在内存中 ...

  3. Python基础之关于表达式

    初识表达式: 优雅.清晰和务实是python的核心价值观,如果想通过操作和处理一个序列(或其他的可迭代对象)来创建一个新 的列表时可以使用列表解析(List comprehensions)和生成表达式 ...

  4. java Swing组件和事件处理

    1.常见的容器 JComponent是 Container 的子类,中间容器必须添加到底层容器中才能够发挥作用, JPanel 面板 :使用jPanel 创建一个面板,再通过添加组件到该面板上面,JP ...

  5. lightoj1336 约数和

    /*sigma(n)的每一项都可以看成是个pi的[0,ei]等比数列求和公式,那么sigma(n)就是n所有正约数的和要求找到sigma(x)为奇数的个数1<=x<=n */ 看题解的.. ...

  6. mysql下载源码方法

    方法一 进入mysql官网:http://dev.mysql.com/downloads/mysql/ 选择相关的平台下载: 3.选择Source Code 选型后,拉倒网页下方,选择要下载的源码包 ...

  7. 修改jenkins发布账号信息

  8. Jmeter测试demo

    复制代码,保存为.jmx文件 需要安装插件: JMeterPlugins-ExtrasLibs E:\软件\apache-jmeter-3.0\lib\ext <?xml version=&qu ...

  9. 51 Nod 1240 莫比乌斯函数

    1240 莫比乌斯函数  基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题  收藏  关注 莫比乌斯函数,由德国数学家和天文学家莫比乌斯提出.梅滕斯(Mertens)首先使 ...

  10. HDU5950 Recursive sequence (矩阵快速幂)

    Recursive sequence Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Other ...