华三华为锐捷迈普中兴交换机二三层接口切换命令

一 华三交换机

1.交换接口切换为路由接口

interface GigabitEthernet 1/0/24 port link-mode route # 切换为三层路由接口 ip address 192.168.100.2 24

2.路由接口切换为交换接口

vlan 100

interface GigabitEthernet 1/0/24

port link-mode bridge # 切换为交换接口

port link-type access port default vlan 100

interface GigabitEthernet 1/0/1

port link-mode bridge # 切换为交换接口

port link-type trunk port trunk permit vlan 10 100

二 华为交换机

1.交换接口切换为路由接口

interface GigabitEthernet 1/0/24 undo portswitch # 切换为三层路由接口 ip address 192.168.100.2 24

2.路由接口切换为交换接口

vlan 100

interface GigabitEthernet 1/0/24

portswitch # 切换为交换接口

port link-type access port default vlan 100

interface GigabitEthernet 1/0/1

portswitch # 切换为交换接口

port link-type trunk port trunk allow vlan 10 100

三 锐捷/迈普交换机

!

interface gi0/24

no switchport # 切换为三层路由接口

ip address 192.168.100.2 255.255.255.0

!

vlan 100

interface gi0/24

switchport # 切换为交换接口

switchport mode access

switchport access vlan 100

!

interface gi0/1

switchport # 切换为交换接口

switchport mode trunk

switchport trunk allowed vlan only 20,30

!

四 中兴交换机

$

interface xlgei-0/2/0/1

switch attribute disable # 切换为三层路由接口

ip address 192.168.100.2 24

$

vlan 100

interface xlgei-0/1/0/36

switch attribute enable # 切换为交换接口

switchport mode access

switchport access vlan 100

$

interface xlgei-0/1/0/1

switch attribute enable # 切换为交换接口

switchport mode trunk

switchport trunk vlan 100

$

相关推荐
YWamy13 小时前
如何降低RTC SDK在复杂网络环境下的运行成本
网络·音视频·实时音视频
北京盛世宏博14 小时前
信创国产化智慧档案馆管库系统:十二防一体化管控平台落地笔记
网络·方案·温湿度·智慧档案馆建设
w-w0w-w14 小时前
SQL注入
网络·数据库·sql
一条泥憨鱼14 小时前
【计算机网络】短连接、长连接与连接池:从 TCP 握手到池化复用的完整链路
网络·数据库·网络协议·tcp/ip·计算机网络
北京盛世宏博15 小时前
数字孪生 3D 可视化实战:档案十防体系温湿度数据联动与告警定位实现
网络·档案八防·十防
Lynne30916 小时前
EtherCAT网络中,多个节点如何配置才能互不干扰?
网络·网络配置·ethercat·工业网络
Yang961116 小时前
实验室里的多面手:鼎讯信通TM-150信号发生器技术拆解与实测思考
网络
知已难寻16 小时前
03 · OpenStack的计算管理 Nova
运维·服务器·开发语言·云原生·云计算·openstack·开源软件
huainingning17 小时前
Windows syslog日志服务器搭建与模拟器对接
运维·服务器·智能路由器
say_fall17 小时前
【Linux系统编程】Ext 文件系统:磁盘与存储、文件与目录、现代计算机究竟如何寻找文件
linux·运维·服务器·数据库·c++