、
1.配置Ip地址
R1:
[R1]int Serial 3/0/0
[R1-Serial3/0/0]ip address 192.168.1.1 24
[R1-Serial3/0/0]q
[R1]
R2:
[R2]int Serial 3/0/0
[R2-Serial3/0/0]ip address 192.168.1.2 24
[R2-Serial3/0/0]
Mar 24 2024 21:26:52-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.
创建MP-group接口并让接口加入MP-group组
R2
[R2]interface Mp-group 0/0/0
[R2]interface Serial 3/0/1
[R2-Serial3/0/1]ppp mp Mp-group 0/0/0
Mar 24 2024 21:39:06-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PPP
on the interface Serial3/0/1 has entered the DOWN state.
[R2-Serial3/0/1]q
[R2]int Serial 4/0/0
[R2-Serial4/0/0]ppp mp Mp-group 0/0/0
Mar 24 2024 21:39:40-08:00 R2 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol PPP
on the interface Serial4/0/0 has entered the DOWN state.
R3
[R3]interface Mp-group 0/0/0
[R3-Mp-group0/0/0]ip address 192.168.2.4 24
[R3-Mp-group0/0/0]
Mar 24 2024 22:01:48-08:00 R3 %%01IFNET/4/LINK_STATE(l)[5]:The line protocol PPP
IPCP on the interface Mp-group0/0/0 has entered the UP state.
[R3]interface Serial 3/0/0
[R3-Serial3/0/0]ppp mp Mp-group 0/0/0
Mar 24 2024 21:48:18-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
on the interface Serial3/0/0 has entered the DOWN state.
[R3-Serial3/0/0]
Mar 24 2024 21:48:21-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PPP
on the interface Serial3/0/0 has entered the UP state.
[R3-Serial3/0/0]
Mar 24 2024 21:48:21-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-Serial3/0/0]q
[R3]interface Serial 3/0/1
[R3-Serial3/0/1]ppp mp Mp-group 0/0/0
Mar 24 2024 21:48:47-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 21:48:53-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]q
查看配置
[R3-Mp-group0/0/0]display 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 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.4/24 up up
NULL0 unassigned up up(s)
Serial4/0/0 unassigned down down
Serial4/0/1 unassigned down down
[R3-Mp-group0/0/0]
配置R1-R2单向的chap验证
主验证方:
[R2]aaa
[R2-aaa]local-user xiaotudou password cipher xtd12345
Info: Add a new user.
[R2-aaa]local-user xiaotudou service-type ppp
[R2-aaa]q
[R2]interface Serial 3/0/0
[R2-Serial3/0/0]ppp authentication-mode chap
被验证方:
[R1]interface Serial 3/0/0
[R1-Serial3/0/0]ppp chap user xiaotudou
[R1-Serial3/0/0]ppp chap password cipher xtd12345
[R1-Serial3/0/0]
测试:
[R1]ping 192.168.1.2
PING 192.168.1.2: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.2: bytes=56 Sequence=1 ttl=255 time=40 ms
Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=255 time=40 ms
Reply from 192.168.1.2: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=255 time=10 ms
--- 192.168.1.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 10/28/40 ms
配置R2和R3的双向chap验证
R2:
主:
[R2-aaa]local-user tudou password cipher td12345
Info: Add a new user.
[R2-aaa]local-user tudou service-type ppp
[R2-aaa]q
[R2]int Serial 3/0/1
[R2-Serial3/0/1]ppp authentication-mode chap
从:
[R2]interface Serial 4/0/0
[R2-Serial4/0/0]ppp chap user tudoudou
[R2-Serial4/0/0]ppp chap password cipher tdd12345
R3:
从:
[R3]interface Serial 3/0/0
[R3-Serial3/0/0]ppp chap user tudou
[R3-Serial3/0/0]ppp chap password cipher td12345
主:
[R3-aaa]local-user tudoudou password cipher tdd12345
Info: Add a new user.
[R3-aaa]local-user tudoudou service-type ppp
[R3]int Serial 3/0/1
[R3-Serial3/0/1]ppp authentication-mode chap
[R3-Serial3/0/1]