GAR路由器PPP实验 配置步骤R1和R2的配置相同,下面以R1为例。R1>enable //在用户模式下输入enablePassword: //输入密码zteR1# R1#config t Enter configuration commands, one per line. End with CTRL/Z.R1(config)
GAR路由器PPP实验 配置步骤 R1和R2的配置相同,下面以R1为例。 R1>enable //在用户模式下输入enable Password: //输入密码zte R1# R1#config t Enter configuration commands, one per line. End with CTRL/Z. R1(config)# R1(config)#controller ce1_2/3 //进入ce1配置模式下 R1(config-control)#channel-group 1 timeslots 1-31 //配置时隙 R1(config-control)#framing frame //配置E1 的帧格式 R1(config-control)#exit R1(config)#interface ce1_2/3.1 //进入子接口 R1(config-subif)#ip address 100.1.1.1 255.255.255.0 //配置接口地址 R1(config-subif)#encapsulation ? frame-relay Frame Relay networks hdlc Serial HDLC synchronous ppp Point-to-Point Protocol x.25 X.25 networks R1(config-subif)#encapsulation ppp //封装ppp R1(config-subif)#ppp authentication ? chap Challenge handshake authentication protocol mode PPP authentication mode pap Password authentication protocol server PPP radius server R1(config-subif)#ppp authentication chap //配置ppp认证模式为chap R1(config-subif)#ppp chap hostname zte //配置认证的用户名zte R1(config-subif)#ppp chap password zte //配置认证的密码zte R1(config-subif)#exit 15.7 验证方法 R2做相关配置后,在R1上观察接口状态 R1#show ip int brief //检查接口的状态 Interface IP-Address Mask AdminStatus PhyStatus Protocol serial_1/1 unassigned unassigned up down down serial_1/2 unassigned unassigned up down down serial_1/3 unassigned unassigned up down down serial_1/4 unassigned unassigned up down down fei_0/1 unassigned unassigned up down down ce1_2/3.1 100.1.1.1 255.255.255.0 up up up 可以观察到ce1_2/3.1的物理状态和协议状态都是UP,说明两个路由器PPP协商成功。 另外还可以在R1上ping通R2接口地址,说明链路层ppp协议工作正常。 R1#ping 100.1.1.2 sending 5,100-byte ICMP echos to 100.1.1.2,timeout is 2 seconds !!!!! Success rate is 100 percent(5/5),round-trip min/avg/max= 0/8/20 ms 15.8 实验结论 PPP(Point-to-Point Protocol)是一个被广泛使用的广域网协议,它实现了跨过同步和异步电路实现路由器到路由器(router-to-router)的点对点连接。大多数的情况下,路由器采用PPP广域网协议都是无认证的方式,再试试无认证和PAP认证的方式
(免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)