用华为ENSP配置点到点帧中继

帧中继是一种广域网技术,是使用一种包交换方式的广域网技术,就是为用户建立一条端到端的虚拟链路,中间经过的帧中继网络对用户是透明的,用起来跟租用物理专线是一样的,而且比租用专线便宜,常用于分公司与总公司之间的连接

帧中继协议是一种统计时分复用的协议,他在单一物理传输线路上能够提供多条虚电路,每一条虚电路都用数据链路连接标识DLCI来标识

配置点到点的帧中继:

 

 

核心代码配置:

AR1:

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

[Huawei]sys R1改名)

[R1]un in en锁定通知信息)

Info: Information center is disabled.

[R1]int s2/0/0进入接口)

[R1-Serial2/0/0]link-protocol fr帧中继协议)

Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]

:y

[R1-Serial2/0/0]fr interface-type dte接口类型为dte)

[R1]int s2/0/0.1 p2p点到点类型子接口)

[R1-Serial2/0/0.1]fr dlci 40指定子接口的DLCI)

[R1-fr-dlci-Serial2/0/0.1-40]q

[R1-Serial2/0/0.1]ip ad 172.16.1.1 24配置子接口的ip地址)

[R1-Serial2/0/0.1]q

[R1]int s2/0/0.2 p2p点到点类型的子接口)

[R1-Serial2/0/0.2]fr dlci 20指定子接口的DLCI)

[R1-fr-dlci-Serial2/0/0.2-20]q

[R1-Serial2/0/0.2]ip address 172.16.0.1 24配置IP地址)

[R1-Serial2/0/0.2]q

[R1]int Vlanif 1

[R1-Vlanif1]ip ad 192.168.0.1 24配置内网接口)

[R1-Vlanif1]q

[R1]ip route-static 192.168.1.0 24 172.16.1.2添加静态路由)

[R1]ip route-static 192.168.2.0 24 172.16.0.2

[R1]

AR2:

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

[Huawei]sys R2

[R2]un in en

Info: Information center is disabled.

[R2]int s2/0/0

[R2-Serial2/0/0]lin

[R2-Serial2/0/0]link-protocol fr

Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]

:y

[R2-Serial2/0/0]fr interface-type dte

[R2-Serial2/0/0]q

[R2]int s2/0/0.1 p2p

[R2-Serial2/0/0.1]q

[R2]int s2/0/0.1 p2p

[R2-Serial2/0/0.1]fr dlci 41

[R2-fr-dlci-Serial2/0/0.1-41]q

[R2-Serial2/0/0.1]ip address 172.16.1.2 24

[R2-Serial2/0/0.1]q

[R2]int s2/0/0.2 p2p

[R2-Serial2/0/0.2]fr dlci 30

[R2-fr-dlci-Serial2/0/0.2-30]q

[R2-Serial2/0/0.2]ip ad 172.16.2.1 24

[R2-Serial2/0/0.2]q

[R2]int Vlanif 1

[R2-Vlanif1]ip address 192.168.1.1 24

[R2-Vlanif1]q

[R2]ip route-static 192.168.0.0 24 172.16.1.1

[R2]ip route-static 192.168.2.0 24 172.16.2.2

[R2]

AR3:

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

[Huawei]sys R3

[R3]un in en

Info: Information center is disabled.

[R3]int s2/0/0

[R3-Serial2/0/0]link-protocol fr

Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]

:y

[R3-Serial2/0/0]fr interface-type dte

[R3-Serial2/0/0]q

[R3]int s2/0/0.1 p2p

[R3-Serial2/0/0.1]fr dlci 31

[R3-fr-dlci-Serial2/0/0.1-31]q

[R3-Serial2/0/0.1]ip address 172.16.2.2 24

[R3-Serial2/0/0.1]q

[R3]int s2/0/0.2 p2p

[R3-Serial2/0/0.2]fr dlci 21

[R3-fr-dlci-Serial2/0/0.2-21]q

[R3-Serial2/0/0.2]ip ad

[R3-Serial2/0/0.2]ip address 172.16.0.2 24

[R3]int Vlanif 1

[R3-Vlanif1]ip address 192.168.2.1 24

[R3-Vlanif1]q

[R3]ip route-static 192.168.0.0 24 172.16.0.1

[R3]ip route-static 192.168.1.0 24 172.16.2.1

[R3]

验证:

猜你喜欢

转载自blog.csdn.net/qq_62466609/article/details/127548874