GAR路由器PPP实验


15.6 配置步骤
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认证的方式
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值