1、配置帧中继
R2(config)#frame-relay switching 
R2(config)#interface Serial 1/0
R2(config-if)# no ip address
R2(config-if)# no shutdown
R2(config-if)# encapsulation frame-relay
R2(config-if)# clock rate 64000
R2(config-if)# frame-relay intf-type dce
R2(config-if)# frame-relay route 123 interface serial 1/1 321
R2(config-if)#  frame-relay lmi-type ansi

R2(config)# interface Serial 1/1
R2(config-if)# no ip address
R2(config-if)# no shutdown
R2(config-if)# encapsulation frame-relay
R2(config-if)# clock rate 64000
R2(config-if)# frame-relay intf-type dce
R2(config-if)# frame-relay route 321 interface serial 1/0 123
Frsw(config-if)#  frame-relay lmi-type ansi
2、封闭帧中继
R1(config)#  interface serial 1/0
R1(config-if)# encapsulation frame-relay
R1(config-if)# ip address 12.1.1.1 255.255.255.0
R1(config-if)#  frame-relay lmi-type ansi
R1(config-if)#  no shut

R3(config)#  interface serial 1/1
R3 (config-if)# encapsulation frame-relay
R3 (config-if)# ip address 12.1.1.2 255.255.255.0
R3 (config-if)#  frame-relay lmi-type ansi
R3 (config-if)#  no shut