实验原理
HDLC,高级数据链路控制协议,运行在数据链路层,只运行在部分专网中封装透传业务。面向比特的。
PPP是一种数据链路层协议,主要用于在全双工的同异步链路上进行点到点的数据传输。ppp设计初衷,即使在为两个对等节点之间的IP流量提供封装协议。面向字节的。
串行链路是指信息的各位数据逐位按顺序传送的线路,用于远距离通信,速度较慢,与之相对的是并行链路,能够在一个时刻传送一个8bit的数据。同步和异步是广域网的串行链路的两种传输模式,
实验目的
掌握ppp基本配置
掌握HDLC基本配置
理解ppp和hdlc的不同
实验拓扑
实验步骤
1,基本配置,测试联通性
2,配置PPP
在R2上配置默认路由指向出口网关R1,并在R1上配置目的网段为pc-1所在网络的静态路由,吓一跳路由器为R2.
[R2]ip route-static 0.0.0.0 0.0.0.0 192.168.1.2
[R1]ip route-static 172.16.1.0 255.255.255.0 192.168.1.1
3,配置HDLC
在R1和R3的s1/0/1接口上分别使用link-protocol命令配置链路层协议HDLC
[R1]int s1/0/1
[R1-Serial1/0/1]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Sep 15 2021 14:45:52-08:00 R1 %%01IFNET/4/CHANGE_ENCAP(l)[0]:The user performed
the configuration that will change the encapsulation protocol of the link and th
en selected Y.
[R3]int s1/0/1
[R3-Serial1/0/1]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Sep 15 2021 14:47:18-08:00 R3 %%01IFNET/4/CHANGE_ENCAP(l)[0]:The user performed
the configuration that will change the encapsulation protocol of the link and th
en selected Y.
在R3上配置默认路由指向出口网关R1,并在R1上配置目的网段为pc3所在网络的静态路由,下一跳路由器为R3连接R1的s1/0/1接口
[R3]ip route-static 0.0.0.0 0.0.0.0 serial1/0/1
[R1]ip route-static 172.16.3.0 255.255.255.0 serial 1/0/1
测试一下,可以通信