路由器使用PPP协议互联

 

 AR1配置

local-user huawei password cipher %$%$6t='8KiYDPz28R<zS4U3}rhP%$%$
 local-user huawei service-type ppp
在AR1上配置地址,CHAP认证和给对端分配地址。
interface Serial4/0/0
 link-protocol ppp
 ppp authentication-mode chap 
 remote address 12.1.1.2 
 ip address 12.1.1.1 255.255.255.0 

AR2配置

在AR2上配置CHAT认证及用自动方式获取IP地址。
interface Serial4/0/0
 link-protocol ppp
 ppp chap user huawei
 ppp chap password cipher %$%$n9BmS2i/|)B!n9&fnVCK,";3%$%$
 ip address ppp-negotiate
复制代码
[AR2]dis ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 4
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 4

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              unassigned           down       down      
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
Serial4/0/0                       12.1.1.2/32          up         up        
Serial4/0/1                       unassigned           down       down  
复制代码
复制代码
[AR2]dis int s4/0/0
Serial4/0/0 current state : UP
Line protocol current state : UP
Last line protocol up time : 2020-05-28 19:09:39 UTC-08:00
Description:HUAWEI, AR Series, Serial4/0/0 Interface
Route Port,The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet Address is negotiated, 12.1.1.2/32
Link layer protocol is PPP
LCP opened, IPCP opened
Last physical up time   : 2020-05-28 19:06:23 UTC-08:00
Last physical down time : 2020-05-28 19:06:20 UTC-08:00
Current system time: 2020-05-28 19:20:35-08:00
Physical layer is synchronous, Virtualbaudrate is 64000 bps
Interface is DTE, Cable type is V11, Clock mode is TC
Last 300 seconds input rate 6 bytes/sec 48 bits/sec 0 packets/sec
Last 300 seconds output rate 2 bytes/sec 16 bits/sec 0 packets/sec

Input: 176 packets, 5656 bytes
  Broadcast:              0,  Multicast:              0
  Errors:                 0,  Runts:                  0
  Giants:                 0,  CRC:                    0

  Alignments:             0,  Overruns:               0
  Dribbles:               0,  Aborts:                 0
  No Buffers:             0,  Frame Error:            0

Output: 177 packets, 2142 bytes
  Total Error:            0,  Overruns:               0
  Collisions:             0,  Deferred:               0
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%
复制代码

 

posted @   星火撩原  阅读(679)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示