华为eNSP中型企业局域网网络规划设计(上)

敲半天一个闪退全™给我干没了呜呜呜,eNSP,wcnm!wcnm!wcnm!

在这里插入图片描述
→b站传送门,感谢大佬←

→华为eNSP中型企业局域网网络规划设计(下)←

→拓扑图传送门,可以自己配置着玩←
在这里插入图片描述

1.部门可以访问公司资源和互联网资源
2.部门之间不能互访
3.服务器要有单独的服务器区和交换机内部网络使用私有ip地址

配置vlan/各端口类型/链路聚合

SW1~8, SW10

#
vlan batch 10 20 30 40 50 60 100
#

SW1

#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 10
 stp edged-port enable
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 10
#
interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 10
#

SW2

#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 20
 stp edged-port enable
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 20
#
interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 20
#

SW3

#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 30
 stp edged-port enable
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 30
#
interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 30
#

SW4

#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 40
 stp edged-port enable
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 40
#
interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 40
#

SW5

#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 50
 stp edged-port enable
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 50
#
interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 50
#

SW6

#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 60
 stp edged-port enable
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 60
#
interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 60
#

SW7

[SW7]port-group trunk
[SW7-port-group-trunk]group-member g0/0/1 to g0/0/7
[SW7-port-group-trunk]p l t
[SW7-port-group-trunk]p t a v all

//链路聚合
[SW7]int Eth-Trunk 1
[SW7-Eth-Trunk1]trunkport g0/0/10
[SW7-Eth-Trunk1]trunkport g0/0/11 
[SW7-Eth-Trunk1]p l t
[SW7-Eth-Trunk1]p t a v all

[SW7]v b 77 78

#
interface GigabitEthernet0/0/8
 port link-type access
 port default vlan 77
#
interface GigabitEthernet0/0/9
 port link-type access
 port default vlan 78
#
interface Vlanif77
 ip address 192.168.77.7 255.255.255.0
#
interface Vlanif78
 ip address 192.168.78.7 255.255.255.0
#

SW8

[SW8]port-group trunk
[SW8-port-group-trunk]group-member g0/0/1 to g0/0/7
[SW8-port-group-trunk]p l t
[SW8-port-group-trunk]p t a v all

//链路聚合
[SW8]int Eth-Trunk 1
[SW8-Eth-Trunk1]trunkport g0/0/10
[SW8-Eth-Trunk1]trunkport g0/0/11 
[SW8-Eth-Trunk1]p l t
[SW8-Eth-Trunk1]p t a v all

[SW8]v b 87 88

#
interface GigabitEthernet0/0/8
 port link-type access
 port default vlan 87
#
interface GigabitEthernet0/0/9
 port link-type access
 port default vlan 88
#
interface Vlanif87
 ip address 192.168.87.8 255.255.255.0
#
interface Vlanif88
 ip address 192.168.88.8 255.255.255.0
#

SW9

[SW9]v b 200 201 91 92

#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 200
#
interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 201
#
interface GigabitEthernet0/0/3
 port link-type access
 port default vlan 91
#
interface GigabitEthernet0/0/4
 port link-type access
 port default vlan 92
#
interface Vlanif200
 ip address 192.168.200.254 255.255.255.0
#
interface Vlanif201
 ip address 192.168.201.254 255.255.255.0
#
interface Vlanif91
 ip address 192.168.91.254 255.255.255.0
#
interface Vlanif92
 ip address 192.168.92.254 255.255.255.0
#

Server1
在这里插入图片描述
Server2
在这里插入图片描述

SW10

#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 100
 stp edged-port enable
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 100
#
interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 100
#
interface Vlanif100
 ip address 192.68.100.254 255.255.255.0
#

AR-DHCP

#
interface GigabitEthernet0/0/0
 ip address 192.168.100.1 255.255.255.0 
#

AR1

#
interface GigabitEthernet0/0/0
 ip address 192.168.77.1 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 192.168.87.1 255.255.255.0 
#
interface GigabitEthernet0/0/2
 ip address 192.168.13.1 255.255.255.0 
#
interface GigabitEthernet4/0/0
 ip address 192.168.91.1 255.255.255.0 
#
interface GigabitEthernet4/0/1
 ip address 192.168.12.1 255.255.255.0 
#

AR2

#
interface GigabitEthernet0/0/0
 ip address 192.168.78.2 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 192.168.88.2 255.255.255.0 
#
interface GigabitEthernet0/0/2
 ip address 192.168.23.2 255.255.255.0 
#
interface GigabitEthernet4/0/0
 ip address 192.168.92.2 255.255.255.0 
#
interface GigabitEthernet4/0/1
 ip address 192.168.12.2 255.255.255.0 
#

AR3

#
interface GigabitEthernet0/0/0
 ip address 192.168.13.3 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 192.168.23.3 255.255.255.0 
#
interface GigabitEthernet0/0/2
 ip address 100.1.11.3 255.255.255.0 
#

AR5

#
interface GigabitEthernet0/0/0
 ip address 100.2.33.254 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 100.1.33.5 255.255.255.0 
#
interface GigabitEthernet0/0/2
 ip address 100.1.11.5 255.255.255.0 
#

Server3

在这里插入图片描述

配置mstp

将SW7设置为vlan 10 20 30 100的根桥,SW8为备份根桥
将SW8设置为vlan 40 50 60的根桥,SW7为备份根桥

SW1~8,SW10

[SW7]stp mode mstp

#
stp region-configuration
 region-name region1
 instance 1 vlan 10 20 30 100
 instance 2 vlan 40 50 60
 active region-configuration
#

SW7

[SW7]stp instance 1 root primary
[SW7]stp instance 2 root secondary

SW8

[SW8]stp instance 1 root secondary
[SW8]stp instance 2 root primary 

配置vrrp

SW7

#
interface Vlanif10
 ip address 192.168.10.7 255.255.255.0
 vrrp vrid 10 virtual-ip 192.168.10.254
 vrrp vrid 10 priority 120
#
interface Vlanif20
 ip address 192.168.20.7 255.255.255.0
 vrrp vrid 20 virtual-ip 192.168.20.254
 vrrp vrid 20 priority 120
#
interface Vlanif30
 ip address 192.168.30.7 255.255.255.0
 vrrp vrid 30 virtual-ip 192.168.30.254
 vrrp vrid 30 priority 120
#
interface Vlanif40
 ip address 192.168.40.7 255.255.255.0
 vrrp vrid 40 virtual-ip 192.168.40.254
#
interface Vlanif50
 ip address 192.168.50.7 255.255.255.0
 vrrp vrid 50 virtual-ip 192.168.50.254
#
interface Vlanif60
 ip address 192.168.60.7 255.255.255.0
 vrrp vrid 60 virtual-ip 192.168.60.254
#
interface Vlanif100
 ip address 192.168.100.7 255.255.255.0
 vrrp vrid 100 virtual-ip 192.168.100.254
 vrrp vrid 100 priority 120
#

SW8

#
interface Vlanif10
 ip address 192.168.10.8 255.255.255.0
 vrrp vrid 10 virtual-ip 192.168.10.254
#
interface Vlanif20
 ip address 192.168.20.8 255.255.255.0
 vrrp vrid 20 virtual-ip 192.168.20.254
#
interface Vlanif30
 ip address 192.168.30.8 255.255.255.0
 vrrp vrid 30 virtual-ip 192.168.30.254
#
interface Vlanif40
 ip address 192.168.40.8 255.255.255.0
 vrrp vrid 40 virtual-ip 192.168.40.254
 vrrp vrid 40 priority 120
#
interface Vlanif50
 ip address 192.168.50.8 255.255.255.0
 vrrp vrid 50 virtual-ip 192.168.50.254
 vrrp vrid 50 priority 120
#
interface Vlanif60
 ip address 192.168.60.8 255.255.255.0
 vrrp vrid 60 virtual-ip 192.168.60.254
 vrrp vrid 60 priority 120
#
interface Vlanif100
 ip address 192.168.100.8 255.255.255.0
 vrrp vrid 100 virtual-ip 192.168.100.254
#

配置dhcp

AR-DHCP

#
ip pool vlan10
 gateway-list 192.168.10.254 
 network 192.168.10.0 mask 255.255.255.0 
 excluded-ip-address 192.168.10.7 192.168.10.8 
#
ip pool vlan20
 gateway-list 192.168.20.254 
 network 192.168.20.0 mask 255.255.255.0 
 excluded-ip-address 192.168.20.7 192.168.20.8 
#
ip pool vlan30
 gateway-list 192.168.30.254 
 network 192.168.30.0 mask 255.255.255.0 
 excluded-ip-address 192.168.30.7 192.168.30.8 
#
ip pool vlan40
 gateway-list 192.168.40.254 
 network 192.168.40.0 mask 255.255.255.0 
 excluded-ip-address 192.168.40.7 192.168.40.8 
#
ip pool vlan50
 gateway-list 192.168.50.254 
 network 192.168.50.0 mask 255.255.255.0 
 excluded-ip-address 192.168.50.7 192.168.50.8 
#
ip pool vlan60
 gateway-list 192.168.60.254 
 network 192.168.60.0 mask 255.255.255.0 
 excluded-ip-address 192.168.60.7 192.168.60.8 
#

[DHCP]dhcp en
[DHCP-GigabitEthernet0/0/0]dhcp select global

//因为dhcp服务器没有路由,需要手动配置一条
[DHCP]ip route-static 0.0.0.0 0 192.168.100.254

配置dhcp中继

SW7

[SW7]dhcp en
[SW7]int Vlanif 10
[SW7-Vlanif10]dhcp select relay
[SW7-Vlanif10]dhcp relay server-ip 192.168.100.1
[SW7]int Vlanif 20
[SW7-Vlanif10]dhcp select relay
[SW7-Vlanif10]dhcp relay server-ip 192.168.100.1
[SW7]int Vlanif 30
[SW7-Vlanif10]dhcp select relay
[SW7-Vlanif10]dhcp relay server-ip 192.168.100.1
[SW7]int Vlanif 40
[SW7-Vlanif10]dhcp select relay
[SW7-Vlanif10]dhcp relay server-ip 192.168.100.1
[SW7]int Vlanif 50
[SW7-Vlanif10]dhcp select relay
[SW7-Vlanif10]dhcp relay server-ip 192.168.100.1
[SW7]int Vlanif 60
[SW7-Vlanif10]dhcp select relay
[SW7-Vlanif10]dhcp relay server-ip 192.168.100.1

SW8

[SW8]dhcp en
[SW8]int vlanif 10 
[SW8-Vlanif10] dhcp relay server-ip 192.168.100.1
[SW8]int vlanif 20 
[SW8-Vlanif10] dhcp relay server-ip 192.168.100.1
[SW8]int vlanif 30 
[SW8-Vlanif10] dhcp relay server-ip 192.168.100.1
[SW8]int vlanif 40 
[SW8-Vlanif10] dhcp relay server-ip 192.168.100.1
[SW8]int vlanif 50 
[SW8-Vlanif10] dhcp relay server-ip 192.168.100.1
[SW8]int vlanif 60 
[SW8-Vlanif10] dhcp relay server-ip 192.168.100.1

检查一下,成功拿到ip地址
在这里插入图片描述

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

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

相关文章

抖音小店怎么运营?最全的运营攻略来了?

大家好,我是电商糖果 很多开好店铺的小伙伴,都会遇到一个难题,那就是不会运营店铺。 可能好几个月才出十几单,甚至体验分都没有弄出来。 说实话,这种情况糖果见多了。 糖果做抖音小店也有四年多了,也开…

【全开源】Java淘宝客多商户系统APP源码任务聚合优惠券多商户源码

功能特点: 商户管理:支持多商户入驻,包括商户的注册、审核、信息维护等功能。同时,系统可以对商户进行分类、排序和搜索,方便管理。全行业覆盖√ miui52086商品管理:提供商品发布、编辑、上下架等功能&…

PMP考试没过怎么办?如何补考?(附复核流程)

最近刷小红书,看很多人都在晒PMP通过的成绩截图,一方面为大家开心,终于拿到了期盼已久的PMP,但同时也有宝子发挥失常没通过考试,所以这期针对没考过的宝子们,出一期复盘文章,无论结果如何&#…

QT4-升级到QT5(1)

1.C报错汇总_nafxcwd.lib error lnk2001-CSDN博客1 1.QT3Support QWidget::setShown 改为QWidget::setVisible 2.头文件 #include<QWidget> 3.部分函数替换

印章常见问题如何防?君子签电子印章实现管章、用章、控章一体化

企业公章管理和使用关乎企业经营&#xff0c;近年来&#xff0c;各类印章问题层出不穷&#xff1a;“通过PS、图片章伪造授权、合同等文件”、“冒充公司员工利用假身份、假印章签约”、“管理层私刻印章伪造业务材料”等常见假印章套路&#xff0c;让企业防不胜防&#xff0c;…

内网渗透(二)

预备知识 什么是域&#xff1f; 域是若干台计算机组成的集合&#xff0c;一个电脑也是。域中的电脑是分等级的&#xff0c;分为域控和成员机。 如何安装域&#xff1f; 在服务器管理中添加服务器角色&#xff0c;添加域服务 如何加入域? 首先一定要修改DNS服务器 ip为域…

解密某游戏的数据加密

前言 最近有个兄弟通过我的视频号加我&#xff0c;咨询能否将这个dubo游戏游戏开始前就将数据拿到从而进行押注&#xff0c;于是通过抓包工具测试了下&#xff0c;发现数据有时候是明文&#xff0c;有时候确实密文&#xff0c;大致看了下有这几种加密&#xff1a;Md5aes、Md5&a…

squeeze的用法

squeeze是压缩张量的命令 import torch a torch.randn(1,3) print(a) print(a.shape) 比如说squeeze&#xff08;&#xff1f;&#xff09;括号里是啥 就是在哪个维度上删除维度为1 之后的结果 比如上上面那个里子 a是&#xff08;[[]]&#xff09; 但是在下面那个例子中d…

软胶囊弹性检测:确保药品质量与患者安全的关键步骤

软胶囊弹性检测&#xff1a;确保药品质量与患者安全的关键步骤 在医药领域&#xff0c;软胶囊作为一种常见的药物载体&#xff0c;其质量的优劣直接关系到药物的有效性和患者的安全。软胶囊的弹性作为其质量评估的重要指标之一&#xff0c;不仅影响其储存和运输的稳定性&#x…

社交客户关系管理(SCRM),和传统CRM的区分

一、SCRM是什么 SCRM是社交客户关系管理&#xff08;Social Customer Relationship Management&#xff09;的缩写&#xff0c;是指通过利用社交媒体和社交网络来管理和建立与客户之间的关系。SCRM将传统的客户关系管理&#xff08;CRM&#xff09;与社交媒体的互动和数据整合…

vue+sortablejs来实现列表拖拽——sortablejs的使用

sortablejs官网:https://sortablejs.com/ 最近在看form-builder组件&#xff0c;发现里面有用到sortablejs插件&#xff0c;用于实现拖拽效果。 但是这个官网中的配置&#xff0c;实在是看不懂&#xff0c;太简单又太复杂&#xff0c;不实用。 下面记录一下我的使用&#xff…

光伏设计的核心要素有哪些?

光伏设计是可再生能源领域中的一个重要分支&#xff0c;它涉及到将太阳能转换为电能的整个过程。在光伏系统的设计和构建过程中&#xff0c;有几个核心要素需要被充分考虑和精确计算&#xff0c;以确保系统的性能、可靠性和经济效益。 一、光照条件分析 光照条件是光伏系统设计…

Qwen大模型实践之初体验

Qwen大模型实践之初体验 测试机器, 使用InternStudio提供的开发机&#xff0c;配置如下&#xff1a; 部分资源详细信息&#xff1a; # CPUIntel(R) Xeon(R) Platinum 8369B CPU 2.90GHz# GPU(base) rootintern-studio-50014188:~# studio-smi Running studio-smi by vgpu-smiW…

测评方式揭秘:自养号测评与真人测评的利与弊

在当今电商行业飞速发展的背景下&#xff0c;不少卖家为了提升产品销量和积累良好评价&#xff0c;采取了真人测评和自养号测评两种策略。然而&#xff0c;这两种测评方式的具体运作机制和效果差异&#xff0c;许多卖家可能并未深入了解。接下来&#xff0c;我们将深入挖掘真人…

等保测评二级有哪些标准

等级保护测评&#xff08;等保测评&#xff09;是中国的一项网络安全标准&#xff0c;旨在评估和确保关键信息基础设施的安全。二级等保测评是适用于一般级别的信息系统&#xff0c;这些系统一旦受损&#xff0c;可能会对社会秩序、公共利益和公民权利造成一定程度的影响。 二级…

快速输出标准化3D课件,打造沉浸式培训体验

随着技术的日新月异和市场的迅猛扩张&#xff0c;企业对员工专业技能培训的需求日益凸显。传统的培训方式往往依赖于实地操作、现场指导&#xff0c;这不仅需要大量的人力、物力和时间成本&#xff0c;而且存在安全风险。特别是化工、机械制造等行业&#xff0c;实操培训的成本…

浅析扩散模型与图像生成【应用篇】(二十二)——DreamBooth

21. DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation 本文提出一种根据少量样例图片来对文生图模型进行微调的方法&#xff0c;从而可以生成包含样例物体&#xff0c;但风格、姿态、背景都可以任意修改的图片。现有的文生图模型都是需要…

智能可编程脉冲电源:为电源行业带来前所未有的创新

智能可编程脉冲电源是一种具有高精度、高可靠性、节能降耗和可编程性强等特点的电源设备。它主要由脉冲发生器、功率调节电路和控制电路等组成。脉冲发生器产生的脉冲信号可以驱动功率调节电路&#xff0c;实现对电源输出的电压和电流的精确控制。通过控制电路对脉冲信号进行调…

关闭vscode保存自动格式化的功能

1 首先打开设置 搜索&#xff1a;editor.formatOnSave 取消勾选框 2 再打开 settings.json 搜索 editor 找到 settings.json 设置&#xff1a; "editor.formatOnSave": false

速卖通商品评论API(aliexpress.item_review)返回值全解析

在电商领域&#xff0c;用户评论对于产品的推广和销售具有极其重要的影响。速卖通&#xff08;AliExpress&#xff09;作为全球知名的跨境电商平台&#xff0c;提供了丰富的API接口供开发者使用&#xff0c;其中aliexpress.item_review API允许开发者获取商品的评论信息。本文将…