華為FR幀中繼配置


FR幀中繼配置

​ 幀中繼是一種數據包交換通信網絡,一般用在開放系統互連參考模型([Open System Interconnection](https://baike.baidu.com/item/Open System Interconnection))中的數據鏈路層(Data Link Layer)。永久虛擬電路PVC是用在物理網絡交換式虛擬電路(SVCs)上構成端到端邏輯鏈接的,類似於在公共電話交換網中的電路交換,也是幀中繼描述中的一部分,只是現在已經很少在實際中使用。另外,幀中繼最初是為緊湊格式版的X.25協議而設計的。

數據鏈路連接標識符DLCI是用來標識各端點的一個具有局部意義的數值。多個PVC可以連接到同一個物理終端,PVC一般都指定承諾信息速率CIR和額外信息率EIR。

華為設備FR配置命令:
網絡拓撲:

運營商FRSW配置:端口映射

總部AR1配置:

[AR1]interface Serial 1/0/0
進入串行鏈路端口

[AR1-Serial1/0/0]link-protocol fr
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:Y
將此端口的鏈路協議改為中繼FR模式,串行鏈路默認協議為PPP

[AR1-Serial1/0/0]fr interface-type dte
端口模式為DET用戶端,此條命令為默認,可不用配置

[AR1-Serial1/0/0]undo fr inarp
取消動態ARP協議

[AR1-Serial1/0/0]ip address 192.168.1.1 24
配置IP地址

分公司AR2配置:

[AR2]interface Serial 1/0/0
進入串行鏈路端口

[AR2-Serial1/0/0]link-protocol fr
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:Y
將此端口的鏈路協議改為中繼FR模式

[AR2-Serial1/0/0]undo fr inarp
取消動態ARP協議

[AR2-Serial1/0/0]ip address 192.168.1.2 24
配置IP地址

分公司AR3配置:

[AR3]interface Serial 1/0/0
進入串行鏈路端口

[AR3-Serial1/0/0]link-protocol fr
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
將此端口的鏈路協議改為中繼FR模式

[AR3-Serial1/0/0]undo fr inarp
取消動態ARP協議

[AR3-Serial1/0/0]ip address 192.168.1.3 24
配置IP地址
總部AR1配置靜態ARP協議:

[AR1]interface Serial 1/0/0
進入串行鏈路視圖

[AR1-Serial1/0/0]fr map ip 192.168.1.2 102 broadcast 
將本端的DLCI 102鏈路與對端IP 192.168.1.2 進行映向射,也就是與分公司AR2進行映射

[AR1-Serial1/0/0]fr map ip 192.168.1.3 103 broadcast 
將本端的DLCI 103鏈路與對端IP 192.168.1.3 進行映向射,也就是與分公司AR3進行映射

分公司AR2配置靜態ARP協議:

[AR2]interface Serial 1/0/0
進入串行鏈路視圖

[AR2-Serial1/0/0]fr map ip 192.168.1.1 201 broadcast
將本端的DLCI 201鏈路與對端IP 192.168.1.1 進行映向射,也就是與總部AR1進行映射

分公司AR3配置靜態ARP協議:

[AR3]interface Serial 1/0/0
進入串行鏈路視圖

[AR3-Serial1/0/0]fr map ip 192.168.1.1 301 broadcast 
將本端的DLCI 301鏈路與對端IP 192.168.1.1 進行映向射,也就是與總部AR1進行映射
查看映射信息:
[AR1-Serial1/0/0]display fr map-info

Map Statistics for interface Serial1/0/0 (DTE)
  DLCI = 102, IP 192.168.1.2, Serial1/0/0
    create time = 2021/03/29 16:22:58, status = ACTIVE
    encapsulation = ietf, vlink = 2, broadcast
  DLCI = 103, IP 192.168.1.3, Serial1/0/0
    create time = 2021/03/29 16:26:11, status = ACTIVE
    encapsulation = ietf, vlink = 3, broadcast

查看PVC虛電路信息:
[AR1-Serial1/0/0]display fr pvc-info

PVC statistics for interface Serial1/0/0 (DTE, physical UP) 
    DLCI = 102, USAGE = LOCAL (00000100), Serial1/0/0
    create time = 2021/03/29 16:22:58, status = ACTIVE
    InARP = Disable, PVC-GROUP = NONE
    in packets = 5, in bytes = 1889785610240
    out packets = 5, out bytes = 440
 
    DLCI = 103, USAGE = LOCAL (00000100), Serial1/0/0
    create time = 2021/03/29 16:26:11, status = ACTIVE
    InARP = Disable, PVC-GROUP = NONE
    in packets = 6, in bytes = 2267742732288
    out packets = 6, out bytes = 528

分公司之間相互通信:分公司AR2與分公司AR3分別增加靜態映射
兩種方案:
1,通過在運營商FRSW中單獨增加AR2與AR3的相互映射,並在AR2與AR3中分別增加靜態映射。
——此種方案可實現分公司之間可單獨相互訪問
2、直接在AR2與AR3中分別增加靜態映射,但使用的是總部的DLCI鏈路映射
——此種方案也可實現分公司之間相互訪問,但訪問的路由必須要從總部繞路。
方案1:
首先在運營商FRSW中增加分公司AR2與AR2的相互映射

分公司AR2配置:
[AR2]interface Serial 1/0/0

[AR2-Serial1/0/0]fr map ip 192.168.1.3 203 broadcast

分公司AR3配置:
[AR3]interface Serial 1/0/0

[AR3-Serial1/0/0]fr map ip 192.168.1.2 302 broadcast 


方案2:
直接在AR2與AR3增加總部的DLCI鏈路映射
[AR2-Serial1/0/0]fr map ip 192.168.1.3 201 broadcast 

[AR3-Serial1/0/0]fr map ip 192.168.1.2 301 broadcast 

查看路由:
[AR3-Serial1/0/0]display ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 9        Routes : 9        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
    192.168.1.0/24  Direct  0    0           D   192.168.1.3     Serial1/0/0
    192.168.1.1/32  Direct  0    0           D   192.168.1.1     Serial1/0/0
    192.168.1.2/32  Direct  0    0           D   192.168.1.2     Serial1/0/0
    192.168.1.3/32  Direct  0    0           D   127.0.0.1       Serial1/0/0
  192.168.1.255/32  Direct  0    0           D   127.0.0.1       Serial1/0/0
255.255.255.255/32  Direct  0    0           D   127.0.0.1


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM