首页 > 学院 > 网络通信 > 正文

配置帧中继于接口(1)

2019-11-04 20:38:08
字体:
来源:转载
供稿:网友

  子接口是帧中继拓扑环境中重要的配置对象,本实验将对点到点于接口和多点子接口分别进行配置,并配置EIGRP路由协议,以观察在不同于接口配置模式下路由协议的工作特点。
  
  1.实验目的
  
  通过本实验,读者可以把握以下技能
  ●配置帧中继点到点子接口;
  ●配置帧中继多点子接口;
  ●配置EIGRP路由协议;
  ●查看帧中继相关信息;
  ●查看EIGRP相关信息。
  
  2.设备需求
  
  本实验需要以下设备:
  ●实验1中配置好的帧中继交换机;
  ●3台路由器,要求最少具有1个串行接口;
  ●3条DCE电缆,3条DTE电缆;
  ●1台终端服务器,如Cisco 2509路由器,及用于反向Telnet的相应电缆;
  ●1台带有超级终端程序的PC机,以及Console电缆及转接器。
  
  3.拓扑结构及配置说明
  
  本实验的拓扑如图8-5所示。
  
配置帧中继于接口(1)

  在"帧中继云"的位置,实际放置的是实验1中配置好的帧中继交换机,使用拓扑中指定的几个DLCI构成星型结构。使用帧中继交换机的S1、S2和S3接口分别用一组DCE、DTE电缆与R1、R2和R3实现连接。帧中继网上网段划分和ip地址分配将在具体配置时给出。
  
  4.实验配置及监测结果
  
  连接好所有设备并给各设备加电后,开始进行实验。
  第1部分:配置和监测帧中继点到点子接口
  以下的配置把R1的S0接口设置成为帧中继的点到点子接口。其他路由器依然使用物理接口。
  配置清单8-5列出了各路由器的配置。
  
  配置清单8-5 配置帧中继点到点子接口
  
  第1段:R1路由器的配置
  version 12.1
  service timestamps debug uptime
  service timestamps log uptime
  no service passWord-encryption
  !
  hostname R1
  !
  ip subnet-zero
  !
  interface Loopback0
   ip address 10.1.1.1255.255.255.0
  !
  interface Serial0
  no ip address
   esscapsulation frame-relay
   no fair-queue
   no frame-relay inverse-arp
  !
  Interface Serial0.102 point-to-point
   ip address 192.168.1,1255.255.255.252
   bandwidth 64
   frame-relay interface-dlci 102
  !
  interface Serial0. 103 point-to-point
   ip address 192.168.1.5 255.255.255.252
   bandwidth 64
   frame-relay interface-dici 103
  !
  router eigrp 100
   network 10.1.1.0 0.0.0.255
   network 192.168.1.00.0.0.3
   network 192.168.1.4 0.0.0.3
   no auto-summary
   no eigrp log-neighbor-changes
  !
  ip classless
  ip http server
  !
  line con 0
  line aux 0
  line vty 0 4
  !
  end
  第2段:R2路由器的配置
  version 12.1
  service timestamps debug uptime
  service timestamps log uptime
  no service password-encryption
  !
  hostname R2
  !
  ip subnet-zero
  no ip finger
  !
  interface Loopback0
   ip address 10.1.2.1255.255.255.0
  !
  interface Serial0
   bandwidth 64
   ip address 192.168.1.2 255.255.255.252
   encapsulation frame-relay
   no fair-queue
   frame-relay map ip 192.168.1.1 201 broadcast
   frame-relay interface-dici 201
   no frame-relay inverse-arp
  !
  router eigrp 100
   network 10.1.2.00.0.0.255
   network 192.168.1.00.0.0.3
   no auto-summary
   no eigrp log-neighbor-changes
  !
  ip classless
  ip http server
  !
  line con 0
   transport input none
  line aux 0
  line vty 0 4
  !
  end
  第3段:R3路由器的配置
  version 12.1
  service timestamps debug uptime
  service timestamps log uptime
  no service password-encryption
  hostname R3
  !
  ip subnet-zero
  no ip finger
  !
  interface Loopback0
   ip address 10.1.3.1255.255.255.0
   !
  interface Serial0
   bandwidth 64
   ip address 192.168.1.6 255.255.255.252
   encapsulation frame-relay
   no fair-queue
   frame-relay map ip 192.168.1.5 301 broadcast
   frame-relay interface-dici 301
   no frame-relay inverse-arp
  !
  router eigrp 100
   network 10.1.3.00.0.0.255
   network 192.168.1.40.0.0.3
   no auto-summary
   no eigrp log-neighbor-changes
  !
  ip classless
  ip http server
  !
  line con 0
   transport input none
  line aux 0
  line vty 0 4
  !
  end
  
  (1)对于R1路由器,我们进行了帧中继点到点于接口的配置。配置中请注重以下几点:
  ●在物理接口下只配置帧中继封装,不配置IP地址和带宽属性;
  ●定义子接口号可以任意,但使用对应的DLCI号(如102和103)将方便配置,避免混乱;
  ●在定义子接口号时指定所用的方式,即点到点方式;
  ●在于接口中定义阳地址,DLCI和带宽等属性;
  ●在点到点的配置方式下,每个子接口所连接的链路必须是独立的IP网段,路由器的处理与专线 (如DDN)方式相同。
  (2)R2和R3路由器使用的是物理接口来配置帧中继,使用了MAP语旬定义静态映射。
  (3)在配置EIGRP协议时,使用了命令no auto-summary,这样才能看到10.0.0.0网络的各个子网的路由信息。
  监测清单8-4所列内容是对上述配置的监测结果。
  
  监测清单8-4 查看帧中继点到点子接口配置结果
  R3#sh ip route eigrp
    10.0.0.0/24 is subnetted, 3 subnets
  D   10.1.2.0 [90/41152000] via 192.168.1.5, 00:02:08, Serial0
  D   10.1.1.0 [90/406400003 via 192.168.1.5,00:02:08, Serial0
    192.168.1.0/30 is subnetted, 2 subnets
  D   192.168.1.0 [90/41024000] via 192.168.1.5, 00:02:09, Serial0
  R3#
  Term_Server#2
  [Resuming connection 2 to r2 ... ]
  R2#sh ip route eigrp
    10.0.0.0/24 is
  D   10.1.3.0 [90/41152000] via 192.168.1.1, 00:02:39, Serial0
  D   10.1.1.0 [90/40640000] via 192.168.1.1, 00:05:21, Serial0
    192.168.1.0/30 is subnetted, 2 subnets
  D   192.168.1.4 [90/41024000] via 192.168.1.1,00:04:14, Serial0
  R2#
  Term_Server#1
  [Resuming connection 1 to r1 ... ]
  R1#sh ip route eigrp
    10.0.0.0/24 is subnetted, 3 subnets
  D   10.1.3.0 [90/40640000] via 192.168.1.6, 00:03:45, Serial0.103
  D   10.1.2.0 [90/40640000] via 192.168.1.2, 00:06:24,.Serial0.102
  R1#sh frame pvc
  PVC Statistics for interface Serial0 (Frame Relay DTE)
        Active   Inactive   Deleted   Static
   Local    2      0      0      0
   Switched   0      0      0      0
   Unused    0      0      0      0
  
  DLCI=102,DLCI USAGE=LOCAL,PVC STATUS=TCTIVE,INTERFACE=Serial0.102
  
   input pkts 23     output pkts 223     in bytes 1585
   out bytes 18481    dropped pkts 0      in FECN pkts 0
   in BECN pkts 0     out FECN pkts 0     out BECN pkts 0
   in DE pkts 0      out DE pkts 0
   out beast pkts 193   out beast bytes 15792
   pvc create time 00:35:47, last time pvc status changed 00:13:37
  
  DLCI=103,DLCI USAGE=LOCAL,PVC STATUS=TCTIVE,INTERFACE=Serial0.103
  
   input pkts 11     output pkts 85      in bytes 697
   o


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表