HCIA实验

news2024/9/20 7:54:36

实验目的:

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.coloradmin.cn/o/1544211.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

阿里云服务器一年多少钱?2024最新活动价格表整理分享

2024年阿里云服务器优惠价格表&#xff0c;一张表整理阿里云服务器最新报价&#xff0c;阿里云服务器网整理云服务器ECS和轻量应用服务器详细CPU内存、公网带宽和系统盘详细配置报价单&#xff0c;大家也可以直接移步到阿里云CLUB中心查看 aliyun.club 当前最新的云服务器优惠券…

C语言 青蛙跳台阶问题

1.问题描述 一只青蛙可以一次跳一级台阶&#xff0c;也可以一次跳两级台阶&#xff0c;如果青蛙要跳上n级台阶有多少种跳法&#xff1f; 2.问题分析 当台阶只有一级时&#xff0c;只能跳一级&#xff0c;所以只有一种跳法 当台阶有两级时&#xff0c;可以先跳一级&#xff…

HDFS集群环境配置

HDFS集群环境配置 环境如下三台服务器&#xff1a; 192.168.32.101 node1192.168.32.102 node2192.168.32.103 node3 一、Hadoop安装包下载​​​​​​​ 点此官网下载​​​​​​​ 二、Hadoop HDFS的角色包含&#xff1a; NameNode&#xff0c;主节点管理者DataNode&am…

kubernetes最小调度单元Pod概述

Pod概述 一.Pod的概念1.Pod是什么2.Pod网络共享实现方式3.Pod存储共享方式4.创建Pod的流程 二.使用YAML文件定义Pod资源1.Pod资源清单YAML文件书写技巧1.YAML语法格式&#xff1a;2.配置Linux tab缩进两个空格3.使用kubectl explain帮助命令 2.创建Pod及Pod常用命令1.创建Pod资…

MySQL-1.数据库的基本操作

1. 数据库的基本操作 show databases; information_schema&#xff1a;信息图式&#xff0c;存储服务器管理数据库的信息 mysql&#xff1a;存放系统信息&#xff0c;用户名密码等 performance_schema&#xff1a;性能图式 sys&#xff1a;系统文件 1.1 创建数据库-studen…

瑞吉外卖实战学习--项目搭建

瑞吉外卖实战学习 前言1、创建springBoot 项目&#xff0c;并引用相关依赖2、配置数据库3、通过注解检测项目是否可以启动成功4、配置前端页面的静态映射4.1 前端文件放置的位置4.2 由于存放的位置并不是默认的文件中&#xff0c;需要将这些文件静态映射4.3 检测静态文件是否可…

003- AutoCoder 使用Web版大模型,性感的Human As Model 模式

这是下面这篇文章的继续。 002- 用 AutoCoder 添加和修改代码 前面我们提到&#xff0c;如何解决你没有API版大模型&#xff0c;或者你的API版大模型太弱&#xff0c;而你只有Web版本的诸如 Kimi/GPT4 的情况下&#xff0c;改如何让AutoCoder帮助你完成编程&#xff1f; 我们有…

数据结构(五)——树与二叉树的应用

5.5 树与二叉树的应用 5.5.1 哈夫曼树 结点的权&#xff1a;有某种现实含义的数值。 结点的带权路径长度&#xff1a;从树的根到该结点的路径长度&#xff08;经过的边数&#xff09;与该结点上权值的乘积。 树的带权路径长度&#xff1a;树中所有叶结点的带权路径长度之和…

Linux——进程信号(二)

目录 1、阻塞信号 1.1、信号其他相关常见概念 1.2、在内核中的表示 1.3、sigset_t 1.4、信号集操作函数 2、捕捉信号 2.1、内核如何捕捉信号 5.2、sigaction 1、阻塞信号 1.1、信号其他相关常见概念 实际执行信号的处理动作被称为信号递达&#xff08;Delivery&#x…

电脑桌面便签,怎么在电脑桌面上设置便签

在数字化时代&#xff0c;电脑已成为我们日常生活不可或缺的一部分。在我们使用电脑进行各种工作和学习的过程中&#xff0c;经常会遇到需要记录临时信息或提醒自己的情况。这时&#xff0c;设置便签在电脑桌面上就成为了一种非常便捷的方法。那么有一个问题&#xff0c;电脑桌…

(一)基于IDEA的JAVA基础8

使用多重if选择结构 多个if条件进行判断: 语法: if(条件1){ 执行语句1&#xff1b; }else if(条件2){ 执行语句2&#xff1b; }else if(条件3){ 执行语句3&#xff1b; }else if (条件4)…… 流程图: 我们来写个好玩的&#xff0c;对暗号: public class Test01 { …

web前端之罗盘时钟、不一样的补零方式、LED字体、padStart

MENU 效果图htmlJavaScriptstyle 效果图 html <div class"clock"><div class"second-box"></div><div class"minute-box"></div><div class"hour-box"></div><div class"day-box&…

atoi函数的使用和模拟实现

1.atoi函数简介 (1).atoi函数原型 &#xff1a;int atoi (const char * str); (2).头文件&#xff1a;<stdlib.h> 用法&#xff1a;将字符串里的数字字符转化为整形数。返回整形值。 注意&#xff1a; 转化时跳过前面的空格字符&#xff0c;直到遇上数字或正负符号才开…

C++中的lambda表达式

引入: 首先来看一个例子 struct fruit {double _price;int _evalute;string _name;fruit(const char* str, int a, double price):_name(str),_evalute(a),_price(price){} }; struct ComparePriceGreater {bool operator()(const fruit& g1, const fruit& gr){return…

redis在docker安装并启动流程

1、启动server docker run -d -p 6379:6379 --name redis01 redis:7.2.4以上命令&#xff0c;每次启动新的Redis容器&#xff0c;数据会丢失。 我们需要挂载数据文件&#xff0c;在宿主机上面&#xff0c;这样就可以持久化数据. 2、挂载数据文件&#xff08;可根据需求选择…

Linux常用操作命令(清单快查版)

Linux常用操作命令&#xff0c;今日先给出快查清单&#xff0c;后续出带命令参数及不同OS的区别语法的相关示例 1. 文件与目录操作 命令描述ls列出目录内容cd切换目录pwd显示当前工作目录mkdir创建目录rmdir删除空目录cp复制文件或目录mv移动或重命名文件或目录rm删除文件或目…

(异步编程)前端八股文修炼Day3

一异步编程异步编程的实现方式&#xff1f; 在 JavaScript 中&#xff0c;异步编程是处理异步操作的重要部分&#xff0c;常见的异步编程实现方式有以下几种&#xff1a; 回调函数&#xff08;Callbacks&#xff09;&#xff1a;回调函数是最基本的异步编程方式&#xff0c;通…

【第三方登录】Google邮箱

登录谷歌邮箱开发者 https://console.developers.google.com/ 先创建项目 我们用的web应用 设置回调 核心主要&#xff1a; 1.创建应用 2.创建客户端ID 3.设置域名和重定向URL 4.对外公开&#xff0c;这样所有的gmail邮箱 都能参与测试PHP代码实现 引入第三方包 h…

智慧园区楼宇AI解决方案

背景 人工智能对于人类的影响要比工业革命发生的速度快10倍,规模大 300倍,影响几乎大3000倍 - 麦肯锡全球研究院;2017年7月20日,国务院印发《新一代人工智能发展规划》,首次把人工智能发展上升为国家战略层面,全面布局面向2030年的中国人工智能发展整体规划;中美同时进…

解密Google Cloud 全新 PaLM2及创新应用

&#x1f4f8;背景 因长期在大模型相关的部门工作&#xff0c;每天接收到很多和AI相关的信息&#xff0c;但小编意识到目前理解到的一些AI知识还有些片面。 恰逢稀土掘金开发者大会有谈到大模型相关的知识&#xff0c;于是借此机会&#xff0c;对大模型相关的一些知识再了解一…