基于Cisco路由 PPP协议

点对点协议(PPP)为在点对点连接上传输多协议数据包提供了一个标准方法。PPP 最初设计是为两个对等节点之间的 IP 流量传输提供一种封装协议。在 TCP-IP 协议集中它是一种用来同步调制连接的数据链路层协议(OSI 模式中的第二层),替代了原来非标准的第二层协议,即 SLIP。除了 IP 以外 PPP 还可以携带其它协议,包括 DECnet 和 Novell 的 Internet 网包交换(IPX)。

Cisco Packet Tracer中使用Generic-Pt路由器

将两个路由器使用串口连接
串口连接

配置IP地址、更换时钟、更换PPP协议
  1. 进入特权模式
Router>enable 
Router#
  1. 进入全局模式
Router#configure
Router(config)#
  1. 配置响应端口的IP地址
Router(config)#int serial 2/0
Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#no shut
  1. 更改时钟
Router(config-if)#clock rate 56000
  1. 更改PPP协议
Router(config-if)#encapsulation ppp
  1. 查看端口信息
Router#show interfaces serial 2/0
Serial2/0 is up, line protocol is up (connected)
 Hardware is HD64570
 Internet address is 192.168.1.1/24
 MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec,
    reliability 255/255, txload 1/255, rxload 1/255
 Encapsulation PPP, loopback not set, keepalive set (10 sec)
 LCP Open
 Open: IPCP, CDPCP
 Last input never, output never, output hang never
 Last clearing of "show interface" counters never
 Input queue: 0/75/0 (size/max/drops); Total output drops: 0
 Queueing strategy: weighted fair
 Output queue: 0/1000/64/0 (size/max total/threshold/drops)
    Conversations  0/0/256 (active/max active/max total)
    Reserved Conversations 0/0 (allocated/max allocated)
    Available Bandwidth 96 kilobits/sec
 5 minute input rate 0 bits/sec, 0 packets/sec
 5 minute output rate 0 bits/sec, 0 packets/sec
    9 packets input, 820 bytes, 0 no buffer
    Received 4 broadcasts, 0 runts, 0 giants, 0 throttles
    0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
    5 packets output, 640 bytes, 0 underruns
  1. 查看两个路由器联通情况
    对第二个路由器重复上面的操作,但是IP地址要改成192.168.1.2,只要地址不冲突、在同一个网段下面即可
    注意协议要相同,都要改成ppp协议
    然后测试连通性
Router#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值