OSFPv3的配置
实验目的
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的配置的更多相关文章
- 配置android sdk 环境
1:下载adnroid sdk安装包 官方下载地址无法打开,没有vpn,使用下面这个地址下载,地址:http://www.android-studio.org/
- Android Studio配置 AndroidAnnotations——Hi_博客 Android App 开发笔记
以前用Eclicps 用习惯了现在 想学学 用Android Studio 两天的钻研终于 在我电脑上装了一个Android Studio 并完成了AndroidAnnotations 的配置. An ...
- react-router 组件式配置与对象式配置小区别
1. react-router 对象式配置 和 组件式配置 组件式配置(Redirect) ----对应---- 对象式配置(onEnter钩子) IndexRedirect -----对应-- ...
- 总结:Mac前端开发环境的搭建(配置)
新年新气象,在2016年的第一天,我入手了人生中第一台自己的电脑(大一时好友赠送的电脑在一次无意中烧坏了主板,此后便不断借用别人的或者网站的).macbook air,身上已无分文...接下来半年的房 ...
- Android Studio 多个编译环境配置 多渠道打包 APK输出配置
看完这篇你学到什么: 熟悉gradle的构建配置 熟悉代码构建环境的目录结构,你知道的不仅仅是只有src/main 开发.生成环境等等环境可以任意切换打包 多渠道打包 APK输出文件配置 需求 一般我 ...
- Virtual Box配置CentOS7网络(图文教程)
之前很多次安装CentOS7虚拟机,每次配置网络在网上找教程,今天总结一下,全图文配置,方便以后查看. Virtual Box可选的网络接入方式包括: NAT 网络地址转换模式(NAT,Network ...
- [linux]阿里云主机的免登陆安全SSH配置与思考
公司服务器使用的第三方云端服务,即阿里云,而本地需要经常去登录到服务器做相应的配置工作,鉴于此,每次登录都要使用密码是比较烦躁的,本着极速思想,我们需要配置我们的免登陆. 一 理论概述 SSH介绍 S ...
- nginx配置反向代理或跳转出现400问题处理记录
午休完上班后,同事说测试站点访问接口出现400 Bad Request Request Header Or Cookie Too Large提示,心想还好是测试服务器出现问题,影响不大,不过也赶紧上 ...
- Swift3.0服务端开发(一) 完整示例概述及Perfect环境搭建与配置(服务端+iOS端)
本篇博客算是一个开头,接下来会持续更新使用Swift3.0开发服务端相关的博客.当然,我们使用目前使用Swift开发服务端较为成熟的框架Perfect来实现.Perfect框架是加拿大一个创业团队开发 ...
随机推荐
- Confluence 6 订阅所应用的所有小工具
你可以从你的 Jira, Bamboo,FishEye 或 Crucible 站点中订阅所有的小工具到你的 Confluence 小工具目录中.用户可以为他们的页面查找和选择小工具. 希望订阅其他站点 ...
- Confluence 6 修改站点图标(favicon)
你也可以修改你站点的图标(这个站点图标将会在你浏览器的标签页上显示).你需要 Confluence 的管理员权限才能进行修改. 进入 > 基本配置(General Configuration) ...
- 编辑后保留原URl搜索条件
首先需要知道的一个知识点: 1.request.GET是一个QueryDict类型的,要想取出?后面的结构就用request.GET.urlencode() 2.request.GET默认是不可修改的 ...
- 【python】gevent协程例子
说在前面:用协程还是多线程需要仔细考量.我在做实验时请求了100w个ip,分别用pool为1000的协程和64个线程来跑,结果是多线程的速度是协程的10倍以上. 一个简单的协程例子 #!/usr/bi ...
- Python基础之关于表达式
初识表达式: 优雅.清晰和务实是python的核心价值观,如果想通过操作和处理一个序列(或其他的可迭代对象)来创建一个新 的列表时可以使用列表解析(List comprehensions)和生成表达式 ...
- exgcd求解同余方程的最小正整数解 poj1061 poj2115
这两题都是求解同余方程,并要求出最小正整数解的 对于给定的Ax=B(mod C) 要求x的最小正整数解 首先这个式子可转化为 Ax+Cy=B,那么先用exgcd求出Ax+Cy=gcd(A,C)的解x ...
- 性能测试五十:Jmeter+Influxdb+Grafana实时数据展示系统搭建
如果用生成jtl文件再分析结果的方式的话,每一次请求就会往jtl里面写一条数据,在进行长时间的稳定性测试的时候,特别是当TPS很高的时候,写入的数据会非常的大,这个时候等稳定性测试完成,再对jtl进行 ...
- JMeter 中跨线程组 变量值传递的方法
关于jmeter中跨线程组 变量值传递的方法 找了好久,终于找到方法了,赶紧整理下来. 1.在线程组1 中使用__setProperty函数设置jmeter属性值(此值为全局变量值), ...
- Git 将本地库添加到远程仓库
git remote add origin ssh://admin@127.0.0.1:29418/Prjs/prj1.git git push -u origin master
- Spring Boot JPA的Column Table 注解命名字段无效
@Table(name = "OrderInfo") @Entity public class OrderInfo { @Id @GeneratedValue private Lo ...