2010年8月16日

Frame Relay Lab實作

其中R2模擬為訊框中繼交換機、R1與R3為一般Router
R2訊框中繼交換機的設定
R2#configure t
R2(config)#frame-relay switching
#啟用訊框中繼交換機功能
R2(config)#interface ser0/0
R2(config-if)#encapsulation frame-relay
R2(config-if)#int ser0/1
R2(config-if)#encapsulation frame-relay
R2(config-if)#int ser0/0
R2(config-if)#frame-relay intf-type dce
#讓這個界面成為訊框中繼的DCE界面,這與路由器的DCE介面是不同的
R2(config-if)#frame-relay route 102 interface ser0/1 201
#如果從PVC 102收到訊框,就利用PVC 201從int s0/1傳送出去
R2(config-if)#clock rate 64000
#讓界面成為DCE裝置端,這與訊框中繼的DCE不同
R2(config-if)#no shutdown

R2(config-if)#int ser 0/1
R2(config-if)#frame-relay intf-type dce
R2(config-if)#frame-relay route 201 interface ser0/0 102
##如果從PVC 201收到訊框,就利用PVC 102從int s0/0傳送出去
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R2(config-if)#end

R1的frame relay設定
R1#configure t
R1(config)#interface ser0/0
R1(config-if)#encapsulation frame-relay
R1(config-if)#no shutdown
R1(config-if)#int s0/0.102 point-to-point
R1(config-subif)#ip address 172.16.10.1 255.255.255.0
R1(config-subif)#frame-relay interface-dlci 102
R1(config-fr-dlci)#exit
R1(config-subif)#exit

R3的frame relay設定
R3#configure t
R3(config)#int s0/0
R3(config-if)#encapsulation frame-relay
R3(config-if)#no shutdown
R3(config-if)#int s0/0.201 point-to-point
R3(config-subif)#ip address 172.16.10.2 255.255.255.0
R3(config-subif)#frame-relay interface-dlci 201
R3(config-fr-dlci)#end

R1設定default route
R1#configure t
R1(config)#interface fa1/0
R1(config-if)#ip address 192.168.10.1 255.255.255.0
R1(config-if)#no shutdown
R3(config-if)#exit
R1(config)#ip route 0.0.0.0 0.0.0.0 172.16.10.2
R1(config)#end

R3設定default route
R3#configure t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#int
R3(config)#interface fa1/0
R3(config-if)#ip address 192.168.20.1 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#ip route 0.0.0.0 0.0.0.0 172.16.10.1
R3(config)#end

PC的設定
NAME IP/CIDR GATEWAY
PC1 192.168.10.2/24 192.168.10.1
PC2 192.168.20.2/24 192.168.20.1

測試是否有PING通
VPCS 1 >ping 192.168.20.2
192.168.20.2 icmp_seq=1 time=23.858 ms
192.168.20.2 icmp_seq=2 time=17.115 ms
192.168.20.2 icmp_seq=3 time=54.599 ms
192.168.20.2 icmp_seq=4 time=17.274 ms
192.168.20.2 icmp_seq=5 time=24.120 ms

VPCS 1 >trace 192.168.20.2
traceroute to 192.168.20.2, 64 hops max
1 192.168.10.1 4.266 ms 6.676 ms 4.128 ms
2 172.16.10.2 17.545 ms 12.691 ms 12.690 ms
3 192.168.20.2 18.085 ms 19.270 ms 11.842 ms

檢查訊框中繼交換機設定
R2#show frame-relay ?
end-to-end Frame-relay end-to-end VC information
fragment show frame relay fragmentation information
ip show frame relay IP statistics
lmi show frame relay lmi statistics
map Frame-Relay map table
multilink Show Multilink Frame Relay bundle information
pvc show frame relay pvc statistics
qos-autosense show frame relay qos-autosense information
route show frame relay route
traffic Frame-Relay protocol statistics
vc-bundle FR VC-Bundle
vofr Show frame-relay VoFR statistics

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


R2#show frame-relay lmi

LMI Statistics for interface Serial0/0 (Frame Relay DCE) LMI TYPE = CISCO
Invalid Unnumbered info 0 Invalid Prot Disc 0
Invalid dummy Call Ref 0 Invalid Msg Type 0
Invalid Status Message 0 Invalid Lock Shift 0
Invalid Information ID 0 Invalid Report IE Len 0
Invalid Report Request 0 Invalid Keep IE Len 0
Num Status Enq. Rcvd 355 Num Status msgs Sent 355
Num Update Status Sent 0 Num St Enq. Timeouts 79

LMI Statistics for interface Serial0/1 (Frame Relay DCE) LMI TYPE = CISCO
Invalid Unnumbered info 0 Invalid Prot Disc 0
Invalid dummy Call Ref 0 Invalid Msg Type 0
Invalid Status Message 0 Invalid Lock Shift 0
Invalid Information ID 0 Invalid Report IE Len 0
Invalid Report Request 0 Invalid Keep IE Len 0
Num Status Enq. Rcvd 309 Num Status msgs Sent 309
Num Update Status Sent 0 Num St Enq. Timeouts 108


0 回應:

Copyright © 2009 New Life in Taipei All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.