NA筆記-幀中繼1

                                                CCNA-幀中繼1

 

1. 幀中繼爲NBMA 非廣播型多路訪問,不支持廣播、組播

2. 幀中繼通過特殊命令可以運行僞廣播(模擬廣播)

   broadcast  廣播關鍵字   在映射條目中有此關鍵字表示支持廣播

 

3. DLCI數據鏈路連接標識

         1)由供應商分配

         2)幀中繼dlci僅具有本地意義

         3dlci 015    10081023 留作特殊用途;

            dlci通常分配範圍是 16 1007之間

         4vc   虛電路

         5LMI    路由器從幀中繼交換機的幀封裝接口接受LMI信息,並將虛鏈路狀態更新爲一下三種狀態:

                   Acctive  state                  正常

                   inactive   state                  遠程路由器沒工作

                   deleted    state                  接口沒收到LMI信息,可能映射問題或線路問題

 

4. 在幀中繼中,路由器需要正常使用了RIP EIGRPOSPF等協議有兩種方法

         1)通過 inverse-arp       自動建立映射表

         2)手動配置映射時命令尾部需有broadcast關鍵字

但同時也還存在問題,因RIP  EIGRP 默認開啓水平分割功能,所以會導致 IOU4無法與IOU3學到對方的路由

         3)水平分割:作用是從路由器某個接口接收到的更新信息,不允許在從這個接收口發送回去,避免路由環路現象

 

5. 在幀中繼 1-1 圖中跑RIP EIGRP協議時需要注意水平分割問題,會導致IOU3無法與IOU4相通

   解決辦法:

        

                            1)關閉接口的水平分割功能

                                 RIPno  ip  split-horizon

                                 EIGRPno  ip  split-horizon  eigrp  AS

                            2)採用point-to-point / P to MP 中繼子接口配置

           3)  在IOU4與IOU3中加一條PVC線,但是會增加成

 

        

配置實例:1-1

image.png




1)幀中繼動態映射

frame_sw配置:

 

Frame_sw(config)#frame-relay switching                       #模擬幀中繼交換機

Frame_sw(config)#int s2/0

Frame_sw(config-if)#no sh

Frame_sw(config-if)#encapsulation frame-relay            #啓用幀中繼

Frame_sw(config-if)#clock rate threshold 64000             #設置dce時鐘頻率

Frame_sw(config-if)#frame-relay intf-type dce               #設置爲dce

Frame_sw(config-if)#frame-relay route 102 interface s2/1 201     #設置IOU2IOU4的映射鏈路

Frame_sw(config-if)#frame-relay route 103 int s2/2 301                 #設置IOU2IOU3的映射鏈路

 

Frame_sw(config)#int s2/1

Frame_sw(config-if)#encapsulation frame-relay

Frame_sw(config-if)#no sh

Frame_sw(config-if)#clock rate threshold 64000

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

Frame_sw(config-if)#frame-relay route 201 interface serial 2/0 102

 

Frame_sw(config)#int s2/2

Frame_sw(config-if)#encapsulation frame-relay

Frame_sw(config-if)#no sh

Frame_sw(config-if)#clock rate threshold 64000

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

Frame_sw(config-if)#frame-relay route 301 interface serial 2/0 103

 

 

IOU2配置如下;

IOU2(config)#int s2/0    

IOU2(config-if)#ip add 10.1.123.1 255.255.255.0

IOU2(config-if)#no sh

IOU2(config-if)#encapsulation frame-relay

 

IOU3配置如下;

IOU2(config)#int s2/2   

IOU2(config-if)#ip add 10.1.123.3 255.255.255.0

IOU2(config-if)#no sh

IOU2(config-if)#encapsulation frame-relay

 

 

IOU4配置如下;

IOU2(config)#int s2/1 

IOU2(config-if)#ip add 10.1.123.2 255.255.255.0

IOU2(config-if)#no sh

IOU2(config-if)#encapsulation frame-relay

 

以上IOU設備配置好命令後會學到動態的映射條目

 

測試結果:

                   show      frame-relay               map                    #查看幀中繼映射鏈路狀態

                   show       frame-relay              route                  #查看幀中繼映射表               

 

 

IOU2#show frame-relay map

Serial2/0 (up): ip 10.1.123.2 dlci 102(0x66,0x1860), dynamic(動態),

              broadcast(支持僞廣播),

              CISCO, status defined, active

Serial2/0 (up): ip 10.1.123.3 dlci 103(0x67,0x1870), dynamic,

              broadcast,

              CISCO, status defined, active

IOU3#show frame-relay map

Serial2/2 (up): ip 10.1.123.1 dlci 301(0x12D,0x48D0), dynamic,

              broadcast,, status defined, active

 

IOU4(config)#do show frame-relay map

Serial2/1 (up): ip 10.1.123.1 dlci 201(0xC9,0x3090), dynamic,

              broadcast,, status defined, active

 

Frame_sw#show frame-relay route

Input Intf         Input Dlci         Output Intf      Output Dlci     Status

Serial2/0       102               Serial2/1       201               active

Serial2/0       103               Serial2/2       301               active

Serial2/1       201               Serial2/0       102               active

Serial2/2       301               Serial2/0       103               active

 

 

問題:

1.      發現IOU4IOU3無法互通,都只是能與IOU1相通

2.      發現IOU路由器都無法ping通自己的接口ip

都需要添加靜態映射

IOU3:

         IOU3(config-if)#no frame-relay inverse-arp                                                      #禁用反向ARP

         IOU3(config-if)#frame-relay map ip 10.1.123.3 301        broadcast                  #設置本地接口ip映射

         IOU3(config-if)#frame-relay map ip 10.1.123.2 301        broadcast                  #設置IOU3IOU4

映射鏈路

 

IOU4:

         IOU3(config-if)#no frame-relay inverse-arp

         IOU4(config-if)#frame-relay map ip 10.1.123.2 201        broadcast                  #設置本地接口ip映射

         IOU4(config-if)#frame-relay map ip 10.1.123.3 201        broadcast                  #設置IOU4IOU3的映射鏈路

 

IOU2:

         IOU2(config-if)#frame-relay map ip 10.1.123.1 102        broadcast                  #設置本地接口ip映射

 

 

 

 

 

 

 

 

 2)全部使用靜態映射配置:接口模式下配置如下(簡寫)

IOU2

 frame-relay map ip 10.1.123.1 102 broadcast

 frame-relay map ip 10.1.123.3 103 broadcast

 frame-relay map ip 10.1.123.2 102 broadcast

 

IOU3

 frame-relay map ip 10.1.123.3 301 broadcast

 frame-relay map ip 10.1.123.2 301 broadcast

 frame-relay map ip 10.1.123.1 301 broadcast

 

IOU4

 frame-relay map ip 10.1.123.2 201 broadcast

 frame-relay map ip 10.1.123.3 201 broadcast

 frame-relay map ip 10.1.123.1 201 broadcast

 

結果:

IOU4(config)#do show frame-relay map

Serial2/1 (up): ip 10.1.123.2 dlci 201(0xC9,0x3090), static,

              broadcast,

              CISCO, status defined, active

Serial2/1 (up): ip 10.1.123.3 dlci 201(0xC9,0x3090), static,

              broadcast,

              CISCO, status defined, active

Serial2/1 (up): ip 10.1.123.1 dlci 201(0xC9,0x3090), static,

              broadcast,

              CISCO, status defined, active


show查看命令:

    

                   show      frame-relay               map                    #查看幀中繼映射條目

                   show       frame-relay              route                  #查看幀中繼映射表       

                    show        frame_relay        lmi                          #查看LMI統計信息

                   show        frame_relay        pvc                          #查看pvc統計信息

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