当前位置:网站首页>华为Vlan创建及原理简单说明
华为Vlan创建及原理简单说明
2022-08-02 14:15:00 【China-P】
一、实验TOP图及说明
Trunk的PVID值默认为1,为了通信效率
通常会将Trunk的PVID值修改为流量最大的VLAN的PVID
使得干道通信中按纯以太网帧转发,两端的交换机trunk 接口的PVID值要修改一致
二、配置说明
2.1 交换机一配置(floor1)
[floor 1]vlan batch 2 3 #创建vlan 2 vlan3
[floor 1]int e0/0/1 #进入e0/0/1接口
[floor 1-Ethernet0/0/1]port link-type trunk #设置端口类型为Trunk
[floor 1-Ethernet0/0/1]port trunk allow-pass vlan 2 3 #允许vlan 2 vlan3 通过
[floor 1-Ethernet0/0/1]int e0/0/2 #进入e0/0/2接口
[floor 1-Ethernet0/0/2]port link-type access #设置端口类型为access
[floor 1-Ethernet0/0/2]port default vlan 2 #将端口加入到vlan2
[floor 1-Ethernet0/0/2]int e0/0/3 #进入e0/0/3接口
[floor 1-Ethernet0/0/3]port link-type access #设置端口类型为access
[floor 1-Ethernet0/0/3]port default vlan 3 #将端口加入到vlan2
[floor 1]int e0/0/1 #进入e0/0/1接口
[floor 1-Ethernet0/0/1]port trunk pvid vlan 2 #修改Trunk PVID值
<floor 1>dis cur int e0/0/1 #查看 e0/0/1配置
2.1 交换机二配置(floor2)
[floor 2]vlan batch 2 3 #创建vlan 2 vlan3
[floor 2]int e0/0/1 #进入e0/0/1接口
[floor 2-Ethernet0/0/1]port link-type trunk #设置端口类型为Trunk
[floor 2-Ethernet0/0/1]port trunk allow-pass vlan 2 3 #允许vlan 2 vlan3 通过
[floor 2-Ethernet0/0/1]int e0/0/2 #进入e0/0/2接口
[floor 2-Ethernet0/0/2]port link-type access #设置端口类型为access
[floor 2-Ethernet0/0/2]port default vlan 2 #将端口加入到vlan2
[floor 2-Ethernet0/0/2]int e0/0/3 #进入e0/0/3接口
[floor 2-Ethernet0/0/3]port link-type access #设置端口类型为access
[floor 2-Ethernet0/0/3]port default vlan 3 #将端口加入到vlan2
[floor 2]int e0/0/1 #进入e0/0/1接口
[floor 2-Ethernet0/0/1]port trunk pvid vlan 2 #修改Trunk PVID值
<floor 2>dis cur int e0/0/1 #查看 e0/0/1配置
边栏推荐
猜你喜欢
随机推荐
光栅区域衍射级数和效率的规范
[Inter-process communication]: pipe communication/named/unnamed
【软件测试】禅道的简要介绍
Qt | 播放音频文件 QMediaplayer
【进程间通信】消息队列
EastWave:垂直腔表面激光器
软件测试之WEB自动化
golang内存相关文章-收集
Vert.x web 接收请求时反序列化对象 Failed to decode 如何解决?
tpproxy-tcp透明代理
Oauth2.0 资源服务器搭建
udp transparent proxy
SkyWalking Agent数据采集和上报原理浅析
Xrdp 体验优化
使用三个线程,按顺序打印X,Y,Z,连续打印10次
TCP的三次握手和四次挥手
OpenPose 运行指令 ([email protected])
饥荒联机版Mod开发——准备工具(一)
【网络安全】学习笔记 --02 安全通信协议
字符数组/字符串数组|数组指针/指针数组/