云计算HCIP7.25作业

一、拓扑

二、要求

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值