目录
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
验证: