[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[r1-GigabitEthernet0/0/0]Q
[r1]int g 0/0/1
[r1-GigabitEthernet0/0/1]ip address 15.0.0.1 24
[r1]ip route-static 0.0.0.0 0 15.0.0.2
[r1]int G 0/0/1
[r1-GigabitEthernet0/0/1]ppp pap local-user huawei1 password cipher 123456
[r1]int Tunnel 0/0/0
[r1-Tunnel0/0/0]ip address 192.168.5.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]source 15.0.0.1
[r1-Tunnel0/0/0]nhrp redirect
[r1-Tunnel0/0/0]nhrp entry multicast dynamic
[r1]int Tunnel 0/0/1
[r1-Tunnel0/0/1]ip address 192.168.6.1 24
[r1-Tunnel0/0/1]tunnel-protocol gre
[r1-Tunnel0/0/1]source 15.0.0.1
[r1-Tunnel0/0/1]destination 45.0.0.1
[r1]rip 1
[r1-rip-1]version 2
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 192.168.5.0
[r1-rip-1]network 192.168.6.0
[r1-rip-1]q
[r1]int Tunnel 0/0/0
[r1-Tunnel0/0/0]rip summary-address 192.168.0.0 255.255.0.0
[r1]acl 2000
[r1-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[r1-acl-basic-2000]q
[r1]int G 0/0/1
[r1-GigabitEthernet0/0/1]nat outbound 2000
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.2.1 24
[r2-GigabitEthernet0/0/0]q
[r2]int g 0/0/1
[r2-GigabitEthernet0/0/1]ip address 25.0.0.1 24
[r2]ip route-static 0.0.0.0 0 25.0.0.2
[r2]int g 0/0/1
[r2-GigabitEthernet0/0/1]ppp chap user huawei2
[r2-GigabitEthernet0/0/1]ppp chap password cipher 123456
[r2]int Tunnel 0/0/0
[r2-Tunnel0/0/0]ip address 192.168.5.2 24
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp
[r2-Tunnel0/0/0]nhrp shortcut
[r2]rip 1
[r2-rip-1]version 2
[r2-rip-1]network 192.168.2.0
[r2-rip-1]network 192.168.5.0
[r2]acl 2000
[r2-acl-basic-2000]rule permit source 192.168.2.0 0.0.0.255
[r2-acl-basic-2000]int g 0/0/1
[r2-GigabitEthernet0/0/1]nat outbound 2000
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip address 192.168.3.1 24
[r3]int g 0/0/1
[r3-GigabitEthernet0/0/1]ip address 35.0.0.1 24
[r3]ip route-static 0.0.0.0 0 35.0.0.2
[r3]int g 0/0/1
[r3-GigabitEthernet0/0/1]link-protocol hdlc
[r3]int Tunnel 0/0/0
[r3-Tunnel0/0/0]ip address 192.168.5.3 24
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[r3-Tunnel0/0/0]nhrp shortcut
[r3]rip 1
[r3-rip-1]version 2
[r3-rip-1]network 192.168.3.0
[r3-rip-1]network 192.168.5.0
[r3]acl 2000
[r3-acl-basic-2000]rule permit source 192.168.3.0 0.0.0.255
[r3]int g 0/0/1
[r3-GigabitEthernet0/0/1]nat outbound 2000
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip address 192.168.4.1 24
[r4-GigabitEthernet0/0/0]q
[r4] int g 0/0/1
[r4-GigabitEthernet0/0/1]ip address 45.0.0.1 24
[r4]ip route-static 0.0.0.0 0 45.0.0.2
[r4]int Tunnel 0/0/1
[r4-Tunnel0/0/1]ip address 192.168.6.4 24
[r4-Tunnel0/0/1]tunnel-protocol gre
[r4-Tunnel0/0/1]source 45.0.0.1
[r4-Tunnel0/0/1]destination 15.0.0.1
[r4]rip 1
[r4-rip-1]version 2
[r4-rip-1]network 192.168.4.0
[r4-rip-1]network 192.168.6.0
[r4-rip-1]q
[r4]acl 2000
[r4-acl-basic-2000]rule permit source 192.168.4.0 0.0.0.255
[r4-acl-basic-2000]q
[r4]int g0/0/1
[r4-GigabitEthernet0/0/1]nat outbound 2000
[r5]int g0/0/0
[r5-GigabitEthernet0/0/0]ip address 45.0.0.2 24
[r5-GigabitEthernet0/0/0]q
[r5]int g 4/0/0
[r5-GigabitEthernet4/0/0]ip address 15.0.0.2 24
[r5-GigabitEthernet4/0/0]q
[r5]int g 0/0/2
[r5-GigabitEthernet0/0/2]ip address 25.0.0.2 24
[r5-GigabitEthernet0/0/2]q
[r5]int g 0/0/1
[r5-GigabitEthernet0/0/1]ip address 35.0.0.2 24
[r5-LoopBack0]ip add
[r5-LoopBack0]ip address 5.5.5.5 24
[r5]aaa
[r5-aaa]local-user huawei1 password cipher 123456
Info: Add a new user.
[r5-aaa]local-user huawei1 service-type ppp
[r5-aaa]int g 4/0/0
[r5-GigabitEthernet4/0/0]ppp authentication-mode pap
[r5]aaa
[r5-aaa]local-user huawei2 password cipher 1234567
Info: Add a new user.
[r5-aaa]local-user huawei2 service-type ppp
[r5-aaa]int g 0/0/2
[r5-GigabitEthernet0/0/2]ppp authentication-mode chap
[r5]int g 0/0/1
[r5-GigabitEthernet0/0/1]link-protocol hdlc