幀中繼交換機和路由器模擬配置
作者:曉兵 
  本文介紹了路由器和交換機中幀中繼的迷你配置實例,這個實例可以很明白的為大家說明配置過程,比較經(jīng)典,對于初學者來說是個很好的參考資料。
 幀中繼拓撲連接:

router1的s0/0端口與FR的s0/0端口連接!
router2的s0/0端口與FR的s0/1端口連接!
router3的s0/0端口與FR的s0/2端口連接!
幀中繼交換機的模擬配置:
- Router>enable
 - Router# config term
 - Router(config)# hostname FR
 - FR(config)# frame-relay switching
 - FR(config)# interface s0/0
 - FR(config-if)# encapsulation frame
 - FR(config-if)# frame lmi-type cisco
 - FR(config-if)# frame intf-type dce
 - FR(config-if)# frame route 102 interface s0/1 201
 - FR(config-if)# frame route 103 interface s0/2 301
 - FR(config-if)# clock rate 128000
 - FR(config-if)# no shutdown
 - FR(config-if)# exit
 - FR(config)# interface s0/1
 - FR(config-if)# encapsulation frame
 - FR(config-if)# frame lmi-type cisco
 - FR(config-if)# frame intf-type dce
 - FR(config-if)# frame route 201 interface s0/1 102
 - FR(config-if)# frame route 203 interface s0/2 302
 - FR(config-if)# clock rate 64000
 - FR(config-if)# no shutdown
 - FR(config-if)# exit
 - FR(config)# interface s0/2
 - FR(config-if)# encapsulation frame
 - FR(config-if)# frame lmi-type cisco
 - FR(config-if)# frame intf-type dce
 - FR(config-if)# frame route 301 interface s0/1 103
 - FR(config-if)# frame route 302 interface s0/2 203
 - FR(config-if)# clock rate 64000
 - FR(config-if)# no shutdown
 - FR(config-if)# exit
 
驗證:
這里Status為Inactive的原因是對端路由器還沒有配置。
- FR#show fram route
 - Input Intf Input Dlci Output Intf Output Dlci Status
 - Serial0/0 102 Serial0/1 201 inactive
 - Serial0/0 103 Serial0/2 301 inactive
 - Serial0/1 201 Serial0/0 102 inactive
 - Serial0/1 203 Serial0/2 302 inactive
 - Serial0/2 301 Serial0/0 103 inactive
 - Serial0/2 302 Serial0/1 203 inactive
 

路由器的幀中繼基本配置
- R1(config)# interface s0/0
 - R1(config-if)# encapsulation frame //封裝為幀中繼
 - R1(config-if)# no frame inverse-arp //關(guān)閉自動獲取
 - R1(config-if)# ip address 192.168.1.1 255.255.255.0
 - R1(config-if)# frame map ip 192.168.1.2 102
 - R1(config-if)# frame map ip 192.168.1.3 103
 - R1(config-if)# no shutdown
 - R2(config)# interface s0/0
 - R2(config-if)# encapsulation frame //封裝為幀中繼
 - R2(config-if)# no frame inverse-arp //關(guān)閉自動獲取
 - R2(config-if)# ip address 192.168.1.2 255.255.255.0
 - R2(config-if)# frame map ip 192.168.1.1 201 //手工指定DLCI 和IP 的映射
 - R2(config-if)# no shutdown
 - R2(config-if)# interface lo 0
 - R2(config-if)# ip address 10.1.0.1 255.255.255.0
 - R2(config-if)# interface lo 1
 - R2(config-if)# ip address 10.1.1.1 255.255.255.0
 - R2(config-if)# interface lo 2
 - R2(config-if)# ip address 10.1.2.1 255.255.255.0
 - R2(config-if)# interface lo 3
 - R2(config-if)# ip address 10.1.3.1 255.255.255.0
 - R3(config)# interface s0/0
 - R3(config-if)# encapsulation frame //封裝為幀中繼
 - R3(config-if)# no frame inverse-arp //關(guān)閉自動獲取
 - R3(config-if)# ip address 192.168.1.3 255.255.255.0
 - R3(config-if)# frame map ip 192.168.1.3 301 //手工指定DLCI 和IP 的映射
 - R3(config-if)# no shutdown
 - R3(config-if)# interface lo 0
 - R3(config-if)# ip address 172.16.0.1 255.255.255.0
 - R3(config-if)# interface lo 1
 - R3(config-if)# ip address 172.16.1.1 255.255.255.0
 - R3(config-if)# interface lo 2
 - R3(config-if)# ip address 172.16.2.1 255.255.255.0
 - R3(config-if)# interface lo 3
 - R3(config-if)# ip address 172.16.3.1 255.255.255.0
 
注意,在作DLCI 和IP 映射時,我們沒有使用broadcast 參數(shù)!
驗證:
- R1#show frame-relay map
 - Serial0/0 (up): ip 192.168.1.2 dlci 102(0×66,0×1860), static,
 - CISCO, status defined, active
 - Serial0/0 (up): ip 192.168.1.3 dlci 103(0×67,0×1870), static,
 - CISCO, status defined, active
 - 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 = 8/45/96 ms
 - R1#ping 192.168.1.3
 - Type escape sequence to abort.
 - Sending 5, 100-byte ICMP Echos to 192.168.1.3, timeout is 2 seconds:
 - !!!!!
 - Success rate is 100 percent (5/5), round-trip min/avg/max = 16/51/100 ms
 
幀中繼的路由器和交換機模擬配置的過程就是以上這些內(nèi)容,命令比較多,應用起來復雜,所以讀者需要認真和耐心了,關(guān)于EIGRP單播及帶寬配置請閱讀:
CCNP:EIGRP帶寬實例配置解析和EIGRP路由協(xié)議的配置實例解析
責任編輯:佚名 
                    來源:
                    咦哇噢博客
 














 
 
 





 
 
 
 