当前位置:网站首页>华为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 access
3、将接口划分进入vlan里(设置前要进入该接口)
#将接口划分到vlan 10 里
port default vlan 10
4、将连接另一台交换机的接口设置为trunk接口(设置前要进入该接口)
port link-type trunk
5、给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 20
2、将连接交换机的接口设置为trunk接口
#该端口的链路类型为中继
port link-type trunk
3、给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 all
4、进入创建的vlan(要用到的vlan都需要配置)
#进入vlan 10 端口
interface Vlanif 10
#简写
int vlan 10
5、给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
实现步骤:
边栏推荐
- LeetCode+ 81 - 85 单调栈专题
- Managed service network: application architecture evolution in the cloud native Era
- How does win11 search for wireless displays? Win11 method of finding wireless display device
- 看腾讯大老如何做接口自动化测试
- 测试用例 (TC)
- Nmap scan
- 科普达人丨一文看懂阿里云的秘密武器“神龙架构”
- Foxit pdf editor v10.1.8 green version
- hash 表的概念及应用
- MySQL - database query - use of aggregate function, aggregate query, grouping query
猜你喜欢
[observation] Lenovo: 3x (1+n) smart office solution, releasing the "multiplier effect" of office productivity
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
伦敦银走势图分析的新方法
接口設計時的一些建議
阿里测试师用UI自动化测试实现元素定位
仿ps样式js网页涂鸦板插件
heatmap.js图片热点热力图插件
MySQL - database query - use of aggregate function, aggregate query, grouping query
工厂从自动化到数字孪生,图扑能干什么?
From automation to digital twins, what can Tupo do?
随机推荐
科普达人丨一文看懂阿里云的秘密武器“神龙架构”
面对同样复杂的测试任务为什么大老很快能梳理解决方案,阿里十年测试工程师道出其中的技巧
Automatic generation of interface automatic test cases by actual operation
What if the computer page cannot be full screen? The solution of win11 page cannot be full screen
BFC interview Brief
Google colab踩坑
奏响青春的乐章
扩展你的KUBECTL功能
[1200. Minimum absolute difference]
What if the brightness of win11 is locked? Solution to win11 brightness locking
Hwinfo hardware detection tool v7.26 green version
【1200. 最小绝对差】
Idea plug-in
The concept and application of hash table
LeetCode+ 81 - 85 单调栈专题
网件r7000梅林系统虚拟内存创建失败,提示USB磁盘读写速度不满足要求解决办法,有需要创建虚拟内存吗??
Poster cover of glacier
MySQL - database query - use of aggregate function, aggregate query, grouping query
Browser render page pass
Gobang go to work fishing tools can be LAN / man-machine