R2的配置:
R2(config)#frame-relay switching
R2(config)#int s1/0
R2(config-if)#no shut
R2(config-if)#encapsulation frame-relay
R2(config-if)#frame-relay intf-type dce
R2(config-if)#frame-relay rout 104 int tunnel 0 100
R2(config-if)#frame-relay rout 105 int tunnel 0 200
R2(config-if)#clock rate 64000
R2(config)#int f0/0
R2(config-if)#ip add 192.168.23.1 255.255.255.0
R2(config-if)#no shut
R2(config-if)#int tunnel 0
R2(config-if)#tunnel source fastEthernet 0/0
R2(config-if)#tunnel destination 192.168.23.2
R2(config-if)#exit
R3的配置:
R3(config)#frame-relay switching
R3(config)#int s1/1
R3(config-if)#no shut
R3(config-if)#encapsulation frame-relay
R3(config-if)#fframe-relayintf-type dce
R3(config-if)#clock rate 64000
R3(config-if)#frame-relay route 401 int tunnel 0 100
R3(config-if)#exit
R3(config)#int s1/2
R3(config-if)#no shut
R3(config-if)#encapsulation frame-relay
R3(config-if)#frame-relay intf-type dce
R3(config-if)#clock rate 64000
R3(config-if)#frame-relay route 501 int tunnel 0 200
R3(config-if)#exit
R3(config)#int f0/0
R3(config-if)#ip add 192.168.23.2 255.255.255.0
R3(config-if)#no shut
R3(config-if)#int tunnel 0
R3(config-if)#tunnel source fastEthernet 0/0
R3(config-if)#tunnel destination 192.168.23.1
R3(config-if)#exit
R1的配置:
R1(config)#int s1/1
R1(config-if)#encapsulation frame-relay
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#ino shut
R4的配置:
R4(config)#int s1/0
R4(config-if)#encapsulation frame-relay
R4(config-if)#ip address 192.168.1.4 255.255.255.0
R4(config-if)#ino shut
R5的配置:
R5(config)#int s1/2
R5(config-if)#encapsulation frame-relay
R5(config-if)#ip address 192.168.1.5 255.255.255.0
R5(config-if)#ino shut
实验验证:
使用命令Show frame-relay route验证
使用sh frame-relay pvc