r1
sys
sys r1
//acl抓取内网流量
acl 2000
rule permit source 192.168.1.0 0.0.0.255
//配置接口IP地址
int g0/0/0
ip add 192.168.1.1 24
int s4/0/0
nat outbound 2000
ip add 15.0.0.1 24
int t0/0/0
ip add 192.168.5.1 24
int t0/0/1
ip add 192.168.6.1 24
//配置PAP被认证方
int s4/0/0
ppp pap local-user admin_pap password cipher 123456
//配置MGRE
int t0/0/0
tunnel-protocol gre p2mp
source 15.0.0.1
nhrp network-id 100
int t0/0/0
nhrp entry multicast dynamic
undo rip split-horizon
//配置GRE
int t0/0/1
tunnel-protocol gre
source 15.0.0.1
destination 45.0.0.1
//配置RIP
rip 1
v 2
net 192.168.1.0
net 192.168.5.0
net 192.168.6.0
//静态缺省路由
ip route-s 0.0.0.0 0 15.0.0.2
ip route-s 192.168.4.0 24 192.168.5.1
r2
sys
sys r2
//acl抓取内网流量
acl 2000
rule permit source 192.168.2.0 0.0.0.255
//配置接口IP地址
int g0/0/0
ip add 192.168.2.1 24
int s4/0/0
ip add 25.0.0.1 24
nat outbound 2000
int t0/0/0
ip add 192.168.5.2 24
//配置CHAP被认证方
int s4/0/0
ppp chap user admin_chap
ppp chap password cipher 123456
//配置MGRE
int t0/0/0
tunnel-protocol gre p2mp
source s4/0/0
nhrp network-id 100
nhrp entry 192.168.5.1 15.0.0.1 register
//配置RIP
rip 1
v 2
net 192.168.2.0
net 192.168.5.0
//静态缺省路由
ip route-s 0.0.0.0 0 25.0.0.2
r3
sys
sys r3
//acl抓取内网流量
acl 2000
rule permit source 192.168.3.0 0.0.0.255
//配置接口ip地址
int g0/0/0
ip add 192.168.3.1 24
int s4/0/0
ip add 35.0.0.1 24
nat outbound 2000
int t0/0/0
ip add 192.168.5.3 24
//配置MGRE
int t0/0/0
tunnel-protocol gre p2mp
source s4/0/0
nhrp network-id 100
nhrp entry 192.168.5.1 15.0.0.1 register
//配置RIP
rip 1
v 2
net 192.168.3.0
net 192.168.5.0
//静态缺省路由
ip route-s 0.0.0.0 0 35.0.0.2
//配置HDLC
int s4/0/0
link-protocol hdlc
r4
sys
sys r4
//acl抓取内网流量
acl 2000
rule permit source 192.168.4.0 0.0.0.255
//配置接口ip地址
int g0/0/1
ip add 192.168.4.1 24
nat outbound 2000
int g0/0/0
ip add 45.0.0.1 24
int t0/0/0
ip add 192.168.6.2 24
//配置GRE
int t0/0/0
tunnel-protocol gre
source 45.0.0.1
destination 15.0.0.1
//配置RIP
rip 1
v 2
net 192.168.4.0
net 192.168.5.0
net 192.168.6.0
//静态缺省路由
ip route-s 0.0.0.0 0 45.0.0.2
ip route-s 192.168.1.0 24 192.168.5.1
r5
sys
sys ISP
//配置接口ip地址
int s3/0/0
ip add 15.0.0.2 24
int s3/0/1
ip add 25.0.0.2 24
int s4/0/0
ip add 35.0.0.2 24
int g0/0/0
ip add 45.0.0.2 24
int lo0
ip add 5.5.5.5 24
//配置PAP认证
aaa
local-user admin_pap password cipher 123456
local-user admin_pap service-type ppp
int s3/0/0
ppp authentication-mode pap
//配置CHAP认证
aaa
local-user admin_chap password cipher 123456
local-user admin_chap service-type ppp
int s3/0/1
ppp authentication-mode chap
//配置HDLC
int s3/0/1
link-protocol hdlc