一、拓扑

二、要求
1、R5为ISP,只能进行I地址配置,其所有地址均配为公有IP地址;
2、R1和R5间使用PPP的PAP认证,R5为主认证R2与R5之间使用ppp的cHAP认证,R5为主认证方;R3与R5之间使用HDLC封装;
R1、R2、R3构建一个MGRE环境,R1为中心站点,R1、R4间为点到点的GRE;
3、整个私有网络基本RIP全网可达;
4、整个私有网络基本RIP全网可达;
5、所有Pc设置私有IP为源IP,可以访问5环回。
三、配置
R1
sys R1
interface g 0/0/0
ip address 192.168.1.0 24
interface Serial 4/0/0
ip address 15.1.1.0 24
link-protocol ppp
ppp pap sent-username R1 password simple 123456
interface s 4/0/1
ip address 10.1.1.1 24
interface tnnel 0
ip address 10.1.2.1 24
tunnel-protocol gre p2mp
source s 4/0/1
nhrp network-id 100
nhrp entry 10.1.2.2 10.1.1.2 register
nhrp entry 10.1.2.3 10.1.1.3 register
interface tunnel 1
ip address 10.1.1.1 24
tunnel-protocol gre
source s 4/0/1
destination 10.1.1.2
rip 1
version 2
network 192.168.1.0
network 10.0.0.0
ip route-static 0.0.0.0 0.0.0.0 15.1.1.2
R2
sys R2
interface g 0/0/0
ip address 192.168.2.0 24
interface s 4/0/0
ip address 25.1.1.0 24
link-protocol ppp
ppp chap user R2
ppp chap password simple 123456
interface s 3/0/1
ip address 10.1.1.2 24
interface tunnel 0
ip address 10.1.2.2 24
tunnel-protocol gre p2mp
source s 3/0/1
nhrp network-id 100
nhrp entry 10.1.2.1 10.1.1.1 register
rip 1
version 2
network 192.168.2.0
network 10.0.0.0
ip route-static 0.0.0.0 0.0.0.0 25.1.1.2
R3
sys R3
interface g 0/0/0
ip address 192.168.3.0 24
interface s 4/0/0
ip address 35.1.1.0 24
link-protocol hdlc
interface s 4/0/0
ip address 10.1.1.3 24
interface tunnel 0
ip address 10.1.2.3 24
tunnel-protocol gre p2mp
source s 4/0/0
nhrp network-id 100
nhrp entry 10.1.2.1 10.1.1.1 register
rip 1
version 2
network 192.168.3.0
network 10.0.0.0
ip route-static 0.0.0.0 0.0.0.0 35.1.1.2
R4
sys R4
interface g 0/0/0
ip address 192.168.4.0 24
interface s 4/0/0
ip address 45.1.1.0 24
interface tunnel 0
ip address 10.1.1.2 24
tunnel-protocol gre
source s 4/0/0
destination 10.1.1.1
rip 1
version 2
network 192.168.4.0
network 10.0.0.0
ip route-static 0.0.0.0 0.0.0.0 tunnel 0
R5
sys R5
interface g 0/0/0
ip address 15.1.1.2 24
interface s 4/0/1
ip address 25.1.1.2 24
interface s 3/0/1
ip address 35.1.1.2 24
interface s 4/0/0
ip address 45.1.1.2 24
aaa
local-user R1 password cipher 123456
local-user R1 service-type ppp
local-user R2 password cipher 123456
local-user R2 service-type ppp
interface s 4/0/0
link-protocol ppp
ppp authentication-mode pap
interface s 4/0/1
link-protocol ppp
ppp authentication-mode chap
interface l 0
ip address 5.5.5.5 255.255.255.255
ip route-static 192.168.1.0 255.255.255.0 15.1.1.0
ip route-static 192.168.2.0 255.255.255.0 25.1.1.0
ip route-static 192.168.3.0 255.255.255.0 35.1.1.0
ip route-static 192.168.4.0 255.255.255.0 45.1.1.0
四、测试
用R2 ping R5
<R2>ping 5.5.5.5
PING s.5.5.5: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Reply Irom 5.5.5.5: byteg=56 Sequence=3 ttl=253 time=60 ms
Reply Erom 5.5.5.5: bytes-56 Sequence-4 ttl-253 time=40 ms
Reply from 5.5.5.5: bytes=56 Sequence=5 ttl-253 time=20 ms
--- 5.5.5.5 ping statistics ---
5 packet(s) tranamitted
3 packet(s) received
40.00% packet loss
round-trip min/avg/max = 20/40/60 ms
1136

被折叠的 条评论
为什么被折叠?



