eNSP-PPP简单配置

文章详细描述了如何在路由器R1、R2和R3间配置PPPMP链路,将两条PPP链路捆绑,设置IP地址,以及进行单向和双向CHAP验证的过程。
摘要由CSDN通过智能技术生成

目录

配置PPP MP组

IP配置

配置PPP CHAP


1、R1和R2使用PPP链路直连,R2和R3把2条PPP链路捆绑为PPP MP直连

配置PPP MP组

R2:

<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]int Mp-group 0/0/0
[R2-Mp-group0/0/0]q
[R2]int Serial 4/0/0
[R2-Serial4/0/0]ppp mp Mp-group 0/0/0
Mar 24 2024 16:56:00-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 on the interface Serial4/0/0 has entered the DOWN state. 
[R2-Serial4/0/0]
[R2-Serial4/0/0]q
[R2]
Mar 24 2024 16:56:04-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PPP
 on the interface Serial4/0/0 has entered the UP state. 	
[R2]int Serial 3/0/1
[R2-Serial3/0/1]ppp mp Mp-group 0/0/0
Mar 24 2024 16:56:22-08:00 R2 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PPP
 on the interface Serial3/0/1 has entered the DOWN state. 
[R2-Serial3/0/1]
Mar 24 2024 16:56:28-08:00 R2 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol PPP
 on the interface Serial3/0/1 has entered the UP state. 
[R2-Serial3/0/1]

R3:

 

<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]int Mp-group 0/0/0
[R3-Mp-group0/0/0]q
[R3]int Serial 4/0/0	
[R3-Serial4/0/0]ppp mp Mp-group 0/0/0
Mar 24 2024 17:00:53-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 on the interface Serial4/0/0 has entered the DOWN state. 
[R3-Serial4/0/0]
[R3-Serial4/0/0]q
Mar 24 2024 17:00:56-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PPP
 on the interface Serial4/0/0 has entered the UP state. 
Mar 24 2024 17:00:56-08:00 R3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PPP
 on the interface Mp-group0/0/0 has entered the UP state. 
[R3]int Serial 3/0/1
[R3-Serial3/0/1]ppp mp Mp-group 0/0/0
[R3-Serial3/0/1]
Mar 24 2024 17:01:15-08:00 R3 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol PPP
 on the interface Serial3/0/1 has entered the DOWN state. 
[R3-Serial3/0/1]
Mar 24 2024 17:01:18-08:00 R3 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol PPP
 on the interface Serial3/0/1 has entered the UP state. 
[R3-Serial3/0/1]

2、按照图示配置IP地址

IP配置

R1:

<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]int Serial 3/0/0
[R1-Serial3/0/0]ip add 192.168.1.1 24
[R1-Serial3/0/0]dis ip int b
*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 6
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 6

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)     
Serial3/0/0                       192.168.1.1/24       up         up        
Serial3/0/1                       unassigned           down       down      
Serial4/0/0                       unassigned           down       down      
Serial4/0/1                       unassigned           down       down      
[R1-Serial3/0/0]

R2:

 

<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]int s	
[R2]int Serial 3/0/0
[R2-Serial3/0/0]ip add 192.168.1.2 24
[R2-Serial3/0/0]
Mar 24 2024 17:04:40-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 IPCP on the interface Serial3/0/0 has entered the UP state. 
[R2-Serial3/0/0]q
[R2]int Mp-group 0/0/0
[R2-Mp-group0/0/0]ip add 192.168.2.1 24
[R2-Mp-group0/0/0]q
[R2]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 4
The number of interface that is UP in Protocol is 3
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      
Mp-group0/0/0                     192.168.2.1/24       up         up        
NULL0                             unassigned           up         up(s)     
Serial3/0/0                       192.168.1.2/24       up         up        
Serial4/0/1                       unassigned           down       down      
[R2]

 R3:

<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]int Mp-group 0/0/0
[R3-Mp-group0/0/0]ip add 192.168.2.2 24
[R3-Mp-group0/0/0]q
[R3]
Mar 24 2024 17:07:20-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 IPCP on the interface Mp-group0/0/0 has entered the UP state. 
[R3]dis ip int b
*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 5
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 5

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              unassigned           down       down      
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
Mp-group0/0/0                     192.168.2.2/24       up         up        
NULL0                             unassigned           up         up(s)     
Serial3/0/0                       unassigned           down       down      
Serial4/0/1                       unassigned           down       down      
[R3]

3、R2对R1的PPP进行单向chap验证

4、R2和R3的PPP进行双向chap验证

配置PPP CHAP

R2对R1验证,故在R2配置用户名和密码,告诉R1:

R2:

<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]aaa
[R2-aaa]local-user a1 password cipher a123456
Info: Add a new user.
Mar 24 2024 17:12:58-08:00 R2 %%01IFPDT/4/IF_STATE(l)[0]:Interface Serial3/0/0 h
as turned into UP state.
Mar 24 2024 17:13:01-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PPP
 on the interface Serial3/0/0 has entered the UP state. 
Mar 24 2024 17:13:01-08:00 R2 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PPP
 IPCP on the interface Serial3/0/0 has entered the UP state. 
[R2-aaa]local-user a1 service-type ppp
[R2-aaa]q
[R2]int Serial 3/0/0
[R2-Serial3/0/0]ppp authentication-mode chap

R1:

<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]int Serial 3/0/0
[R1-Serial3/0/0]ppp chap user a1
[R1-Serial3/0/0]ppp chap password cipher a123456

验证:

 

完成。

R2和R3双向验证:

由于已经配置了a1这个用户,可以直接用,所以只需要在R3上创建一个用户:

R3:

<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]aaa
[R3-aaa]local-user b1 password cipher b123456
Info: Add a new user.	
[R3-aaa]local-user b1 service-type ppp
[R3-aaa]q	
[R3]int Serial 4/0/0
[R3-Serial4/0/0]ppp authentication-mode chap
[R3-Serial4/0/0]q	
[R3]int Serial 3/0/1
[R3-Serial3/0/1]ppp authentication-mode chap
[R3-Serial3/0/1]q	
[R3]int Serial 4/0/0	
[R3-Serial4/0/0]ppp chap user a1	
[R3-Serial4/0/0]ppp chap password cipher a123456
[R3-Serial4/0/0]q	
[R3]int Serial 3/0/1
[R3-Serial3/0/1]ppp chap user a1	
[R3-Serial3/0/1]ppp chap password cipher a123456

R2:

<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]int Serial 4/0/0
[R2-Serial4/0/0]ppp authentication-mode chap
[R2-Serial4/0/0]q
[R2]int Serial 3/0/1
[R2-Serial3/0/1]ppp authentication-mode chap
[R2]int Serial 4/0/0
[R2-Serial4/0/0]ppp chap user b1	
[R2-Serial4/0/0]ppp chap password cipher b123456
[R2-Serial4/0/0]q
[R2]int Serial 3/0/1	
[R2-Serial3/0/1]ppp chap user b1
[R2-Serial3/0/1]ppp chap password cipher b123456

验证:

  • 9
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值