实验和要求如下图
实验使用dynamic的vpn机架来实现
R1
hostname r1
username ccna password 123456
interface Loopback0
ip address 192.168.1.1 255.255.255.0 interface Tunnel0
ip address 10.1.1.1 255.255.255.0
ip nhrp map multicast dynamic
ip nhrp network-id 100
tunnel source Serial1/2
tunnel mode gre multipoint
interface Serial1/2
ip address 15.1.1.1 255.255.255.0
encapsulation ppp
ppp authentication pap
router eigrp 90
network 10.0.0.0
network 192.168.1.0
no auto-summary
ip route 0.0.0.0 0.0.0.0 15.1.1.2
R2
hostname r2
username r5 password 123456
interface Loopback0
ip address 192.168.2.1 255.255.255.0
interface Tunnel0
ip address 10.1.1.2 255.255.255.0
ip nhrp map 10.1.1.1 15.1.1.1
ip nhrp map multicast 15.1.1.1
ip nhrp map multicast 35.1.1.1
ip nhrp network-id 100
ip nhrp nhs 10.1.1.1
tunnel source Serial1/2
tunnel mode gre multipoint
interface Serial1/2
ip address 25.1.1.1 255.255.255.0
encapsulation ppp
serial restart-delay 0
ppp authentication chap
router eigrp 90
network 10.0.0.0
network 192.168.2.0
no auto-summary
ip route 0.0.0.0 0.0.0.0 25.1.1.2
R3
hostname r3
username ccna password 123456
interface Loopback0
ip address 192.168.3.1 255.255.255.0
interface Tunnel0
ip address 10.1.1.3 255.255.255.0
ip nhrp map 10.1.1.1 15.1.1.1
ip nhrp map multicast 15.1.1.1
ip nhrp map multicast 25.1.1.1
ip nhrp network-id 100
ip nhrp nhs 10.1.1.1
tunnel source Serial1/2
tunnel mode gre multipoint
interface Serial1/2
ip address 35.1.1.1 255.255.255.0
encapsulation ppp
serial restart-delay 0
ppp authentication chap
router eigrp 90
network 10.0.0.0
network 192.168.3.0
no auto-summary
ip route 0.0.0.0 0.0.0.0 35.1.1.2
R5
hostname r5
username r2 password 0 123456
username r3 password 0 123456
interface Serial1/0
ip address 15.1.1.2 255.255.255.0
encapsulation ppp
ppp pap sent-username ccna password 123456
interface Serial1/1
ip address 25.1.1.2 255.255.255.0
encapsulation ppp
interface Serial1/2
ip address 35.1.1.2 255.255.255.0
encapsulation ppp
ppp chap hostname ccna
ppp chap password 123456