IP 通信基础实验报告 实验一
OSPF 认证实验
一、
实验目的
1、 掌握在 GAR 路由器上配置 OSPF 所需的基本命令; 2、 理解和巩固 OSPF 的基本原理; 二、
实验内容(仿真程序‘ ospf area authentication without MDpkt ’和‘ ospf with MDpkt ’)
1、 OSPF 明文加密 2、 OSPF MD5 加密 三、
实验设备
路由器
2 台 PC 机
2 台 交叉网线
3 条 四、
实验拓扑图
五、
配置步骤
1 1 、5 MD5 加密
RT1==================================
Router>en
Router#conf t
Enter configuration commands, one per line.
End with CNTL/Z.
Router(config)#ho RT1
RT1(config)#int loopback1
%LINK- -5 5- - CHANGED: Interface Loopback1, changed state to up
%LINEPROTO- -5 5- - UPDOWN: Line proto col on Interface Loopback1, changed state to up
RT1(config- - if)#no shutdown
RT1(config- - if)#ip add 1 252525255
RT1(config- - if)#exit
RT1(config)#interface fastEthernet 1/
RT1(config- - if)#no shutdown
%LINK- -5 5- - CHANGED: Interface FastEthernet1/, ch anged state to up
RT1(config- - if)#ip add 19161.254 252525
RT1(config- - if)#ex
RT1(config)#
RT1(config)#interface fastEthernet /
RT1(config- - if)#no shutdown
%LINK- -5 5- - CHANGED: Interface FastEthernet/, changed state to up
RT1(config- - if)#ip add 1 .1 252525
RT1(config- - if)#ex
RT1(config)#router ospf 11
RT1(config)#router- - id 1
RT1(config- - router)#network 1 ... area
RT1(config- - router)#network 1. ...255 area
RT1(config- - router)#network 19161. ...255 area
RT1(config- - router)#area authentication message- - digest
// 不同之处
RT1(config- - router)#exit
RT1(config)#interface fastEthernet /
RT1(config- - if)#ip ospf authentication
RT1(config- - if)#ip ospf message- - digest- - key 1 md5 ZTE11
RT1(config- - if)#exit
2 2 、明文加密
R R T1
Router>enable
Router#conf t
Enter configuration commands, one per line.
End with CNTL/Z.
Router(config)#hostname RT1
RT1(config)#interface loopback1
RT1(config- - if)#no shutdown
RT1(config- - if)#ip address 1 252525255
RT1(config- - if)#exit
RT1(c onfig)#interface fastEthernet 1/
RT1(config- - if)#no shutdown
RT1(config- - if)#ip add 19161.254 252525
RT1(config- - if)#exit
RT1(config)#router ospf 11
RT2(config- - router)#router- - id 1
RT1(config- - router)#network 1. ...255 area
RT1(co nfig- - router)#network 1 ... area
RT1(config- - router)#network 19161. ...255 area
RT1(config- - router)#area authentication
RT1(config- - router)#exit
RT1(config)#interface fastEthernet /
RT1(config- - if)#no shutdown
RT1(config- - if)#ip addres s 1.1 252525
RT1(config- - if)#ip ospf authentication
RT1(config- - if)#ip ospf authentication- - key zxr1
RT1(config- - if)#exit
=========================================================
RT2
Router>enable
Router#conf t
Enter configuration commands, on e per line.
End with CNTL/Z.
Router(config)#hostname RT2
RT2(config)#interface loopback1
RT2(config- - if)#no shutdown
RT2(config- - if)#ip address 2 252525255
RT2(config- - if)#exit
RT1(config)#interface fastEthernet 1/
RT1(config- - if)#no shutdown
RT1 (config- - if)#ip address 19162.254 252525
RT1(config- - if)#exit
RT1(config)#
RT2(config)#router ospf 11
RT2(config- - router)#router- - id 2
RT2(config- - router)#network 2 ... area
RT2(config- - router)#network 1. ...255 area
RT2 (config- - router)#network 19162. ...255 area
RT2(config- - router)#area authentication
RT2(config- - router)#redistribute connected
\ \\ \ 这一句可有可无
RT2(config- - router)#exit
RT2(config)#interface fastEthernet /
RT2(config- - if)#no shutdown
RT2(config- - if)#ip
address 1.2 252525
RT2(config- - if)#ip ospf authentication
RT2(config- - if)#ip ospf authentication- - key zxr1
RT2(config- - if)#exit
六、
验证方法及验证结果
明文认证
Router(config)#do show ip ospf neig
验证结果如下
5 MD5 认证
Router(config)#do show ip ospf neig
验证结果如下
七、
实验结论
GAR 支持 OSPF 明文和 MD5 加密认证
相关热词搜索: 实验报告 实验 认证 通信 2020年IP通信实验报告——OSPF 认证实验版权所有:演说范文网 2010-2024 未经授权禁止复制或建立镜像[演说范文网]所有资源完全免费共享
Powered by 演说范文网 © All Rights Reserved.。京ICP备20027742号