hcip综合实验2

目录

实验拓扑:

实验要求:

实验思路:

实验步骤:

1.配置设备接口IP

2.通过配置缺省路由让公网互通

3.配置ppp

1.R1和R5间的ppp的PAP认证;

2.R2与R5之间的ppp的CHAP认证;

[3. R3与R5之间的HDLC封装;](#3. R3与R5之间的HDLC封装;)

[4.构建R1、R2、R3 MGRE环境](#4.构建R1、R2、R3 MGRE环境)

5.配置R1、R4间为点到点的GRE

6.配置RIP,并在R1上开启伪广播,关闭接口的水平分割

配置RIP:

开启伪广播,关闭接口的水平分割:

7.配置NAT


实验拓扑:

实验要求:

1、R5为ISP,只能进行IP地址配置,其所有地址均配为公有IP地址;

2、R1和R5间使用PPP的PAP认证,R5为主认证方:

R2与R5之间使用ppp的CHAP认证,R5为主认证方;

R3与R5之间使用HDLC封装;

3、R1、R2、R3构建一个MGRE环境,R1为中心站点,R1、R4间为点到点的GRE;

4、整个私有网络基本RIP全网可达,

5、所有pc设置私有IP为源IP,可以访问R5环回,达到全网通。

实验思路:

1.配置设备接口IP

2.配置静态路由协议使私网、公网互通

3.配置ppp

1.R1和R5间的ppp的PAP认证;

2.R2与R5之间的ppp的CHAP认证;

  1. R3与R5之间的HDLC封装;

4.构建R1、R2、R3 MGRE环境

5.配置R1、R4间为点到点的GRE

6.配置RIP,并在R1上开启伪广播,关闭接口的水平分割

7.配置NAT

实验步骤:

1.配置设备接口IP

PC1:

PC2:

PC3:

PC4:

R1:

R2:

R3:

R4:

R5:

环回:

2.通过配置缺省路由让公网互通

R1:

bash 复制代码
[R1]ip route-static 0.0.0.0 0 15.1.1.5

R2:

bash 复制代码
[R2]ip route-static 0.0.0.0 0 25.1.1.5

R3:

bash 复制代码
[R3]ip route-static 0.0.0.0 0 35.1.1.5

R4:

bash 复制代码
[R4]ip route-static 0.0.0.0 0 45.1.1.5

检测公网通(R1 ping R2\R3):

3.配置ppp

1.R1和R5间的ppp的PAP认证;

验证方(R5):

被验证方(R1):

2.R2与R5之间的ppp的CHAP认证;

验证方(R5):

被验证方(R2):

3. R3与R5之间的HDLC封装;

R3:

R3-Serial4/0/0\]link-protocol hdlc R5: \[R5-Serial4/0/0\]link-protocol hdlc ### 4.构建R1、R2、R3 MGRE环境 R1: ![](https://file.jishuzhan.net/article/1774691768751624193/ac78835db098eda6a9c50dfbd4517f75.webp) R2: ![](https://file.jishuzhan.net/article/1774691768751624193/0897ecfe87e189aaf6c324510b2ee126.webp) (这里源IP改为用接口表示) ![](https://file.jishuzhan.net/article/1774691768751624193/881ca0b61256baccf3147a21ad9e3d64.webp) ![](https://file.jishuzhan.net/article/1774691768751624193/31150717d480fd390213df1f7abbaa8d.webp) R3: ![](https://file.jishuzhan.net/article/1774691768751624193/4ad4e2d0a8ae82a3412a9f194cfcc67c.webp) 查看: ![](https://file.jishuzhan.net/article/1774691768751624193/ca1e9d995fe5410932498bb20240ae7f.webp) ### 5.配置R1、R4间为点到点的GRE R1: ![](https://file.jishuzhan.net/article/1774691768751624193/cc77c6837192458ba6af0454c0fe19b6.webp) R4: ![](https://file.jishuzhan.net/article/1774691768751624193/c1f7649f414ea0fea0b20bef6790a34a.webp) 测试: ![](https://file.jishuzhan.net/article/1774691768751624193/ff4d9a0a30ee64e331f97f67ec4c635c.webp) ### 6.配置RIP,并在R1上开启伪广播,关闭接口的水平分割 #### 配置RIP: ![](https://file.jishuzhan.net/article/1774691768751624193/f65ee077ac17b98b8ee6159724f95e11.webp) ![](https://file.jishuzhan.net/article/1774691768751624193/d56711533eeaf2a2d762e190709ec0d4.webp) ![](https://file.jishuzhan.net/article/1774691768751624193/779a952305106f82d7dd5cbb80f6ff64.webp) ![](https://file.jishuzhan.net/article/1774691768751624193/87d3126f7dd190c052229f1100d36295.webp) #### 开启伪广播,关闭接口的水平分割: \[R1-Tunnel0/0/0\]nhrp entry multicast dynamic \[R2-Tunnel0/0/0\]undo rip split-horizon \[R3-Tunnel0/0/0\]undo rip split-horizon 检测(PC2 ping PC3): ![](https://file.jishuzhan.net/article/1774691768751624193/d308b803fe156a70b5a1f7ca8f3476c4.webp) ### 7.配置NAT ![](https://file.jishuzhan.net/article/1774691768751624193/60a4444ffb810f2c107f0073b1306f33.webp) ![](https://file.jishuzhan.net/article/1774691768751624193/b62f237e48f2931054bfd85cf2c00e84.webp) ![](https://file.jishuzhan.net/article/1774691768751624193/bb3410a8d81c2860b440adfe0f48dc17.webp) ![](https://file.jishuzhan.net/article/1774691768751624193/52edee2a91e077b2eefc645c62a9a365.webp) ![](https://file.jishuzhan.net/article/1774691768751624193/eccf24ff7d7ebeca278e9e4d1048f2fc.webp)

相关推荐
wljt13 分钟前
HTTP和openFeign
网络·网络协议·http
人工智能训练6 小时前
【极速部署】Ubuntu24.04+CUDA13.0 玩转 VLLM 0.15.0:预编译 Wheel 包 GPU 版安装全攻略
运维·前端·人工智能·python·ai编程·cuda·vllm
汤愈韬7 小时前
ACL概述、ACL原理、基本ACL应用及配置
网络·网络协议·网络安全
微露清风7 小时前
系统性学习Linux-第二讲-基础开发工具
linux·运维·学习
阳光九叶草LXGZXJ8 小时前
达梦数据库-学习-48-DmDrs控制台命令(同步之Manager、CPT模块)
linux·运维·数据库·sql·学习
小二李9 小时前
第11章 nestjs服务端开发:登录鉴权
运维·服务器
i建模10 小时前
如何在Arch Linux中重设忘记的root密码
linux·运维·服务器
chatexcel11 小时前
元空AI+Clawdbot:7×24 AI办公智能体新形态详解(长期上下文/自动化任务/工具粘合)
运维·人工智能·自动化
码刘的极客手记11 小时前
VCAP4-DCA Beta 考试体验分享与 esxcli 自动化实战(第二、三部分)
网络·esxi·vmware·虚拟机
kida_yuan11 小时前
【Linux】运维实战笔记 — 我常用的方法与命令
linux·运维·笔记