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

发布时间:2026/9/3 7:46:39
华三华为锐捷迈普中兴交换机二三层接口切换命令 一 华三交换机1.交换接口切换为路由接口interface GigabitEthernet 1/0/24 port link-mode route # 切换为三层路由接口 ip address 192.168.100.2 242.路由接口切换为交换接口#vlan 100interface GigabitEthernet 1/0/24port link-mode bridge # 切换为交换接口port link-type access port default vlan 100#interface GigabitEthernet 1/0/1port 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 242.路由接口切换为交换接口vlan 100interface GigabitEthernet 1/0/24portswitch # 切换为交换接口port link-type access port default vlan 100#interface GigabitEthernet 1/0/1portswitch # 切换为交换接口port link-type trunk port trunk allow vlan 10 100#三 锐捷/迈普交换机!interface gi0/24no switchport # 切换为三层路由接口ip address 192.168.100.2 255.255.255.0!vlan 100interface gi0/24switchport # 切换为交换接口switchport mode accessswitchport access vlan 100!interface gi0/1switchport # 切换为交换接口switchport mode trunkswitchport trunk allowed vlan only 20,30!四 中兴交换机$interface xlgei-0/2/0/1switch attribute disable # 切换为三层路由接口ip address 192.168.100.2 24$vlan 100interface xlgei-0/1/0/36switch attribute enable # 切换为交换接口switchport mode accessswitchport access vlan 100$interface xlgei-0/1/0/1switch attribute enable # 切换为交换接口switchport mode trunkswitchport trunk vlan 100$