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
相关推荐
ajassi20006 小时前
开源 Arkts 鸿蒙应用 开发(十八)通讯--Ble低功耗蓝牙服务器
华为·开源·harmonyos
前端世界7 小时前
在鸿蒙应用中快速接入地图功能:从配置到实战案例全解析
华为·harmonyos
江拥羡橙9 小时前
【基础-判断】HarmonyOS提供了基础的应用加固安全能力,包括混淆、加密和代码签名能力
安全·华为·typescript·harmonyos
前端世界20 小时前
HarmonyOS 实战:用 @Observed + @ObjectLink 玩转多组件实时数据更新
华为·harmonyos
ajassi200021 小时前
开源 Arkts 鸿蒙应用 开发(十六)自定义绘图控件--波形图
华为·开源·harmonyos
monster_风铃1 天前
华为实验 链路聚合
网络·华为
前端世界1 天前
鸿蒙任务调度机制深度解析:优先级、时间片、多核与分布式的流畅秘密
分布式·华为·harmonyos
YF云飞1 天前
.NET 在鸿蒙系统(HarmonyOS Next)上的适配探索与实践
华为·.net·harmonyos
范纹杉想快点毕业2 天前
《嵌入式 C 语言编码规范与工程实践个人笔记》参考华为C语言规范标准
服务器·c语言·stm32·单片机·华为·fpga开发·51单片机
Fanmeang2 天前
MP-BGP Hub-Spoken实验案例+通信过程(超详细)
运维·网络·华为·mpls·vpn·mpbgp·hubspoke