一、配置isp
[isp]int g0/0/0
[isp-GigabitEthernet0/0/0]ip address 2.2.2.1 24
[isp-GigabitEthernet0/0/0]int lo0
[isp-LoopBack0]ip add 5.5.5.1 24
[isp-LoopBack0]q
[isp]int s 4/0/0
[isp-Serial4/0/0]ip add 1.1.1.2 24
[isp-Serial4/0/0]int s 4/0/1
[isp-Serial4/0/1]ip add 4.4.4.1 24
[isp-Serial4/0/1]int s 3/0/0
[isp-Serial3/0/0]ip add 3.3.3.1 24
二、R1和R5之间使用ppp的pap认证,R5为主认证方
[r1-aaa]local-user admin password cipher 123456
[r1-aaa]local-user admin service-type ppp
[r1-aaa]q
[r1]int s 4/0/0
[r1-Serial4/0/0]ppp authentication-mode pap
[isp-Serial4/0/0]ppp pap local-user admin password cipher 123456
重启接口
[isp-Serial4/0/0]shutdown
[isp-Serial4/0/0]undo shutdown
[isp-Serial4/0/0]display this
[V200R003C00]
#
interface Serial4/0/0
link-protocol ppp
ppp pap local-user admin password cipher %$%$eE@"Qv)rRE#J/PI_'F/M,"Pb%$%$
ip address 1.1.1.2 255.255.255.0
#
return
三、R2和R5之间使用ppp的chap认证,R5为主认证方
[r2-Serial4/0/0]ppp chap user admin
[r2-Serial4/0/0]ppp chap password cipher 123456
[isp]int s4/0/1
[isp-Serial4/0/1]ppp authentication-mode chap
重启接口
[isp-Serial4/0/1]shutdown
[isp-Serial4/0/1]undo shutdown
四、R3和R5使用HDLC封装
[r3-Serial4/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Sep 19 2022 17:04:36-08:00 r3 %%01IFNET/4/CHANGE_ENCAP(l)[2]:The user performed
the configuration that will change the encapsulation protocol of the link and th
en selected Y.
[isp-Serial3/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Sep 19 2022 17:05:43-08:00 isp %%01IFNET/4/CHANGE_ENCAP(l)[3]:The user performed
the configuration that will change the encapsulation protocol of the link and t
hen selected Y.
五、R1、R4之间为点到点的GRE
[r1]int t 0/0/0
[r1-Tunnel0/0/0]ip add 192.168.3.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre
[r1-Tunnel0/0/0]shutdown
[r1-Tunnel0/0/0]source 1.1.1.1
[r1-Tunnel0/0/0]destination 2.2.2.2
[r4]int t0/0/0
[r4-Tunnel0/0/0]ip add 192.168.3.2 24
[r4-Tunnel0/0/0]tu
[r4-Tunnel0/0/0]tunnel-protocol gre
[r4-Tunnel0/0/0]so
[r4-Tunnel0/0/0]source 2.2.2.2
[r4-Tunnel0/0/0]de
[r4-Tunnel0/0/0]description 1.1.1.1
六、R1/R2/R4构建一个MGRE环境,R1为中心站点
[r1-Tunnel0/0/0]int t0/0/1
[r1-Tunnel0/0/1]ip add 192.168.6.1 24
[r1-Tunnel0/0/1]tu
[r1-Tunnel0/0/1]tunnel-protocol gre p2mp
[r1-Tunnel0/0/1]so
[r1-Tunnel0/0/1]source 1.1.1.1
Sep 19 2022 17:21:43-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/1 has entered the UP state.
[r1-Tunnel0/0/1]
[r1-Tunnel0/0/1]nhrp ne
[r1-Tunnel0/0/1]nhrp network-id 100
[r2]int t 0/0/1
[r2-Tunnel0/0/1]ip add 192.168.6.3 24
[r2-Tunnel0/0/1]tu
[r2-Tunnel0/0/1]tunnel-protocol gre p2mp
[r2-Tunnel0/0/1]so
[r2-Tunnel0/0/1]source s 4/0/0
[r2-Tunnel0/0/1]nhrp ne
[r2-Tunnel0/0/1]nhrp network-id 100
[r2-Tunnel0/0/1]nhrp e
[r2-Tunnel0/0/1]nhrp entry 192.168.6.1 1.1.1.1 r
[r2-Tunnel0/0/1]nhrp entry 192.168.6.1 1.1.1.1 register
[r3]int Tunnel 0/0/1
[r3-Tunnel0/0/1]ip add 192.168.6.2 24
[r3-Tunnel0/0/1]tunnel-protocol gre p2mp
[r3-Tunnel0/0/1]source Serial 4/0/0
Sep 19 2022 17:29:33-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/1 has entered the UP state.
[r3-Tunnel0/0/1]
[r3-Tunnel0/0/1]nhrp network-id 100
[r3-Tunnel0/0/1]nhrp entry 192.168.6.1 1.1.1.1 register