配R1ip地址
[R1]int s 3/0/0
[R1-Serial3/0/0]ip add 192.168.1.1 24
[R1-Serial3/0/0]q
[R1]dis ip int b
[R1]dis ip int 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 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]
R2
[R2]int s 3/0/0
[R2-Serial3/0/0]ip add 192.168.1.2 24
[R2-Serial3/0/0]
Mar 28 2024 15:56:08-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
[R2]int Mp-group 0/0/0
[R2-Mp-group0/0/0]
[R2-Mp-group0/0/0]
[R2-Mp-group0/0/0]q
[R2]int s 3/0/1
[R2-Serial3/0/1]ppp mp mp
[R2-Serial3/0/1]ppp mp Mp-group 0/0/0
Mar 28 2024 15:59:18-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]
[R2-Serial3/0/1]
Mar 28 2024 15:59:21-08:00 R2 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PPP
on the interface Serial3/0/1 has entered the UP state.
[R2-Serial3/0/1]q
[R2]int s 4/0/0
[R2-Serial4/0/0]ppp mp mp
[R2-Serial4/0/0]ppp mp Mp-group 0/0/0
Mar 28 2024 16:00:27-08:00 R2 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol PPP
on the interface Serial4/0/0 has entered the DOWN state.
[R2-Serial4/0/0]
[R2-Serial4/0/0]
Mar 28 2024 16:00:33-08:00 R2 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol PPP
on the interface Serial4/0/0 has entered the UP state.
[R2-Serial4/0/0]q
R3
[R3]int s 3/0/0
[R3-Serial3/0/0]ppp mp mp
[R3-Serial3/0/0]ppp mp Mp-group 0/0/0
Mar 28 2024 16:05:01-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]
[R3-Serial3/0/0]
Mar 28 2024 16:05:05-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 28 2024 16:05:05-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]int s 3/0/1
[R3-Serial3/0/1]ppp mp mp
[R3-Serial3/0/1]ppp mp Mp-group 0/0/0
[R3-Serial3/0/1]
Mar 28 2024 16:06:00-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 28 2024 16:06:06-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]dis ip int b
[R3]dis ip int 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 unassigned up up
NULL0 unassigned up up(s)
Serial4/0/0 unassigned down down
Serial4/0/1 unassigned down down
[R3]
[R3]int mp
[R3]int Mp-group 0/0/0
[R3-Mp-group0/0/0]ip add 192.168.2.3 24
[R3-Mp-group0/0/0]
Mar 28 2024 16:10:33-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-Mp-group0/0/0]q
[R3]
R2对R1的ppp进行单向chap验证
R1
[R1]int s 3/0/0
[R1-Serial3/0/0]ppp ca
[R1-Serial3/0/0]ppp chap u
[R1-Serial3/0/0]ppp chap user wangdaye
[R1-Serial3/0/0]ppp chap p
[R1-Serial3/0/0]ppp chap password ci
[R1-Serial3/0/0]ppp chap password cipher wdy12345
[R1-Serial3/0/0]q
[R1]
[R1]
[R1]int s 3/0/0
[R1-Serial3/0/0]dis th
[V200R003C00]
#
interface Serial3/0/0
link-protocol ppp
ppp chap user wangdaye
ppp chap password cipher %$%$KAMf+yfb[1t+{$'Lkm%%,#o`%$%$
ip address 192.168.1.1 255.255.255.0
#
return
[R1-Serial3/0/0]
[R1-Serial3/0/0]undo ppp chap pass
[R1-Serial3/0/0]undo ppp chap password
[R1-Serial3/0/0]ppp chap p
[R1-Serial3/0/0]ppp chap password ci
[R1-Serial3/0/0]ppp chap password cipher 12345
[R1-Serial3/0/0]q
[R1]
[R1]
[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=170 ms
Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=255 time=10 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=20 ms
Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=255 time=30 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/50/170 ms
[R1]
R2
[R2]int mp
[R2]int Mp-group 0/0/0
[R2-Mp-group0/0/0]ip add 192.168.2.2 24
[R2-Mp-group0/0/0]
Mar 28 2024 16:10:34-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
IPCP on the interface Mp-group0/0/0 has entered the UP state.
[R2-Mp-group0/0/0]q
[R2]
[R2]
[R2]
[R2]aaa
[R2-aaa]loc
[R2-aaa]local-user wangdaye pa
[R2-aaa]local-user wangdaye password ci
[R2-aaa]local-user wangdaye password cipher wdy12345
Info: Add a new user.
[R2-aaa]
[R2-aaa]
[R2-aaa]lo
[R2-aaa]local-user wangdaye se
[R2-aaa]local-user wangdaye service-type ppp
[R2-aaa]q
[R2]
[R2]
[R2]int s 3/0/0
[R2-Serial3/0/0]ppp au
[R2-Serial3/0/0]ppp authentication-mode chap
[R2-Serial3/0/0]q
[R2]
R2和R3的双向chap验证
R2
[R2-aaa]lo
[R2-aaa]local-user
[R2-aaa]local-user zhangdaye pa
[R2-aaa]local-user zhangdaye password ci
[R2-aaa]local-user zhangdaye password cipher zdy12345
[R2-aaa]local-user zhangdaye service-type ppp
[R2-aaa]q
[R2]int s 3/0/1
[R2-Serial3/0/1]ppp au
[R2-Serial3/0/1]ppp authentication-mode c
[R2-Serial3/0/1]ppp authentication-mode chap
[R2]int s 4/0/0
[R2-Serial4/0/0]ppp au
[R2-Serial4/0/0]ppp authentication-mode
[R2-Serial4/0/0]ppp authentication-mode ch
[R2-Serial4/0/0]ppp authentication-mode chap
[R2-Serial4/0/0]q
[R2]
R3
[R3]int s3/0/0
[R3-Serial3/0/0]ppp chap p
[R3-Serial3/0/0]ppp chap u
[R3-Serial3/0/0]ppp chap user zhangdaye
[R3-Serial3/0/0]ppp chap p
[R3-Serial3/0/0]ppp chap password ci
[R3-Serial3/0/0]ppp chap password cipher zdy12345
[R3-Serial3/0/0]q
[R3]int s 3/0/1
[R3-Serial3/0/1]ppp chap u
[R3-Serial3/0/1]ppp chap user zhangdaye
[R3-Serial3/0/1]ppp chap p
[R3-Serial3/0/1]ppp chap password ci
[R3-Serial3/0/1]ppp chap password cipher zdy12345
[R3-Serial3/0/1]q
[R3]aaa
[R3-aaa]lo
[R3-aaa]local-user zhangdaye pa
[R3-aaa]local-user zhangdaye password ci
[R3-aaa]local-user zhangdaye password cipher zdy12345
Info: Add a new user.
[R3-aaa]lo
[R3-aaa]local-user zhangdaye se
[R3-aaa]local-user zhangdaye service-type ppp
[R3-aaa]q
[R3]int s 3/0/0
[R3-Serial3/0/0]ppp au
[R3-Serial3/0/0]ppp authentication-mode ch
[R3-Serial3/0/0]ppp authentication-mode chap
[R3-Serial3/0/0]q
[R3]int s 3/0/1
[R3-Serial3/0/1]ppp au
[R3-Serial3/0/1]ppp authentication-mode chap
[R3-Serial3/0/1]q
[R3]