当前位置:网站首页>华为ensp模拟器 三层交换机
华为ensp模拟器 三层交换机
2022-07-04 20:10:00 【Python-派大星】
目录
一、用一台交换机连接pc机,将他们划分进不同的vlan,实现隔离。
2、将连接pc机的接口设置为access接口(设置前要进入该接口 int命令)
4、将连接另一台交换机的接口设置为trunk接口(设置前要进入该接口)
5、给trunk接口开放通行需要同行的vlan(设置前要进入该接口)
二、再用一台交换机,当这几台pc机的网关,给每个vlan配置IP地址
原理:
先用vlan把用户隔离开,再用三层交换机,将隔离的用户连起来。
隔离:隔离的是故障
连通:连通的是正常通信
运用三层交换机实现。

用LSW2交换机将两台pc机隔开,划分到不同的vlan里。再用LSW1交换机将两台pc机连接。
这样两台pc机就不能直接通过LSW2交换机通信(隔离病毒的传播),而是需要通过LSW1这个交换机实现通信(实现通信)。
三层交换机实现步骤:
一、用一台交换机连接pc机,将他们划分进不同的vlan,实现隔离。
1、创建好要用到的vlan
#创建vlan 10 和vlan 20
vlan 10
vlan 20
#批量创建vlan
vlan batch 回车后输入vlan名,每个vlan名以空格隔开2、将连接pc机的接口设置为access接口(设置前要进入该接口 int命令)
#该端口链路类型为访问
port link-type access3、将接口划分进入vlan里(设置前要进入该接口)
#将接口划分到vlan 10 里
port default vlan 104、将连接另一台交换机的接口设置为trunk接口(设置前要进入该接口)
port link-type trunk5、给trunk接口开放通行需要同行的vlan(设置前要进入该接口)
#该trunk接口开放通行所有vlan
port trunk allow-pass vlan all
#可一个个开放vlan接口,例:
#给trunk接口开放通行vlan 10 和vlan 20的数据包
port trunk allow-pass vlan 10
port trunk allow-pass vlan 20 实现步骤:
二、再用一台交换机,当这几台pc机的网关,给每个vlan配置IP地址
1、创建好要用到的vlan
#创建vlan10 和 vlan 20
vlan 10
vlan 202、将连接交换机的接口设置为trunk接口
#该端口的链路类型为中继
port link-type trunk3、给trunk接口开放通行需要同行的vlan
#给trunk接口放行vlan 10和vlan 20
port trunk allow-pass vlan 10
port trunk allow-pass vlan 20
#给trunk接口放行所有vlan
port trunk allow-pass vlan all4、进入创建的vlan(要用到的vlan都需要配置)
#进入vlan 10 端口
interface Vlanif 10
#简写
int vlan 105、给vlan配置IP地址和子网掩码(要用到的vlan都需要配置)(需要进入到vlan里设置)
注意:这台交换机即三层交换机,他的vlanIP地址就是那些pc机的网关。
#给vlan配置1.1.1.254网段的IP地址
ip address 1.1.1.254 255.255.255.0
#简写:
ip add 1.1.1.254 24 实现步骤:


边栏推荐
- 奏响青春的乐章
- In the face of the same complex test task, why can the elder sort out the solution quickly? Ali's ten-year test engineers showed their skills
- LeetCode 8. String conversion integer (ATOI)
- GVM use
- LeetCode+ 81 - 85 单调栈专题
- c语言函数形参自增自减情况分析
- 【申博攻略】六.如何联系心仪的博导
- Remember to build wheels repeatedly at one time (the setting instructions of obsidian plug-in are translated into Chinese)
- Idea restore default shortcut key
- 浏览器渲染页面过程
猜你喜欢

字节测试工程师十年经验直击UI 自动化测试痛点

What if the WiFi of win11 system always drops? Solution of WiFi total drop in win11 system

idea配置标准注释
![[1200. Minimum absolute difference]](/img/fa/4ffbedd8f24c75a20d3eaeaf0430ae.png)
[1200. Minimum absolute difference]

FastDfs的快速入门,三分钟带你上传下载文件到云服务器

Idea configuration standard notes

Explication détaillée du mécanisme de distribution des événements d'entrée multimodes

PS竖排英文和数字文字怎么改变方向(变竖直显示)

Flet tutorial 04 basic introduction to filledtonalbutton (tutorial includes source code)

The concept and application of hash table
随机推荐
Ten years' experience of byte test engineer directly hits the pain point of UI automation test
From automation to digital twins, what can Tupo do?
How to solve the problem that win11 cannot write the value to the registry key?
接口设计时的一些建议
Automatic insertion of captions in word
acwing 3302. Expression evaluation
[server data recovery] a case of RAID5 data recovery stored in a brand of server
How does wincc7.5 SP1 find variables and their positions through cross indexing?
idea大小写快捷键
idea插件
Render function and virtual DOM
word中插入图片后,图片上方有一空行,且删除后布局变乱
测试用例 (TC)
奏响青春的乐章
word中使用自动插入题注功能
Browser render page pass
heatmap.js图片热点热力图插件
What if the brightness of win11 is locked? Solution to win11 brightness locking
基于OpenCV haarcascades的对象检测
What if the WiFi of win11 system always drops? Solution of WiFi total drop in win11 system