今天下午用Dynamips_GUI做了一个简单的frame-relay point to point的实验,拓扑如下所示:
 
       先是一些关于帧中继的基础知识:
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

   帧中继技术提供面向连接的数据链路层的通信,在每对设备之间都存在一条定义好的通信链路,且该链路有一个链路识别码(DLCI)。这种服务通过帧中继虚电路实现,每个帧中继虚电路都以数据链路识别码(DLCI)标识自己。DLCI的值一般由帧中继服务提供商指定。帧中继即支持PVC也支持SVC。

   帧中继本地管理接口(LMI)是对基本的帧中继标准的扩展。它是路由器和帧中继交换机之间信令标准,提供帧中继管理机制。它提供了许多管理复杂互联网络的特性,其中包括全局寻址、虚电路状态消息和多目发送等功能。

两个关键术语:

DLCI :Data Link Connection Identifier

LMI:Local Management Interface
  具体实验过程:
1.  对R2进行配置:
Router>en
Router#conf t

Router(config)#hostname r2

r2(config)#frame-relay switching   //启动帧中继交换功能
r2(config)#int s0/0
r2(config-if)#encap frame-relay    //把该接口封装成为帧中继
r2(config-if)#frame-relay  intf dce   //定义帧中继的接口类型为DCE,即该接口所连
接的电缆类型为DCE;
r2(config-if)#clock rate 64000  //DCE提供时钟频率
r2(config-if)#frame lmi-type cisco  //设定LMI类型为Cisco
r2(config-if)#frame-relay route 102 interface s0/1 201   //配置帧中继路由,102为进入接口的DLCI号,从S0/1的DLCI 201发出去。
r2(config-if)#no shut

r2(config-if)#int s0/1
r2(config-if)#encap frame
r2(config-if)#frame intf dce
r2(config-if)#clock rate 64000
r2(config-if)#frame lmi-type cisco  
                              
r2(config-if)#frame-relay route 201 interface s0/0 102     
r2(config-if)#no shut

2. 对R1进行配置:
Router>en
Router#conf t

Router(config)#hostname r1

r1(config)#int s0/0
r1(config-if)#encap frame
r1(config-if)#ip address 192.168.1.1 255.255.255.252 
r1(config-if)#frame-relay map ip 192.168.1.2 102 broadcast  //映射IP地址与帧中继地址,broadcast参数表示允许在帧中继线路上传送路由广播信息
r1(config-if)#no shut

3. 对R3进行配置:
Router>en
Router#conf t

Router(config)#hostname r3

r3(config)#int s0/0
r3(config-if)#encap frame
r3(config-if)#ip address 192.168.1.2 255.255.255.252
r3(config-if)#frame-relay map ip 192.168.1.1 201 broadcast
r3(config-if)#no shut
 
4.实验结果:
r1#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2
seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
144/200/284 ms

r3#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2
seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
168/209/264 ms

r2#show frame-relay route  //查看帧中继路由
Input Intf      Input Dlci      Output Intf     Output Dlci 
   Status
Serial0/0       102             Serial0/1       201         
   active
Serial0/1       201             Serial0/0       102         
   active
5.实验小结:通过实验,对帧中继的工作原理有了进一步的认识,比以前单纯的似懂非懂好一点了.但是,还有待进一步的深入学习^_^