8.华为两台交换机的三种连接方式access 、trunk、undo portswitch

目的:两台三层交换机的三种连接方式

1.access

2.trunk

3.undo portswitch 模拟机不支持此配置,实体机支持

第一种access

CE1配置

bash 复制代码
[~HUAWEI]vlan batch 10
[~HUAWEI]int Vlanif 10
[~HUAWEI-Vlanif10]ip add 10.10.10.1 24
[~HUAWEI]int g1/0/0
[~HUAWEI-GE1/0/0]port link-type access 
[~HUAWEI-GE1/0/0]port default vlan 10

CE2配置

bash 复制代码
[~HUAWEI]vlan batch 10
[~HUAWEI]int Vlanif 10
[~HUAWEI-Vlanif10]ip add 10.10.10.2 24
[~HUAWEI]int g1/0/0
[~HUAWEI-GE1/0/0]port link-type access 
[~HUAWEI-GE1/0/0]port default vlan 10

第二种trunk

CE1配置

bash 复制代码
[~HUAWEI]vlan batch 10
[~HUAWEI]int Vlanif 10
[~HUAWEI-Vlanif10]ip add 10.10.10.1 24
[~HUAWEI]int g1/0/0
[*HUAWEI-GE1/0/0]port link-type trunk 
[*HUAWEI-GE1/0/0]port trunk allow-pass vlan all

CE2配置

bash 复制代码
[~HUAWEI]vlan batch 10
[~HUAWEI]int Vlanif 10
[~HUAWEI-Vlanif10]ip add 10.10.10.2 24
[~HUAWEI]int g1/0/0
[*HUAWEI-GE1/0/0]port link-type trunk 	
[*HUAWEI-GE1/0/0]port trunk allow-pass vlan all

第三种undo portswitch

CE1配置

bash 复制代码
[*HUAWEI]int g1/0/0	
[*HUAWEI-GE1/0/0]undo portswitch
[*HUAWEI-GE1/0/0]ip add 10.10.10.1 24

CE2配置

bash 复制代码
[*HUAWEI]int g1/0/0	
[*HUAWEI-GE1/0/0]undo portswitch
[*HUAWEI-GE1/0/0]ip add 10.10.10.2 24
相关推荐
实在智能RPA6 小时前
华为昇腾×实在智能:让国产AI科技实实在在“飞得更高”
人工智能·科技·华为·实在智能·agent智能体
硅纪元11 小时前
硅纪元视角 | 国内首款鸿蒙人形机器人“夸父”开启应用新篇章
华为·机器人·harmonyos
charley.layabox13 小时前
华为快游戏研发负责人Leo:快游戏新生态
游戏·华为
eve杭1 天前
鸿蒙NEXT
华为
Geeker551 天前
适用于 Windows 11/10/8/7/Vista/XP 的最佳免费分区软件
android·windows·ios·华为·智能手机·笔记本电脑·iphone
读心悦1 天前
【鸿蒙】开发中设置热更新
华为·harmonyos
华为云PaaS服务小智1 天前
HDC Cloud 2024 | CodeArts加速软件智能化开发,携手HarmonyOS重塑企业应用创新体验
人工智能·华为·harmonyos
碎像1 天前
鸿蒙 HarmonyOS Next 路由 不废话 全干货
开发语言·华为·harmonyos
Tony11542 天前
华为路由器静态路由配置(eNSP模拟实验)
网络·华为·智能路由器
chenhua10086112 天前
鸿蒙应用更新跳转到应用市场
华为·harmonyos