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
相关推荐
mocoding15 小时前
使用鸿蒙化flutter_fluttertoast替换Flutter原有的SnackBar提示弹窗
flutter·华为·harmonyos
小雨青年18 小时前
鸿蒙 HarmonyOS 6 | AI Kit 集成 Core Speech Kit 语音服务
人工智能·华为·harmonyos
熊猫钓鱼>_>1 天前
【开源鸿蒙跨平台开发先锋训练营】Day 15: 赋予应用生命力——React Native原生动效体系构建
react native·华为·开源·harmonyos·arkts·鸿蒙
大雷神1 天前
HarmonyOS智慧农业管理应用开发教程--高高种地--第16篇:HarmonyOS AI能力概述与集成
人工智能·华为·harmonyos
BlackWolfSky1 天前
鸿蒙中级课程笔记6—使用ArkWeb开发
笔记·华为·harmonyos
_waylau1 天前
首本鸿蒙架构师培养手册《鸿蒙架构师修炼之道》简介
华为·harmonyos·鸿蒙·鸿蒙系统·仓颉·cangjie
熊猫钓鱼>_>1 天前
【开源鸿蒙跨平台开发先锋训练营】Day 19: 开源鸿蒙React Native动效体系构建与混合开发复盘
react native·华为·开源·harmonyos·鸿蒙·openharmony
mocoding1 天前
使用Flutter强大的图标库fl_chart优化鸿蒙版天气预报温度、降水量、湿度展示
flutter·华为·harmonyos
Cobboo1 天前
i单词上架鸿蒙应用市场之路:一次从 Android 到 HarmonyOS 的完整实战
android·华为·harmonyos
熊猫钓鱼>_>1 天前
【开源鸿蒙跨平台开发先锋训练营】鸿蒙应用开发 Day 10 - React Native for OpenHarmony 实战:多端响应式布局与高可用交互设计
华为·开源·交互·harmonyos·鸿蒙·rn·gridrow