配置帧中继交换机 -电脑资料

电脑资料 时间:2019-01-01 我要投稿
【www.unjs.com - 电脑资料】

  本实验是配置普通路由器作为帧中继交换机使用,以便为本章的其他实验提供一个帧中继的实验环境,

配置帧中继交换机

  1.实验目的

  通过本实验,读者可以掌握以下技能:

  ●配置只有2个节点的帧中继环境;

  ●配置星型的帧中继环境;

  ●配置全网状的帧中继环境;

  ●熟悉相关的查看和监测命令。

  2.设备需求

  本实验需要以下设备:

  ●具有3个以上串行接口的路由器1台;

  ●3条DCE类型串行电缆;

  ●1台带有超级终端程序的PC机,以及Console电缆及转接器。

  3.线缆连接及配置说明

  本实验的线缆连接如图8.1所示,把PC机通过Console电缆连接到路由器的Console端口上,即完成了线缆的连接。

  图8-1也标出了配置有2节点的帧中继环境的DLCI值。

  4.实验配置及监测结果

  第1步:配置有2个节点的帧中继环境

  实验1的第1步是配置有2个节点的帧中继环境,它的配置较为简单,其配置见配置清单8-1。

  配置清单8-1 配置有2个节点的帧中继环境

  第1段:配置有2个节点的帧中继环境

  version 12.1

  service timestamps debug uptime

  service timestamps log uptime

  no service password-encryption

  !

  hostname FR_S witch

  ip subnet-zero

  no ip domain-lookup

  frame-relay switching

  !

  interface Serial0

  no ip address

  shutdown

  !

  interface Serial 1

  no Ip address

  encapsuSatlois frame-relay

  dockrate 64000

  frame-relay lmi-type dsco

  frame-relay Intf-type dee

  frame-relay route 102 Interface Serlal2 201

  !

  interface Serial2

  no ip address

  encapsulation frame-relay

  clockrate 64000

  frame-relay Imi-type cisco

  frame-relay intf-type dee

  frame-relay route 201 interface Seriall 102

  !

  interface Serial3

  no ip address

  shutdown

  !

  line con 0

  line aux 0

  transport input all

  line vty 0 4

  login

  !

  end

  第2段:查看有关信息

  FR_Switch#sh fr route

  Input Intf Input Dici Output IntfOutput DiciStatus

  Serial1102Serial2 201 inactive

  Serial2201Serial1 102 inactive

  FR_Switch#sh fr lmi

  LMI Statistics for interface Serial1(Frame. Relay DCE)LMI TYPE=CISCO

  Invalid Unnumbered info 0Invalid Prot Disc 0

  Invalid dummy Call Ref 0 Invalid Msg Type 0

  Invalid Status Message 0 Invalid Lock Shift 0

  Invalid Information ID 0 Invalid Report IE Len 0

  Invalid Report Request 0 Invalid Keep IE Len 0

  Num Status Enq. Rcvd 0Num Status msgs Sent 0

  Num Update Status Sent 0 Num St Enq. Timeouts 0

  LMI Statistics for interface Serial2(Frame. Relay DCE)LMI TYPE=CISCO

  Invalid Unnumbered info 0Invalid Prot Disc 0

  Invalid dummy Call Ref 0 Invalid Msg Type 0

  Invalid Status Message 0 Invalid Lock Shift 0

  Invalid Information ID 0 Invalid Report IE Len 0

  Invalid Report Request 0 Invalid Keep IE Len 0

  Num Status Enq. Rcvd 0 Num Status msgs Sent 0

  Num Update Status Sent 0 Num St Enq. Timeouts 154

  FR_Switch#sh fr pvc

  PVC Statistics for interface Serial1(Frame. Relay DCE)

  ActiveInactive DeletedStatic

  Local 0 00 0

  Switched 0 1 0 0

  Unused0 0 00

  DLCI=102,DLCI USAGE-SWITCHED,PVC STATUS=INACTIVE,INTERFACE=Serial1

  input pkts 0 output pkts 0 in bytes 0

  out bytes 0dropped pkts 0in FECN pkts 0

  in BECN pkts 0 out FECN pkts 0 out BECN pkts 0

  in DE pkts 0out DE pkts 0

  out beast pkts 0out beast bytes 0Num Pkts Switched 0

  pvc create time 00:39:51, last time pvc status changed 00:39:51

  PVC Statistics for interface Serial2(Frame. Relay DCE)

  Active Inactive Deleted Static

  Local  0000

  Switched0100

  Unused 0000

  DLCI=201,DLCIUSAGE=SWITCHED,PVC STATUS=INACTIVE,INTERFACE=Serial2

  input pkts 0output pkts 0in bytes 0

  out bytes 0 dropped pkts 0 in FECN pkts 0

  in BECN pkts 0out FECN pkts 0out BECN pkts 0

  in DE pkts 0 out DE pkts 0

  out beast pkts 0 out beast bytes 0 Num Pkts Switched 0

  pvc create time 00:39:32, last time pvc status changed 00:39:29

  FR_Switch#

  (1)在作为帧中继交换机使用的路由器上,首先使用Frame-relay switching命令,启动该路由器的帧申继交换功能,使它可以被配置成为帧中继交换机,

电脑资料

配置帧中继交换机》(https://www.unjs.com)。

  (2)为了编号方便,我们没有使用S0接口。当然,如果路由器的串行接口数量有限,S0接口同样可以被使用。

  (3)在对S1接口的配置中,我们逐句来进行讲解。

  no ip address――在S1接口上不配置IP地址,这是接口的缺省配置,不用专门输入;

  encapsuaation Frame-relay――把S1接口封装成为帧中继;

  clockrate 64000――设定时钟为64000,也可以是其他允许的值;

  frame-relay lmi-type cisco――设定LMI类型为Cisco;

  frame-relay intf-type dce――定义帧中继的接口类型为DCE,即所连接的电缆类型为DCE;

  frame-relay route 102 interface Serial2 201――定义本接口的DLCI值为102,与S2接口的值为201的DLCI形成1个虚电路。

  (4)与S1接口类似,在对S2接口的配置中,使用的语句及讲解如下。

  no ip address――在S1接口上不配置IP地址;

  encapsuaation Frame-relay――把S1接口封装成为帧中继;

  clockrate 64000――设定时钟为64000;

  frame-relay lmi-type cisco――设定LMI类型为Cisco;

  frame-relay intf-type dce――定义帧中继的接口类型为DCE;

  frame-relay route 201 interface Serial2 102――定义本接口的DLCI值为102,与S2接口的值为102的DLCI形成1个虚电路。

  在上述配置中DLCI值为102和201是由我们自行定义的,为了配置时的条理性,从引接口到S2接口的DLCI取值为102,从S2接口到S1接口的DLCE取值为201,下面的实验中依此类推。

最新文章