幀中繼配置

幀中繼網絡在中國是公用傳輸網絡(如中國電信就是提供幀中繼網絡服務),主要用於傳遞數據業務,用戶路由器作爲DCE連接到作爲DCE的幀中繼交換機上,通過幀中繼網絡建立虛電路,虛電路用數據鏈路識別碼來標識


幀中繼配置步驟

1)作爲DTE的路由器配置

①指定路由器接口或子接口,配置網絡層協議地址。

②指定幀中繼協議及其封裝格式(必選)

R1(config-if) # encapsulation  frame-relay  cisco |ietf   //對端同爲Cisco,否則選ietf

③設置帶寬(可選)

④設置LMI類型(可選)

⑤指明點到點子接口連接的DLCI

⑥配置動態或靜態的地址映射(必選)

 

⑦配置SVC(可選)

2)作爲DCE的幀中繼交換機配置

3)查看配置



幀中繼配置舉例


實例8-2 路由器模擬幀中繼交換機的配置,連通網絡,要求R1R2啓用EIGRP路由協議

wKiom1cLpfnA6gZHAAA0wuJO0Qo172.png


R1配置

R1(config)#int  lo0    //loopback0作測試用,因爲連計算機太耗內存了,我用的是GNS3做的實驗

R1(config-if)#ip  add 192.168.10.1  255.255.255.0

R1(config-if)#router   eigrp  1

R1(config-router)#network   192.168.10.0

R1(config-router)#network   10.1.1.0

R1(config-router)#exit

R1(config)#int   s0/0

R1(config-if)#ip  add 10.1.1.1  255.255.255.252

R1(config-if)#encapsulation    frame-relay

R1(config-if)#shut  //配置幀中繼交換機之前,可先關閉路由器廣域網口


R2配置

R2(config)#int  lo0

R2(config-if)#ip  add  192.168.20.1  255.255.255.0

R2(config-if)#router eigrp  1

R2(config-router)#network  192.168.20.0

R2(config-router)#network  10.1.1.0

R2(config-router)#exit

R2(config)#int s0/0

R2(config-if)#ip add 10.1.1.2  255.255.255.252

R2(config-if)#encapsulation    frame-relay

R2(config-if)#shut //配置幀中繼交換機之前,可先關閉路由器廣域網口


FRSwitch配置

①在R1R2之間創建PVC

FRSwitch(config)#frame-relay  switching   //全局模式下啓用幀中繼交換,使其能夠根據DLCI而非根據IP地址轉發幀

 

FRSwitch(config)#int  s0/0

FRSwitch(config-if)#clock rate 64000

FRSwitch(config-if)#encapsulation  frame-relay        //②將接口封閉類型更改爲幀中繼

 

FRSwitch(config-if)#frame-relay  intf-type  dce   //接口改爲DCE

 

創建PVC

FRSwitch(config-if)#frame-relay  route  102  int  s 0/1  201    //DLCI 102 從接口 S0/0 的傳入流量通過 接口S0/1 轉發到DLCI201

FRSwitch(config-if)#no shut

FRSwitch(config)#int s0/1

FRSwitch(config-if)#clock rate 64000

FRSwitch(config-if)#encapsulation  frame-relay

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

 FRSwitch(config-if)#frame-relay  route  201  int  s 0/0  102

FRSwitch(config-if)#no  shut


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章