3.6实验4:配置帧中继网络
  实验内容
  主要是练习点到多点和点到点的帧继基本配置命令。
  l 安照图3-7 结构配置点到多点和点到点的帧中继网络。
  l R5到R2和R3使用静态PVC映射。
  l R5到R4之间使用动态PVC映射。
  3.6.2 实验拓扑
  安照图3-7这个拓扑连接好设备。
  图3-7 实验拓扑
  3.6.3 所需设备
  l 5台router,其中一台配置为帧中继交换机。
  l 背对背线缆4条。
  3.6.4 实验步骤
  第1步 配置帧中继封装和子接口
  encapsulation frame-relay [ cisco | ietf ]
  interface s1/0.1[ point-to-point | multipoint ]
  第2步 配置LMI类型(本实验中采用自动识别)
  frame-relay lmi-type[ ansi | cisco | q933i ]
  第3步 配置地址映射为动态or 静态
  frame-relay map protocol [ ip | dec | appletalk | xns | ipx | vines | clns | bridge | llc2 | dlsw ] next_hop_address [ broadcast ] [ ietf | cisco ]
  frame-relay interface-dlci dlci_number
第4步 关掉水平分割
  在接口下no ip split-horizon
  第5步 配置EIGRP,并关闭自动汇总。
  router eigrp as_number
  network network_address subnet_mask
  no auto-summary
  第6步 检查配置,检查路由
  3.6.5 完整配置
  例3-13 R5的配置
  hostname R5
  !
  interface Loopback1
  ip address 172.16.5.1 255.255.255.0
  !
  interface Serial1/0
  no ip address
  encapsulation frame-relay
  no ip split-horizon
  no fair-queue
  serial restart_delay 0
  !
  interface Serial1/0.1 multipoint
  ip address 172.16.1.5 255.255.255.0
  frame-relay map ip 172.16.1.3 503 broadcast
  frame-relay map ip 172.16.1.2 502 broadcast
  !
  interface Serial1/0.2 multipoint
  ip address 172.16.16.5 255.255.255.0
  frame-relay interface-dlci 504
  !
  router eigrp 100
  network 172.16.1.0 0.0.0.255
  network 172.16.5.0 0.0.0.255
  network 172.16.16.0 0.0.0.255
  no auto-summary
  no eigrp log-neighbor-changes
  !
  例3-14 R2的配置
  hostname R2
  !
  interface Loopback1
  ip address 172.16.2.1 255.255.255.0
  !
  interface Serial1/0
  ip address 172.16.1.2 255.255.255.0
  encapsulation frame-relay
  serial restart_delay 0
  no arp frame-relay
  frame-relay map ip 172.16.1.3 205 broadcast
  frame-relay map ip 172.16.1.5 205 broadcast
  no frame-relay inverse-arp
  !
  router eigrp 100
  network 172.16.1.0 0.0.0.255
  network 172.16.2.0 0.0.0.255
  no auto-summary
  !
  例3-15 R3的配置
  hostname R3
  !
  interface Loopback1
  ip address 172.16.3.1 255.255.255.0
  !
  interface Serial1/0
  ip address 172.16.1.3 255.255.255.0
  encapsulation frame-relay
  serial restart_delay 0
  no arp frame-relay
  frame-relay map ip 172.16.1.2 205 broadcast
  frame-relay map ip 172.16.1.5 205 broadcast
  no frame-relay inverse-arp
  !
  router eigrp 100
  network 172.16.1.0 0.0.0.255
  network 172.16.3.0 0.0.0.255
  no auto-summary
  !
  例3-16 R4的配置
  hostname R4
  !
  interface Loopback1
  ip address 172.16.4.1 255.255.255.0
  !
  interface Serial1/0
  ip address 172.16.16.4 255.255.255.0
  encapsulation frame-relay
  serial restart_delay 0
  frame-relay interface-dlci 405
  !
  router eigrp 100
  network 172.16.4.0 0.0.0.255
  network 172.16.16.0 0.0.0.255
  no auto-summary
  no eigrp log-neighbor-changes
  !
  3.6.6 验证配置
  l show ip route 显示路由信息,可以看到路由表是否正确。例3-16是在R5上执行该命令的结果。
  l show ip eigrp neighbors  验证EIGRP工作是否正常,是否建立了正确的邻居关系,例3-17.
  例3-17 R5上执行show ip route 的结果
  R5#sho ip route
  Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
  D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
  N1 - OSPF NSSA external type 1
  , N2 - OSPF NSSA external type 2
  E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
  i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
  * - candidate default, U - per-user static route, o - ODR
  P - periodic downloaded static route
  Gateway of last resort is not set
  172.16.0.0/24 is subnetted, 6 subnets
  C 172.16.16.0 is directly connected, Serial1/0.2
  D 172.16.4.0 [90/2297856] via 172.16.16.4, 00:11:18, Serial1/0.2
  C 172.16.5.0 is directly connected, Loopback1
  C 172.16.1.0 is directly connected, Serial1/0.1
  D 172.16.2.0 [90/2297856] via 172.16.1.2, 00:11:18, Serial1/0.1
  D 172.16.3.0 [90/2297856] via 172.16.1.3, 00:11:18, Serial1/0.1
  R5#
  例3-16
  R5#sho ip eigrp neighbors
  IP-EIGRP neighbors for process 100
  H Address Interface Hold Uptime SRTT RTOQSeq Type
  (sec) (ms) Cnt Num
  2 172.16.16.4 Se1/0.2 137 00:13:42256153602
  1 172.16.1.3 Se1/0.1 172 00:14:08297178203
  0 172.16.1.2 Se1/0.1 164 00:15:55215129005
  R5#