当前位置:网站首页>vlan试验2021.1.14
vlan试验2021.1.14
2022-07-27 17:11:00 【拥抱mo mo】
vlan大实验
一,搭建拓扑
二,划分vlan
1,将pc1 pc3划分入vlan2,
2,将pc2划分为vlan2
3,将pc4,pc5划分为vlan4
4,将pc6划分为vlan5
三,配置交换机vlan
[Huawei-Ethernet0/0/1]port link-type access 先将该接口定义为接入模式
*
四,创建trunk干道
trunk干道—中继干道 不属于任何一个vlan;承载所有vlan的流量转发;具有标记(封装VLANID)和识别(读取,解封装VLANID)的能力;
[sw1]interface GigabitEthernet 0/0/1
[sw1-GigabitEthernet0/0/1]port link-type trunk 定义接口为trunk模式;

五,dhcp 获取IP地址。
6,单臂路由,创建子接口。多层交换机(SVI)

在这里插入
七,获取地址
八,ping,使全网可达。
不同端口区别

图片描述
*
vlan配置基础命令
①VLAN建立:全局模式下 vlan 1
②改变接口模式:接口模式下 switchport mode + 模式
③将端口加入到VLAN:接口模式下 switchport access VLAN
④将端口改变为Trunk模式:接口模式下 switchport mode trunk
⑤为接口封装802.1:接口模式下 switchport trunk encapsulation dot1q
⑥启用路由功能:全局模式下 ip routing
⑦为配置ip地址:接口模式下 ip address ip地址 子网掩码
⑧开启端口:接口模式下 no shutdown
⑨虚拟端口:全局模式下 interface fastEthernet 0/0._ _为VLAN号
⑩封装802.1:Router(config-subif)# encapsulation dot1Q VLAN号
边栏推荐
- What's new in helix QAC 2022.2, the ace code static testing tool (2)
- 【深度学习基础知识 - 40】CNN为什么比DNN在图像领域更具优势
- JS 事件监听 鼠标 键盘 表单 页面 onclick onkeydown onChange
- 【深度学习基础知识 - 48】贝叶斯网络的特点
- Dry goods of technical practice | preliminary exploration of large-scale gbdt training
- Pytorch reports CUDA error: no kernel image is available for execution on the device error
- Introduction to several wireless protocols
- 嵌入式C语言对次数固定的循环的优化
- 嵌入式C语言循环展开
- The first in the field of mobile phone chip design in the world! Ziguang zhanrui won the international certification of tmmi4
猜你喜欢

访问控制

GridView(实现表格显示图标)

GestureOverlayView(手势识别2)

A lock faster than read-write lock. Don't get to know it quickly
Dry goods of technical practice | preliminary exploration of large-scale gbdt training

二叉搜索树

SharePreference(存储)

Map and set

Detailed interpretation of IEC104 protocol (I) protocol structure

IDEA:解决代码没有提示问题
随机推荐
【深度学习基础知识 - 50】PCA降维 主成成分分析
【日常积累 - 06】查看cuda和cudnn版本
访问控制
英特尔推出全球最小的高分辨率激光雷达,售价仅349美元
RadioGroup(单选框)
ReferenceError: __ dirname is not defined in ES module scope
Binary search tree
Turn Hyper-V on and off
【深度学习基础知识 - 43】优势比的概念
Fabric上搭建Hyperledger caliper进行性能测试
Pytorch reports CUDA error: no kernel image is available for execution on the device error
The go zero singleton service uses generics to simplify the registration of handler routes
JS 寻找所有节点sibling childNodes children
Influxdb series (IV) TSM engine (storage principle)
OneNote code highlighting
坚持软硬一体化,一恒科发力智能化教育机器人市场
OPPO发布首款AR眼镜,宣布未来3年投入500亿进行研发
SumMenuDemo(子菜单)
A lock faster than read-write lock. Don't get to know it quickly
[basic knowledge of deep learning - 49] kmeans