温馨提示:欢迎对技术感兴趣的新手朋友们,希望这些知识点能对大家有帮助。如果有什么不解或疑惑或建议,可留言小编或邮件2355331040@qq.com,我将尽快给予解决。感谢大家的支持和关注,谢谢!!!

学习目标

· 掌握HDLC的基本配置方法

· 掌握DCE时钟波特率的配置方法

· 掌握PPP的基本配置方法

· 掌握PPP链路的PAP认证的配置方法

· 掌握PPP链路的CHAP认证的配置方法

拓扑图

image.png

图6.1 HDLC和PPP配置实验拓扑图

场景

您是公司的网络管理员。公司总部有一台路由器R2,R1和R3分别是其他两个分部的路由器。现在您需要将总部网络和分部网络通过广域网连接起来。在广域网链路上尝试使用HDLC和PPP协议,并在使用PPP协议时配置了不同的认证方式保证安全。

操作步骤

步骤一 实验环境准备

为了保证实验结果的准确性,确保设备以空配置启动。

配置R1

<Huawei>system-view

[Huawei]sysname R1

配置R2

<Huawei>system-view

[Huawei]sysname R2

配置R3

<Huawei>system-view

[Huawei]sysname R3

步骤二 为R1、R2和R3的串行接口配置IP地址

[R1]interface Serial 1/0/0

[R1-Serial1/0/0]ip address 10.0.12.1 24

[R2]interface Serial 1/0/0

[R2-Serial1/0/0]ip address 10.0.12.2 24

[R2-Serial1/0/0]quit

[R2]interface Serial 2/0/0

[R2-Serial2/0/0]ip address 10.0.23.2 24

[R3]interface Serial 2/0/0

[R3-Serial2/0/0]ip address 10.0.23.3 24

步骤三 在串行接口上启用HDLC协议

[R1]interface Serial 1/0/0

[R1-Serial1/0/0]link-protocol hdlc

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

[R2]interface Serial 1/0/0

[R2-Serial1/0/0]link-protocol hdlc

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

[R2-Serial1/0/0]quit

[R2]interface Serial 2/0/0

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

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

[R3]interface Serial 2/0/0

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

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

配置完成后,查看串行接口的状态。以R1上的显示信息为例。

[R1]display interface Serial1/0/0

Serial1/0/0 current state : UP

Line protocol current state : UP

Last line protocol up time : 2016-03-10 11:25:08

Description:HUAWEI, AR Series, Serial1/0/0 Interface

Route Port,The Maximum Transmit Unit is 1500, Hold timer is 10(sec)

Internet Address is 10.0.12.1/24

Link layer protocol is nonstandard HDLC

Last physical up time : 2016-03-22 22:03:46

Last physical down time : 2016-03-22 22:03:44

Current system time: 2016-03-22 22:05:39

Physical layer is synchronous, Baudrate is 64000 bps

Interface is DCE, Cable type is V35, Clock mode is DCECLK1

……output omit……

确认该接口的物理状态和协议状态均已UP后,检测直连链路的连通性。

<R2>ping 10.0.12.1

PING 10.0.12.1: 56 data bytes, press CTRL_C to break

Reply from 10.0.12.1: bytes=56 Sequence=1 ttl=255 time=44 ms

Reply from 10.0.12.1: bytes=56 Sequence=2 ttl=255 time=39 ms

Reply from 10.0.12.1: bytes=56 Sequence=3 ttl=255 time=39 ms

Reply from 10.0.12.1: bytes=56 Sequence=4 ttl=255 time=40 ms

Reply from 10.0.12.1: bytes=56 Sequence=5 ttl=255 time=39 ms

[R2]ping 10.0.23.3

PING 10.0.23.3: 56 data bytes, press CTRL_C to break

Reply from 10.0.23.3: bytes=56 Sequence=1 ttl=255 time=44 ms

Reply from 10.0.23.3: bytes=56 Sequence=2 ttl=255 time=39 ms

Reply from 10.0.23.3: bytes=56 Sequence=3 ttl=255 time=39 ms

Reply from 10.0.23.3: bytes=56 Sequence=4 ttl=255 time=40 ms

Reply from 10.0.23.3: bytes=56 Sequence=5 ttl=255 time=39 ms

下集预告:

配置OSPF、管理串口连接、修改串行接口的封装类型为PPP


微思郭仔
31 声望2 粉丝

微思IT认证培训-思科、华为、红帽、oracle、VMware、PMP、CISP等,一切为了成为更好的自己,加油!!!