实验二 帧中继协议配置

实验二 帧中继协议配置


一、实验目的

  1. 掌握路由器上配置帧中继协议的方法

  2. 掌握在帧中继交换机上配置 永久性虚电路(PVC,Permanent Virtual Circuit)的方法


二、实验内容

  1. 根据实验要求正确连接网络

  2. 正确配置网络中所有设备的 IP 信息

  3. 正确路由器端帧中继协议的相关参数

  4. 正确配置帧中继交换机并创建 PVC


三、实验条件

  1. Cisco Packet Tracer网络模拟环境

四、实验步骤

4.1 连接帧中继交换网

▶ \blacktriangleright 添加广域网模拟网络(WAN Emulation)

  1. 模拟广域网
    通过四个串行口进行串行帧中继协议
    在这里插入图片描述

▶ \blacktriangleright 添加四个路由器

  1. 添加串行口
    ∙ \bullet 关闭设备
    ∙ \bullet 添加串行口WIC-2T
    在这里插入图片描述

▶ \blacktriangleright 选择串行线连接路由器和帧中继交换机

  1. 连接 FR 交换网构造成如图的拓扑,注意DTE/DCE 的选择。在这里插入图片描述
  2. DTE与DCE
    ∙ \bullet DTE(Data Terminal Equipment)
    数字终端设备,指一般的终端或是计算机。可能是大、中、小型计算机,也可能是一台只接收数据的打印机。
    ∙ \bullet DCE( Data Circuit-terminating Equipment)
    数字通信设备,通常指调制解调器,多路复用器或数字设备。
  3. Serial DCE与 Serial DTE
    Serial DCE:提供时钟,需要先连接DC设备
    Serial DTE:不提供时钟,需要先连接DT设备

4.2 创建DLCI

▶ \blacktriangleright 在模拟广域网中创建数据链路连接标识(Data Link Connection Identifier)

  1. 定义:
    ∙ \bullet 帧中继协议是一种统计复用的协议,它在单一物理传输线路上能够提供多条虚电路。每条虚电路都是用DLCI(Data Link Connection Identifier)来标识。
    ∙ \bullet 即:为每一路虚电路创建DLCI
    使得Router0的用户必须通过不同时隙连接不同路由器
  2. 为每一个Serial接口添加三个DLCI
    ∙ \bullet 即:为每一个路由器添加三个时隙
    ∙ \bullet 不同Serial接口对于同一个路由器的的DLCI是不同的
    ∙ \bullet 用:
    30->Router0
    31->Router1
    32->Router2
    33->Router3
    在这里插入图片描述

4.3 创建串行接口间的虚电路映射关系

▶ \blacktriangleright 建立串行接口间的虚电路映射

  1. 为什么需要映射
    ∙ \bullet 上一步完成了每一个接口分配了相应的时隙,但我们还需要在广域网上做交换,所以还需要接口间的映射关系。
    ∙ \bullet 例:假设Router0与Router3通信
    用S0口的33DLCI与S3口的30DLCI,所以需要一个映射
  2. 建立映射Frame Relay:
    4个串行接口,组成6个映射关系
    在这里插入图片描述

4.4 配置路由器的串行接口

▶ \blacktriangleright 配置4个路由器的串行接口

  1. 进入接口配置模式
    ∙ \bullet 选择接口 interface se0/3/0
    在这里插入图片描述
  2. 封装接口协议
    ∙ \bullet encapsulation关键字:封装
    ∙ \bullet frame-relay:帧中继协议
    encapsulation frame-relay
  3. 配置4个路由器的IP 地址、打开接口
    ∙ \bullet Route0:ip add 1.1.1.1 255.255.255.0
    ∙ \bullet Route1:ip add 1.1.1.2 255.255.255.0
    ∙ \bullet Route2:ip add 1.1.1.3 255.255.255.0
    ∙ \bullet Route3:ip add 1.1.1.4 255.255.255.0
    ∙ \bullet no shutdown
    链路协议开始工作
  4. 测试
    查看路由器的串行接口状态,并测试路由器之间的连通性。
    在这里插入图片描述

七、思考题

  1. 为什么说虚电路 DLCI 只具有本地有效性?

  2. 若实验中,要实现任意两台路由器之间都可以相互访问,请问如何配置帧中继网络?

  • 11
    点赞
  • 34
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
Router(config)#no ip domain-lo Router(config)#line con 0 Router(config-line)#logg sy Router(config-line)#exec-t 0 0 Router(config-line)#exi Router(config)#ho R1 R1(config)#int s1/0 R1(config-if)#encapsulation fr R1(config-if)#no fram inv R1(config-if)#ip add 12.1.1.1 255.255.255.0 R1(config-if)#no shut R1(config-if)#frame-relay map ip 12.1.1.2 102 broadcast R1(config-if)#exi R1(config)#exi R1# R1#show ip int bri Interface IP-Address OK? Method Status Protocol Ethernet0/0 unassigned YES unset administratively down down Ethernet0/1 unassigned YES unset administratively down down Ethernet0/2 unassigned YES unset administratively down down Ethernet0/3 unassigned YES unset administratively down down Serial1/0 12.1.1.1 YES manual up up Serial1/1 unassigned YES unset administratively down down Serial1/2 unassigned YES unset administratively down down Serial1/3 unassigned YES unset administratively down down R1# Router#conf t Router(config)#no ip domain-lo Router(config)#line con 0 Router(config-line)#logg sy Router(config-line)#exec-t 0 0 Router(config-line)#exi Router(config)#ho R2 R2(config)#int s1/0 R2(config-if)#en fr R2(config-if)#no fram inv R2(config-if)#ip add 12.1.1.2 255.255.255.0 R2(config-if)#no shut R2(config-if)#exi R2(config)#i R2(config)#exi R2#show ip int bri Interface IP-Address OK? Method Status Protocol Ethernet0/0 unassigned YES unset administratively down down Ethernet0/1 unassigned YES unset administratively down down Ethernet0/2 unassigned YES unset administratively down down Ethernet0/3 unassigned YES unset administratively down down Serial1/0 12.1.1.2 YES manual up up Serial1/1 unassigned YES unset administratively down down Serial1/2 unassigned YES unset administratively down down Serial1/3 unassigned YES unset administratively down down R2#conf t R2(config)#int s1/0 R2(config-if)#frame-relay map ip 12.1.1.1 201 broadcast R2(config-if)#exi R2(config)#exi R2#ping 12.1.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 12.1.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 16/44/80 ms R2#
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

folielxx

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值