当前位置:网站首页>VLAN实验
VLAN实验
2022-07-30 13:26:00 【蒽筱】

实验要求:1 PC1和PC3所在接口为access;属于vlan2;PC2/4/5/6处于同一网段;其中PC2可以访问PC4/5/6;但pc4可以访问pC5,不能访问pC6
2 PC5不能访问PC6
3 PC1/3与PC2/4/5/6不在同一个网段
4所有Pc通过oHCP获取IP地址,且PC1/3可以正常访问PC2/4/5/6
实验配置
1、创建vlan
vlan batch 2 to 6
2、按需求修改接口(以SW1为例)
[sw1]int g0/0/2
[sw1-GigabitEthernet0/0/2]port link-type access
[sw1-GigabitEthernet0/0/2]port default vlan 2
[sw1]int g0/0/3
[sw1-GigabitEthernet0/0/3]port link-type hybrid
[sw1-GigabitEthernet0/0/3]port hybrid pvid vlan 3
[sw1-GigabitEthernet0/0/3]port hybrid untagged vlan 3 4 5 6
[sw1]int g0/0/4
[sw1-GigabitEthernet0/0/4]port link-type trunk
[sw1-GigabitEthernet0/0/4]port trunk allow-pass vlan all







边栏推荐
- grep时排除指定的文件和目录
- DeFi 巨头进军 NFT 领域 用户怎么看?
- 判断链表是否有环
- CF338E Optimize!
- How to display an Excel table in the body of an email?
- 重保特辑|拦截99%恶意流量,揭秘WAF攻防演练最佳实践
- R语言ggplot2可视化:使用ggpubr包的ggmaplot函数可视化MA图(MA-plot)、设置label.select参数自定义在图中显示标签的基因类型(自定义显示的标签列表)
- No-code development platform all application settings introductory tutorial
- shell script flow control statement
- R语言ggplot2可视化:使用ggpubr包的ggboxplot函数可视化分组箱图、使用ggpar函数改变图形化参数(ylim、修改可视化图像y轴坐标轴数值范围)
猜你喜欢
随机推荐
jsArray array copy method performance test 2207292307
js人均寿命和GDP散点图统计样式
pytorch学习记录(六):循环神经网络 RNN & LSTM
The path to uniting the programmer: "titles bucket" to the highest state of pragmatic
打破原则引入SQL,MongoDB到底想要干啥???
[ARC092B] Two Sequences
ARC117E Zero-Sum Ranges 2
【软考软件评测师】自动化测试章节下篇
(HR面试)最常见的面试问题和技巧性答复
AT4108 [ARC094D] Normalization
No-code development platform all application settings introductory tutorial
Raja Koduri澄清Arc GPU跳票传闻 AXG年底前新推四条产品线
【ROS进阶篇】第十一讲 基于Gazebo和Rviz的机器人联合仿真(运动控制与传感器)
no matching host key type found. Their offer: ssh-rsa
ML之PDP:基于FIFA 2018 Statistics(2018年俄罗斯世界杯足球赛)球队比赛之星分类预测数据集利用DT决策树&RF随机森林+PDP部分依赖图可视化实现模型可解释性之详细攻略
【微信小程序】一文带你搞懂小程序的页面配置和网络数据请求
pytorch学习记录(五):卷积神经网络的实现
05 | login background: based on the password login mode (below)
人社部公布“数据库运行管理员”成新职业,OceanBase参与制定职业标准
【Pytorch】如何在关闭batch-norm的同时保持Dropout的开启









