拓扑图:

 

实验过程

1.帧中继交换机配置

Router>en

Router#config t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#no ip domain-lookup

Router(config)#line console 0

Router(config-line)#no exec-timeout

Router(config-line)#loggin syn

Router(config-line)#exit

Router(config)#host FR

Router(config)#frame-relay switch  //开启帧中继交换功能

FR(config)#interface s0/0

FR(config-if)#no shut

FR(config-if)#encapsulation frame-relay  //封装帧中继

FR(config-if)#frame-relay intf-type dce  //配置接口类型

FR(config-if)#frame-relay lmi-type cisco  //配置本地管理接口类型

FR(config-if)#frame-relay route 102 interface s0/1 201  //配置DLCI

FR(config-if)#exit

FR(config)#interface s0/1

FR(config-if)#no shut

FR(config-if)#encapsulation frame-relay

FR(config-if)#frame-relay intf-type dce

FR(config-if)#frame-relay lmi-type cisco

FR(config-if)#frame-relay route 201 interface s0/0 102

FR(config-if)#exit

 

2.R1的配置

Router>

Router>en

Router#config t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#no ip domain-lookup

Router(config)#line console 0

Router(config-line)#no exec-timeout

Router(config-line)#loggin syn

Router(config-line)#exit

Router(config)#host R1

R1(config)#interface s0/0

R1(config-if)#no shut

R1(config-if)#encapsulation frame-relay   //封装帧中继

3.R2的配置

Router>en

Router#config t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#no ip domain-lookup

Router(config)#line console 0

Router(config-line)#no exec-timeout

Router(config-line)#loggin syn

Router(config-line)#exit

Router(config)#host R2

R2(config)#interface s0/1

R2(config-if)#no shut

R2(config-if)#encapsulation frame-relay

R2(config-if)#ip add 192.168.0.2 255.255.255.0

4.查看帧中继映射表

R1#show frame-relay map

Serial0/0 (up): ip 192.168.0.2 dlci 102(0x66,0x1860), dynamic,

              broadcast,, status defined, active

R2#show frame

R2#show frame-relay map

Serial0/1 (up): ip 192.168.0.1 dlci 201(0xC9,0x3090), dynamic,

              broadcast,, status defined, active

5.测试连通性

R1#ping 192.168.0.2   

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.0.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 12/51/92 ms

R2#ping 192.168.0.1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 28/58/104 ms