HCIA实验

实验目的:

1、R6为ISP,接口IP地址均为公有地址,该设备只能配置IP地址,之后不能再对其进行任何配置;
2、R1-R5为局域网,私有IP地址192.168.1.0/24,请合理分配;
3、R1、R2、R4,各有两个环回IP地址;R5,R6各有一个环回地址;所有路由器上环回均代表连接用户的接口;
4、R3下面的两台PC通过DHCP自动获取IP地址;
5、选路最佳,路由表尽量小,避免环路;
6、R1-R5均可以访问R6的环回;
7、R6 telnet R5的公有地址时,实际登录到R1上;
8、R4与R5正常通过1000M链路,故障时通过100m链路;

实验步骤:

1.子网划分:

192.168.1.0 30

192.168.1.4 30

192.168.1.8 30

192.168.1.12 30

192.168.1.16 30

192.168.1.20 30

2.R1配置:

<Huawei>system-view 
[Huawei]sysname R1
[R1]
#配置环回接口
[R1]int loopback 0
[R1-LoopBack0]ip add 192.168.1.33 28
[R1-LoopBack0]int loopback 1
[R1-LoopBack1]ip add 192.168.1.49 28
[R1-LoopBack1]q
[R1]int g 0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.1.1 30
[R1-GigabitEthernet0/0/0]quit
[R1]int g 0/0/1 
[R1-GigabitEthernet0/0/1]ip add 192.168.1.9 30
[R1-GigabitEthernet0/0/1]quit
 
#配置静态路由
[R1]ip route-static 192.168.1.65 28 192.168.1.2
[R1]ip route-static 192.168.1.81 28 192.168.1.2	
[R1]ip route-static 192.168.1.5 28 192.168.1.2
[R1]ip route-static 192.168.1.97 27 192.168.1.10
[R1]ip route-static 192.168.1.13 30 192.168.1.10
[R1]ip route-static 192.168.1.14 30 192.168.1.10
[R1]ip route-static 192.168.1.129 28 192.168.1.2
[R1]ip route-static 192.168.1.145 28 192.168.1.2
[R1]ip route-static 192.168.1.17 30 192.168.1.2
[R1]ip route-static 192.168.1.21 30 192.168.1.2
[R1]ip route-static 192.168.1.161 27 192.168.1.2
[R1]ip route-static 192.168.1.161 27 192.168.1.10
[R1]ip route-static 192.168.1.129 28 192.168.1.10
[R1]ip route-static 192.168.1.145 28 192.168.1.10
 
[R1]ip route-static 192.168.1.32 27 NULL 0
 
#缺省路由
[R1]ip route-static 0.0.0.0 0 192.168.1.2
[R1]ip route-static 0.0.0.0 0 192.168.1.10
 
#配置telent服务
[R1]aaa
[R1-aaa]local-user rrl password cipher  rrl12345 privilege level 15
Info: Add a new user.
[R1-aaa]local-user rrl service-type telnet 
[R1-aaa]q	
[R1]user-in	
[R1]user-interface v	
[R1]user-interface vty 0 4
[R1-ui-vty0-4]au	
[R1-ui-vty0-4]authentication-mode aaa

3.R3配置:

[R3]int g 0/0/0
[R3-GigabitEthernet0/0/0]ip add	
[R3-GigabitEthernet0/0/0]ip address 192.168.1.10 30
Mar 19 2024 16:02:10-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R3-GigabitEthernet0/0/0]q
[R3]
[R3]int g0/0/2
[R3-GigabitEthernet0/0/2]ip add 192.168.1.97 27
[R3-GigabitEthernet0/0/2]q
[R3]int g0/0/1
[R3-GigabitEthernet0/0/1]ip add 192.168.1.13 30
[R3-GigabitEthernet0/0/1]q
 
#dhcp配置
[R3]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[R3]int g0/0/2	
[R3-GigabitEthernet0/0/2]dhcp select global 
[R3-GigabitEthernet0/0/2]q
[R3]ip pool 1
Info: It's successful to create an IP address pool.
[R3-ip-pool-1]network 192.168.1.96 mask 27
[R3-ip-pool-1]gateway-list 192.168.1.97
[R3-ip-pool-1]dns	
[R3-ip-pool-1]dns-list 114.114.114.114
[R3-ip-pool-1]q
#静态路由配置
[R3]ip route-static 192.168.1.33 28 192.168.1.9
[R3]ip route-static 192.168.1.49 28 192.168.1.9
[R3]ip route-static 192.168.1.1 30 192.168.1.9
[R3]ip route-static 192.168.1.6 30 192.168.1.14
[R3]ip route-static 192.168.1.129 28 192.168.1.14
[R3]ip route-static 192.168.1.145 28 192.168.1.14
[R3]ip route-static 192.168.1.17 30 192.168.1.14
[R3]ip route-static 192.168.1.21 30 192.168.1.14
[R3]ip route-static 192.168.1.65 28 192.168.1.9
[R3]ip route-static 192.168.1.65 28 192.168.1.14
[R3]ip route-static 192.168.1.81 28 192.168.1.14
[R3]ip route-static 192.168.1.81 28 192.168.1.9
[R3]ip route-static 192.168.1.161 27 192.168.1.14
#缺省路由
[R3]ip route-static 0.0.0.0 0 192.168.1.14
4.R4配置:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys	
[Huawei]sysname R4
[R4]int loo	
[R4]int LoopBack 0
[R4-LoopBack0]ip add 192.168.1.129 28
[R4-LoopBack0]q
[R4]int loo	
[R4]int LoopBack 1
[R4-LoopBack1]ip add 192.168.1.145 28
[R4-LoopBack1]q
[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 192.168.1.6 30
[R4-GigabitEthernet0/0/0]q
[R4]int g0/0/1
[R4-GigabitEthernet0/0/1]ip add 192.168.1.14 30
[R4-GigabitEthernet0/0/1]q
[R4]int g0/0/2
[R4-GigabitEthernet0/0/2]ip add 192.168.1.17 30
[R4-GigabitEthernet0/0/2]q
[R4]int g4/0/0
[R4-GigabitEthernet4/0/0]ip add 192.168.1.21 30
[R4-GigabitEthernet4/0/0]q
 
 
#静态路由配置
[R4]ip route-static 192.168.1.2 30 192.168.1.5	
[R4]ip route-static 192.168.1.97 27 192.168.1.13
[R4]ip route-static 192.168.1.10 30 192.168.1.13
[R4]ip route-static 192.168.1.33 30 192.168.1.13
[R4]ip route-static 192.168.1.49 30 192.168.1.13
[R4]ip route-static 192.168.1.65 28 192.168.1.5
[R4]ip route-static 192.168.1.81 28 192.168.1.5
[R4]ip route-static 192.168.1.161 27 192.168.1.18
[R4]ip route-static 192.168.1.161 27 192.168.1.22
[R4]ip route-static 192.168.1.33 30 192.168.1.5
[R4]ip route-static 192.168.1.49 30 192.168.1.5
 
[R4]ip route-static 192.168.1.128 27 NULL 0
 
#缺省路由
[R4]ip route-static 0.0.0.0 0 192.168.1.18
[R4]ip route-static 0.0.0.0 0 192.168.1.22
 
 
#更改优先级
[R4]ip route-static 0.0.0.0 0 192.168.1.22 preference 61
5.R5配置:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys	
[Huawei]sysname R5
#环回接口
[R5]int LoopBack 0
[R5-LoopBack0]ip add 192.168.1.161 27
[R5]int g0/0/0
[R5-GigabitEthernet0/0/0]ip add 192.168.1.18 30
[R5-GigabitEthernet0/0/0]q
[R5]int g0/0/2
[R5-GigabitEthernet0/0/2]ip add 192.168.1.22 30
[R5-GigabitEthernet0/0/2]q
[R5]int g0/0/1 
[R5-GigabitEthernet0/0/1]ip add 12.0.0.1 24
[R5-GigabitEthernet0/0/1]q
[R5]q
<R5>save
 
#静态路由配置
[R5]ip route-static 192.168.1.6 30 192.168.1.17
[R5]ip route-static 192.168.1.65 28 192.168.1.17
[R5]ip route-static 192.168.1.81 28 192.168.1.17
[R5]ip route-static 192.168.1.14 30 192.168.1.17
[R5]ip route-static 192.168.1.97 27 192.168.1.17
[R5]ip route-static 192.168.1.2 30 192.168.1.17
[R5]ip route-static 192.168.1.10 30 192.168.1.17
[R5]ip route-static 192.168.1.33 28 192.168.1.17
[R5]ip route-static 192.168.1.49 28 192.168.1.17
[R5]ip route-static 192.168.1.129 28 192.168.1.21
[R5]ip route-static 192.168.1.145 28 192.168.1.21
[R5]ip route-static 192.168.1.6 30 192.168.1.21
[R5]ip route-static 192.168.1.65 28 192.168.1.21
[R5]ip route-static 192.168.1.81 28 192.168.1.21
[R5]ip route-static 192.168.1.2 30 192.168.1.21
[R5]ip route-static 192.168.1.33 28 192.168.1.21
[R5]ip route-static 192.168.1.49 28 192.168.1.21
[R5]ip route-static 192.168.1.10 30 192.168.1.21
[R5]ip route-static 192.168.1.97 27 192.168.1.21
 
#公网配置
[R5]ip route-static 0.0.0.0 0 12.0.0.6
[R5]acl 2000                	
[R5-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[R5-acl-basic-2000]q
[R5]  int 0/0/1
[R5]int g0/0/1
[R5-GigabitEthernet0/0/1]nat o	
[R5-GigabitEthernet0/0/1]nat outbound 2000
[R5-GigabitEthernet0/0/1]q
 
#telent地址1映射
[R5]int g0/0/1
[R5-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 23 in	
 
[R5-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 23 ins
ide 192.168.1.1 23
Warning:The port 23 is well-known port. If you continue it may cause function fa
ilure.
Are you sure to continue?[Y/N]:y
 
 
#更改优先级,将192.168.1.20网段优先级改为61
[R5]ip route-static 192.168.1.0 30 192.168.1.21 pre 61
Info: Succeeded in modifying route.
[R5]ip route-static 192.168.1.4 30 192.168.1.21 pre 61
Info: Succeeded in modifying route.
[R5]ip route-static 192.168.1.8 30 192.168.1.21 pre 61
Info: Succeeded in modifying route.
[R5]ip route-static 192.168.1.12 30 192.168.1.21 pre 61
[R5]ip route-static 192.168.1.64 27 192.168.1.21 pre 61
[R5]ip route-static 192.168.1.32 27 192.168.1.21 pre 61
[R5]ip route-static 192.168.1.128 27 192.168.1.21 pre 61
[R5]ip route-static 192.168.1.96 27 192.168.1.21 pre 61
6.R6配置:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys	
[Huawei]sysname R6
[R6]int g0/0/0
[R6-GigabitEthernet0/0/0]ip add 12.0.0.6 24
[R6-GigabitEthernet0/0/0]q
[R6]int LoopBack 0
[R6-LoopBack0]ip add 1.1.1.6 24

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mfbz.cn/a/487159.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

如何着手写一个自己的网站管理客户端

WebHole 项目地址 https://gitee.com/yiyefangzhou24/web-hole 是什么&#xff1f;能干什么&#xff1f; WebHole是一款网站管理软件&#xff0c;类似但不同于菜刀、冰蝎、蚁剑&#xff0c;能通过C/S的工作模式&#xff0c;方便的管理服务器的文件、数据库&#xff0c;并执…

自定义类型(2)

1联合体 1.1 联合体类型的声明 像结构体⼀样&#xff0c;联合体也是由⼀个或者多个成员构成&#xff0c;这些成员可以不同的类型。 但是编译器只为最⼤的成员分配⾜够的内存空间。联合体的特点是所有成员共⽤同⼀块内存空间。所 以联合体也叫&#xff1a;共⽤体。 给联合体其…

基于springboot+vue的流浪动物管理系统

博主主页&#xff1a;猫头鹰源码 博主简介&#xff1a;Java领域优质创作者、CSDN博客专家、阿里云专家博主、公司架构师、全网粉丝5万、专注Java技术领域和毕业设计项目实战&#xff0c;欢迎高校老师\讲师\同行交流合作 ​主要内容&#xff1a;毕业设计(Javaweb项目|小程序|Pyt…

2核4G服务器最多支持多少用户同时在线?

腾讯云轻量应用服务器2核4G5M配置性能测评&#xff0c;腾讯云轻量2核4G5M带宽服务器支持多少人在线访问&#xff1f;并发数10&#xff0c;支持每天5000IP人数访问&#xff0c;腾讯云百科txybk.com整理2核4G服务器支持多少人同时在线&#xff1f;并发数测试、CPU性能、内存性能、…

软件测试|使用selenium进行多窗口操作

简介 在我们进行自动化测试的工作中&#xff0c;经常会点击某个元素或者链接就会自动打开一个新页面&#xff0c;需要我们转到新打开的页面去进行操作&#xff0c;这个时候我们就需要能够自动切换到新页面进行后续的操作&#xff0c;selenium同样支持这个功能&#xff0c;本文…

我们的服务器安全护卫——德迅卫士

德迅卫士 德迅卫士采用自适应安全架构&#xff0c;有效解决传统专注防御手段的被动处境&#xff0c;为系统添加强大的实时监控和响应能力&#xff0c;帮助企业有效预测风险&#xff0c;精准感知威胁&#xff0c;提升响应效率&#xff0c;保障企业安全的最后一公里。 德迅卫士…

python初级第一次作业

一、 dayint(input("enter today day")) fdayint(input("enter num of day since today")) c((fday%7)day)%7 if c0:print("sunday") elif c1:print("monday") elif c2:print("tuesday") elif c3:print("wendnsday&quo…

算法打卡day16

今日任务&#xff1a; 1&#xff09;513.找树左下角的值 2&#xff09;112.路径总和 3&#xff09;113.路径总和Ⅱ 4&#xff09;106.从中序与后序遍历序列构造二叉树 5&#xff09;105.从前序与中序遍历序列构造二叉 513.找树左下角的值 题目链接&#xff1a;513. 找树左下角…

【网络建设与运维】2024年河北省职业院校技能大赛中职组“网络建设与运维”赛项规程

培训、环境、资料、考证 公众号&#xff1a;Geek极安云科 网络安全群&#xff1a;775454947 网络系统管理群&#xff1a;223627079 网络建设与运维群&#xff1a;870959784 极安云科专注于技能提升&#xff0c;赋能 2024年广东省高校的技能提升&#xff0c;在培训中我们的应急…

MCGS学习——运行策略与脚本程序

语法讲解 运行策略&#xff1a;脚本的编程环境启动策略&#xff1a;在进入运行环境后首先运行的策略&#xff0c;只运行一次&#xff0c;一般完成系统初始化的处理循环策略&#xff1a;按照用户指定的周期时间&#xff0c;循环执行策略块内的内容&#xff0c;通常用来完成流程…

SpringBoot+Vue前后端分离项目在Linux系统中基于Docker打包发布,并上传镜像到阿里镜像私仓

文章目录 SpringBootVue前后端分离项目在Linux系统中基于Docker打包发布&#xff0c;并上传镜像到阿里镜像私仓一、Java项目基于Docker打包发布1.打包应用&#xff0c;将打好的jar包放到我们的linux系统中2.新建dockerfile3.打包镜像4.测试运行5.上传镜像到阿里云免费私仓 二、…

【性能测试】jmeter连接数据库jdbc

一、下载第三方工具包驱动数据库 1. 因为JMeter本身没有提供链接数据库的功能&#xff0c;所以我们需要借助第三方的工具包来实现。 &#xff08;有这个jar包之后&#xff0c;jmeter可以发起jdbc请求&#xff0c;没有这个jar包&#xff0c;也有jdbc取样器&#xff0c;但不能发起…

PTA L2-032 彩虹瓶

彩虹瓶的制作过程&#xff08;并不&#xff09;是这样的&#xff1a;先把一大批空瓶铺放在装填场地上&#xff0c;然后按照一定的顺序将每种颜色的小球均匀撒到这批瓶子里。 假设彩虹瓶里要按顺序装 N 种颜色的小球&#xff08;不妨将顺序就编号为 1 到 N&#xff09;。现在工…

【双指针】Leetcode 202.快乐数

题目解析 Leetcode 202.快乐数 看完题目描述相信大家已经知晓题目的含义&#xff0c;我们通过一张图再剖析一下题目含义 快乐数或者非快乐数都是可以成环的&#xff0c;这个是数学上已经证明了的。所以这道题的最后含义就是分辨出环中全部是1或者全部没有1的 双指针 成环问…

集合(JAVA)

一、数组和集合的区别 相同点 都是容器,可以存储多个数据 不同点 数组的长度是不可变的,集合的长度是可变的数组可以存基本数据类型和引用数据类型集合只能存引用数据类型,如果要存基本数据类型,需要存对应的包装类 二、集合类体系结构 三、Collection 集合 1.Collection集合…

vite5+vue3+ import.meta.glob动态导入vue组件

import.meta.glob 是 Vite 提供的一个特殊功能&#xff0c;它允许你在模块范围内动态地导入多个模块。这在处理大量的文件&#xff0c;如组件、页面或其他模块时特别有用&#xff0c;特别是当你需要根据某些条件或模式来动态加载它们时。 1.创建需要动态导入的组件目录 假设你…

C++项目——集群聊天服务器项目(五)网络模块与业务模块

今天来正式书写集群聊天服务器网络模块与部分业务模块的代码 环境搭建C项目——集群聊天服务器项目(一)项目介绍、环境搭建、Boost库安装、Muduo库安装、Linux与vscode配置-CSDN博客 Json第三方库 muduo网络库 MySQL数据库 一、工程目录创建 项目通过CMake编译&#xff0c…

NKCTF--pwn--Maimai查分器

NKCTF–pwn–Maimai查分器 Maimai查分器 保护全开 存在格式化字符串漏洞 第一步&#xff1a;先测速率&#xff0c;输入15.0 SSS 50次获得最高速率 ​ sl(b1) #debug() for i in range(50):sl(b15.0 SSS)然后利用格式化字符串去泄露&#xff0c;本来想一口气全部泄露的&…

【ARXIV2402】MambaIR

这个工作首次将 Mamba 引入到图像修复任务&#xff0c;关于为什么 Mamba 可以用于图像修复&#xff0c;作者有非常详细的解释&#xff1a;一路向北&#xff1a;性能超越SwinIR&#xff01;MambaIR: 基于Mamba的图像复原基准模型 作者认为Mamba可以理解为RNN和CNN的结合&#xf…

链动2+1模式 完全合法合规 不存在传销问题!!

在商业经营中&#xff0c;营销策略的巧妙运用对于提升产品销量和扩大品牌影响力至关重要。然而&#xff0c;企业在制定和执行营销策略时&#xff0c;必须严格遵循法律法规&#xff0c;以免陷入法律风险。本文将着重探讨链动21模式的法律要素&#xff0c;以论证其合规性。 一、链…
最新文章