【华为Datacom 综合拓扑案例—分享篇】

拓扑图

在这里插入图片描述

题目要求

实验要求:

1、PC1\PC2\PC3\PC4采用DHCP自动获取IP地址,SW5作为服务器,SW3和SW4作为中继

创建地址池ip pool huawei1和ip pool huawei2,租期都为2天

2、SW3与SW4做链路聚合,采用LACP模式。SW3作为主交换机,优先级为0

抢占延时时间为10秒

让G0/0/4接口成为非活跃链路,优先级为65000

3、在SW3\SW4\SW5构成的环形链路中,让SW5为主交换机,优先级为4096

4、在AR1位置做地址转换,采用NAPT方式,地址池范围200.1.1.10-200.1.1.20

client访问内网服务器server1时,采用NAT server,用公网ip200.1.1.100替代10.1.3.1

实现client可以ping通200.1.1.100

5、配置全网,实现内网PC可以访问外网client202.1.1.1

解析

LSW1:

[Huawei]sy LSW1
[LSW1]v b 10
[LSW1]int e0/0/1
[LSW1-Ethernet0/0/1]port link-t a
[LSW1-Ethernet0/0/1]po de v 10
[LSW1-Ethernet0/0/1]int e0/0/2
[LSW1-Ethernet0/0/2]port link-t a
[LSW1-Ethernet0/0/2]po de v 10
[LSW1-Ethernet0/0/2]int e0/0/3
[LSW1-Ethernet0/0/3]port link-t t
[LSW1-Ethernet0/0/3]po t a v 101.2.3.4.5.6.7.8.9.10.11.

LSW2:

[LSW2]v b 20
[LSW2]int e0/0/1
[LSW2-Ethernet0/0/1]po link-t a
[LSW2-Ethernet0/0/1]po de v 20
[LSW2-Ethernet0/0/1]int e0/0/2
[LSW2-Ethernet0/0/2]po link-t a
[LSW2-Ethernet0/0/2]po de v 20
[LSW2-Ethernet0/0/2]int e0/0/3
[LSW2-Ethernet0/0/3]po link-t t
[LSW2-Ethernet0/0/3]po t a v 201.2.3.4.5.6.7.8.9.10.

LSW3:

[LSW3]int et 1
[LSW3-Eth-Trunk1]mode lacp-static
[LSW3-Eth-Trunk1]trunkport g0/0/3
[LSW3-Eth-Trunk1]trunkport g0/0/4
[LSW3-Eth-Trunk1]trunkport g0/0/5
[LSW3-Eth-Trunk1]q
[LSW3]lacp priority 0
[LSW3]int et 1
[LSW3-Eth-Trunk1]lacp preempt enable
[LSW3-Eth-Trunk1]lacp preempt delay 10
[LSW3-Eth-Trunk1]max active-linknumber 2
[LSW3-GigabitEthernet0/0/3]int g0/0/4
[LSW3-GigabitEthernet0/0/4]lacp priority 65000
[LSW3-GigabitEthernet0/0/4]int et 1
[LSW3-Eth-Trunk1]port link-type t
[LSW3-Eth-Trunk1]po t a v 34
[LSW3-Eth-Trunk1]int v 34
[LSW3-Vlanif34]ip ad 34.1.1.3 24

[LSW3]stp mode stp
[LSW3]ip route-static 0.0.0.0 0 30.1.1.51.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.

LSW4:

[LSW4]v b 20 34 40
[LSW4]int g0/0/1
[LSW4-GigabitEthernet0/0/1]po link-t t
[LSW4-GigabitEthernet0/0/1]po t a v 20
[LSW4-GigabitEthernet0/0/1]int g0/0/2
[LSW4-GigabitEthernet0/0/2]po link-t t
[LSW4-GigabitEthernet0/0/2]po t a v 40
[LSW4-GigabitEthernet0/0/2]q
[LSW4]dhcp enable
[LSW4]dhcp server group bosai2
[LSW4-dhcp-server-group-bosai2]dhcp-server 40.1.1.5
[LSW4-dhcp-server-group-bosai2]int vlan 40
[LSW4-Vlanif40]ip ad 40.1.1.4 24
[LSW4-Vlanif40]int vlan 20
[LSW4-Vlanif20]ip ad 10.1.2.254 24
[LSW4-Vlanif20]dhcp select relay
[LSW4-Vlanif20]dhcp relay server-select bosai2
[LSW4-Vlanif20]q
[LSW4]ospf router-id 4.4.4.4
[LSW4-ospf-1]a 1
[LSW4-ospf-1-area-0.0.0.1]net 10.1.2.0 0.0.0.255
[LSW4-ospf-1-area-0.0.0.1]net 40.1.1.0 0.0.0.255
[LSW4-ospf-1-area-0.0.0.1]net 34.1.1.0 0.0.0.255
[LSW4-ospf-1-area-0.0.0.1]int et 1
[LSW4-Eth-Trunk1]mode lacp-static
[LSW4-Eth-Trunk1]trunkport g0/0/3
[LSW4-Eth-Trunk1]trunkport g0/0/4
[LSW4-Eth-Trunk1]trunkport g0/0/5
[LSW4-Eth-Trunk1]lacp preempt enable
[LSW4-Eth-Trunk1]lacp preempt delay 10
[LSW4-Eth-Trunk1]max active-linknumber 2
[LSW4-Eth-Trunk1]q
[LSW4]int et 1
[LSW4-Eth-Trunk1]po link-t t
[LSW4-Eth-Trunk1]po t a v 34
[LSW4-Eth-Trunk1]int vlan 34
[LSW4-Vlanif34]ip ad 34.1.1.4 24

[LSW4]stp mode stp
[LSW4]ip route-static 0.0.0.0 0 40.1.1.51.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.

LSW5:

[LSW5]int g0/0/1
[LSW5-GigabitEthernet0/0/1]po link-t t
[LSW5-GigabitEthernet0/0/1]po t a v 30
[LSW5-GigabitEthernet0/0/1]int g0/0/2
[LSW5-GigabitEthernet0/0/2]po link-t t
[LSW5-GigabitEthernet0/0/2]po t a v 40
[LSW5]v b 30 40 15
[LSW5]int g0/0/3
[LSW5-GigabitEthernet0/0/3]po link-t a
[LSW5-GigabitEthernet0/0/3]po de v 15
[LSW5-GigabitEthernet0/0/3]q
[LSW5]dhcp enable
[LSW5]ip pool huawei1
[LSW5-ip-pool-huawei1]gateway-list 10.1.1.254
[LSW5-ip-pool-huawei1]network 10.1.1.0 mask 24
[LSW5-ip-pool-huawei1]int vlan 30
[LSW5-Vlanif30]ip ad 30.1.1.5 24
[LSW5-Vlanif30]dhcp select global
[LSW5-Vlanif30]q
[LSW5]ospf router-id 5.5.5.5
[LSW5-ospf-1]a 1
[LSW5-ospf-1-area-0.0.0.1]net 30.1.1.0 0.0.0.255
[LSW5-ospf-1-area-0.0.0.1]net 15.1.1.0 0.0.0.255
[LSW5-ospf-1-area-0.0.0.1]q
[LSW5-ospf-1]q
[LSW5]ip route-static 10.1.1.0 24 30.1.1.3
[LSW5]ip pool huawei2
[LSW5-ip-pool-huawei2]gateway-list 10.1.2.254
[LSW5-ip-pool-huawei2]network 10.1.2.0 mask 24
[LSW5-ip-pool-huawei2]int vlan 40
[LSW5-Vlanif40]ip ad 40.1.1.5 24
[LSW5-Vlanif40]dhcp select global
[LSW5-Vlanif40]q
[LSW5]ip route-static 10.1.2.0 24 40.1.1.4
[LSW5]ip pool huawei1
[LSW5-ip-pool-huawei1]lease day 2
[LSW5-ip-pool-huawei1]q
[LSW5]ip pool huawei2
[LSW5-ip-pool-huawei2]lease day 2
[LSW5-ip-pool-huawei2]int vlan 15
[LSW5-Vlanif15]ip ad 15.1.1.5 24
[LSW5-Vlanif15]ospf ro 5.5.5.5
[LSW5-ospf-1]a 1
[LSW5-ospf-1-area-0.0.0.1]net 40.1.1.0 0.0.0.255

[LSW5]stp mode stp
[LSW5]stp priority 4096
[LSW5]iproutestatic0.0.0.0015.1.1.11.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.

R1:

[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip ad 15.1.1.1 24
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]ip ad 12.1.1.1 24
[R1-GigabitEthernet0/0/1]int g0/0/2
[R1-GigabitEthernet0/0/2]ip ad 10.1.3.254 24
[R1-GigabitEthernet0/0/2]q
[R1]ospf router-id 11.1.1.1
[R1-ospf-1]a 1
[R1-ospf-1-area-0.0.0.1]net 12.1.1.0 0.0.0.255
[R1-ospf-1-area-0.0.0.1]net 10.1.3.0 0.0.0.255
[R1-ospf-1-area-0.0.0.1]net 15.1.1.0 0.0.0.255
[R1]ip route-static 0.0.0.0 0 12.1.1.21.2.3.4.5.6.7.8.9.10.11.12.13.

R2:

[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip ad 12.1.1.2 24
[R2-GigabitEthernet0/0/0]int g0/0/1
[R2-GigabitEthernet0/0/1]ip ad 23.1.1.2 24
[R2-GigabitEthernet0/0/1]int g0/0/2
[R2-GigabitEthernet0/0/2]ip ad 24.1.1.2 24
[R2-GigabitEthernet0/0/2]q
[R2]ospf ro 22.1.1.1
[R2-ospf-1]a 1
[R2-ospf-1-area-0.0.0.1]net 12.1.1.0 0.0.0.255
[R2-ospf-1-area-0.0.0.1]q
[R2-ospf-1]a 0
[R2-ospf-1-area-0.0.0.0]net 23.1.1.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]net 24.1.1.0 0.0.0.255

[R2]ip route-static 0.0.0.0 0 23.1.1.3
[R2]ip route-static 0.0.0.0 0 24.1.1.41.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.

R3:

[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip ad 23.1.1.3 24
[R3-GigabitEthernet0/0/0]int g0/0/1
[R3-GigabitEthernet0/0/1]ip ad 35.1.1.3 24
[R3-GigabitEthernet0/0/1]q
[R3]ospf ro 33.1.1.1
[R3-ospf-1]a 0
[R3-ospf-1-area-0.0.0.0]net 23.1.1.0 0.0.0.255
[R3-ospf-1-area-0.0.0.0]net 35.1.1.0 0.0.0.255

[R3]ip route-static 0.0.0.0 0 35.1.1.51.2.3.4.5.6.7.8.9.10.11.12.

R4:

[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ip ad 24.1.1.4 24
[R4-GigabitEthernet0/0/0]int g0/0/1
[R4-GigabitEthernet0/0/1]ip ad 45.1.1.4 24
[R4-GigabitEthernet0/0/1]q
[R4]ospf ro 44.1.1.1
[R4-ospf-1]a 0
[R4-ospf-1-area-0.0.0.0]net 24.1.1.0 0.0.0.255
[R4-ospf-1-area-0.0.0.0]net 45.1.1.0 0.0.0.255

[R4]ip route-static 0.0.0.0 0 45.1.1.51.2.3.4.5.6.7.8.9.10.11.12.

R5:

[R5]ip route-static 0.0.0.0 0 51.1.1.11.

LSW6:

[LSW6]int e0/0/1
[LSW6-Ethernet0/0/1]q
[LSW6]v b 50 60
[LSW6]int e0/0/1
[LSW6-Ethernet0/0/1]po link-t t
[LSW6-Ethernet0/0/1]po t a v 50 60
[LSW6-Ethernet0/0/1]int e0/0/2
[LSW6-Ethernet0/0/2]po link-t a
[LSW6-Ethernet0/0/2]po de v 50
[LSW6-Ethernet0/0/2]int e0/0/3
[LSW6-Ethernet0/0/3]po link-t a
[LSW6-Ethernet0/0/3]po de v 601.2.3.4.5.6.7.8.9.10.11.12.

[AR1-acl-basic-2000]rule permit source 10.1.1.0 0.0.0.255
[AR1-acl-basic-2000]rule permit source 10.1.2.0 0.0.0.255
[AR1-acl-basic-2000]rule permit source 10.1.3.0 0.0.0.255
[AR1-acl-basic-2000]rule permit source 60.1.1.0 0.0.0.255
[AR1-acl-basic-2000]rule permit source 50.1.1.0 0.0.0.255
[AR1-acl-basic-2000]q
[AR1]nat address-group 1 200.1.1.10 200.1.1.20
[AR1]int g0/0/1
[AR1-GigabitEthernet0/0/1]nat outbound 2000 address-group 1
[AR1-GigabitEthernet0/0/1]nat server global 200.1.1.100 inside 10.1.3.11.2.3.4.5.6.7.8.9.10.

AR2:
[AR2]int g0/0/0
[AR2-GigabitEthernet0/0/0]ip ad 200.1.1.2 24
[AR2-GigabitEthernet0/0/0]int g0/0/1
[AR2-GigabitEthernet0/0/1]ip ad 202.1.1.254 241.2.3.4.5.

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
转载:https://blog.51cto.com/u_15964895/6839898

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

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

相关文章

VScode如何设置中文教程

前言:打开VSCode软件,可以看到刚刚安装的VSCode软件默认使用的是英文语言环境,但网上都是vscode中文界面教你怎么设置中文,可能不利于小白阅读,所以重装vscode,手摸手从英文变成中文。 设置为中文 打开VS…

Mirror网络库 | 实战

此篇为下文,上篇:Mirror网络库 | 说明 一、官方实例说明 场景名说明AdditiveLevels场景为“关卡”,附加形式加载AdditiveScenes加载卸载附加场景Basic基础的连接/断开,消息发送Benchmark服务器1000“怪物”生成性能测试Benchmark…

PHP最简单自定义自己的框架控制器自动加载运行(四)

1、实现效果调用控制中方法 2、创建控制器indexCrl.php <?php class indexCrl{public function index(){echo 当前index控制器index方法;} } 3、KJ.php字段加载控制器文件 public static function run(){//定义常量self::_set_const();//创建模块目录self::_mk_module();…

Vue-打印组件页面

场景: 需要将页面的局部信息打印出来&#xff0c;只在前端实现&#xff0c;不要占用后端的资源。经过百度经验&#xff0c;决定使用 print-js和html2canvas组件。 1. 下载包 npm install print-js --save npm install --save html2canvas 2. 组件内引用 <script>impo…

win11右下角图标(网络,音量,电量)点击无反应问题,两分钟解决!

win11系统用的好好的&#xff0c;突然有一天任务栏右下角的常用三件套&#xff08;网络&#xff0c;音量&#xff0c;电量&#xff09;左键单击没反应&#xff0c;无法方便的调节音量和连接wifi&#xff0c;如下图所示&#xff0c;但是右键好用&#xff0c;不过不方便。网上查了…

spring按条件注入@Condition及springboot对其的扩展

概述 spring的ioc极大的方便了日常开发&#xff0c;但随着业务的迭代。配置的一些参数在某些情况下需要按条件注入。 比如原先定义的db公共模块下&#xff0c;相关的配置和工具类只是基于mysql的。但是后续有模块需要使用mongo/es等其他数据库&#xff0c;又想继续使用db公共…

RocketMQ消息轨迹产生的背景以及使用方式

这里是weihubeats,觉得文章不错可以关注公众号小奏技术&#xff0c;文章首发。拒绝营销号&#xff0c;拒绝标题党 背景 最近在维护RocketMQ经常会出现这种问题 消息发送方和接收方出现扯皮&#xff0c;消息发送方说我的消息已经发送成功了&#xff0c;消费方说我没接收到消息。…

AI黑马挑战赛,探索研发新趋势丨IDCF

随着AI的出现&#xff0c;获取知识的成本大幅降低&#xff0c;当DevOps与AI相结合时&#xff0c;必将产生全新的化学反应。不断涌现的AI新工具提醒我们&#xff0c;一个全新的研发工作范式正在逐渐形成。而DevOps的核心理念是敏捷协同&#xff0c;作为工程师&#xff0c;如何通…

【从零学习python 】19. 循环遍历列表和列表嵌套的应用

文章目录 列表的循环遍历1. 使用while循环2. 使用for循环3. 交换2个变量的值1. 列表嵌套2. 应用 进阶案例 列表的循环遍历 1. 使用while循环 为了更有效率的输出列表的每个数据&#xff0c;可以使用循环来完成 namesList [xiaoWang,xiaoZhang,xiaoHua] length len(namesLi…

基于C#的无边框窗体阴影绘制方案 - 开源研究系列文章

今天介绍无边框窗体阴影绘制的内容。 上次有介绍使用双窗体的方法来显示阴影&#xff0c;这次介绍使用API函数来进行绘制。这里使用的是Windows API函数&#xff0c;操作系统的窗体也是用的这个来进行的绘制。 1、 项目目录&#xff1b; 下面是项目目录&#xff1b; 2、 函数介…

浅谈早期基于模板匹配的OCR的原理

基于模板匹配的概念是一种早期的字符识别方法&#xff0c;它基于事先准备好的字符模板库来与待识别字符进行比较和匹配。其原理如下&#xff1a; 1. 字符模板库准备&#xff1a;首先&#xff0c;针对每个可能出现的字符&#xff0c;制作一个对应的字符模板。这些模板可以手工创…

同步_异步请求和Ajax并利用axios框架简化

目录 同步和异步 原生的Ajax 创建XMLHttpRequest对象 常用方法 常用属性 axios框架 同步和异步 同步请求&#xff1a;发送请求后&#xff0c;会做出回应&#xff0c;回应的内容会覆盖浏览器中的内容&#xff0c;这样会打断其他正常的操作&#xff0c;显得不太友好&#…

uni-app中使用pinia

目录 Pinia 是什么&#xff1f; uni-app 使用Pinia main.js 中引用pinia 创建和注册模块 定义pinia方式 选项options方式 定义pinia 页面中使用 pinia选项options方式 函数方式 定义pinia 页面中使用 函数方式 定义的pinia Pinia 是什么&#xff1f; Pinia&#xff0…

两个pdf合并成一个pdf怎么合并?这几个方法值得推荐

两个pdf合并成一个pdf怎么合并&#xff1f;pdf文件的合并是一个很常见的需求&#xff0c;特别是在处理工作文件或学习资料时。为了更好的帮助你了解如何将两个pdf文件合并成一个&#xff0c;下面就给大家详细介绍几种合并方法。 方法一&#xff1a;使用迅捷PDF转换器 这是一款…

Linux服务器上配置HTTP和HTTPS代理

本文将向你分享如何在Linux服务器上配置HTTP和HTTPS代理的方法&#xff0c;解决可能遇到的问题&#xff0c;让你的爬虫项目顺利运行&#xff0c;畅爬互联网&#xff01; 配置HTTP代理的步骤 1. 了解HTTP代理的类型&#xff1a;常见的有正向代理和反向代理两种类型。根据实际需求…

Kotlin Executors线程池newSingleThreadExecutor单线程

Kotlin Executors线程池newSingleThreadExecutor单线程 import java.util.concurrent.Executorsfun main() {val mExecutorService Executors.newSingleThreadExecutor()for (i in 1..5) {mExecutorService.execute {println("seq-$i tid:${Thread.currentThread().threa…

【Android Framework系列】第10章 PMS之Hook实现广播的调用

1 前言 前面章节我们学习了【Android Framework系列】第4章 PMS原理我们了解了PMS原理&#xff0c;【Android Framework系列】第9章 AMS之Hook实现登录页跳转我们知道AMS可以Hook拦截下来实现未注册Activity页面的跳转&#xff0c;本章节我们来尝试一下HookPMS实现广播的发送。…

【Java】2021 RoboCom 机器人开发者大赛-高职组(初赛)题解

7-1 机器人打招呼 机器人小白要来 RoboCom 参赛了&#xff0c;在赛场中遇到人要打个招呼。请你帮它设置好打招呼的这句话&#xff1a;“ni ye lai can jia RoboCom a?”。 输入格式&#xff1a; 本题没有输入。 输出格式&#xff1a; 在一行中输出 ni ye lai can jia Robo…

煜邦转债,华设转债,兴瑞转债,神通转债上市价格预测

煜邦转债 基本信息 转债名称&#xff1a;煜邦转债&#xff0c;评级&#xff1a;A&#xff0c;发行规模&#xff1a;4.10806亿元。 正股名称&#xff1a;煜邦电力&#xff0c;今日收盘价&#xff1a;8.82元&#xff0c;转股价格&#xff1a;10.12元。 当前转股价值 转债面值 / …

UI自动化测试

前言 随着智能化信息基础设施的推进&#xff0c;软件开发的进程也不断加快。软件测试工作也逐渐由传统的手工测试向软件自动化测试跨越。 对于很多企业来说&#xff0c;做好软件自动化测试工作已经不仅仅是通过测试工具进行“点点点”&#xff0c;要想找出软件测试过程中的缺…
最新文章