首页 > 其他分享 >跨交换机应用vlan

跨交换机应用vlan

时间:2022-12-27 23:33:26浏览次数:42  
标签:20 Ethernet0 vlan Huawei 交换机 应用 interface port

 

LSW1

<Huawei>sys
[Huawei]vlan batch 10 20
[Huawei]undo info enable
[Huawei]interface Ethernet0/0/1	
[Huawei-Ethernet0/0/1]port link-type access	
[Huawei-Ethernet0/0/1]port default vlan 10
[Huawei-Ethernet0/0/1]quit
[Huawei]interface Ethernet0/0/2	
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]port default vlan 10
[Huawei-Ethernet0/0/2]quit
[Huawei]interface Ethernet 0/0/3
[Huawei-Ethernet0/0/3]port link-type access	
[Huawei-Ethernet0/0/3]port default vlan 20
[Huawei-Ethernet0/0/3]quit
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20

LSW2

<Huawei>sys
[Huawei]vlan batch 10 20
[Huawei]interface Ethernet0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port default vlan 20
[Huawei-Ethernet0/0/1]quit
[Huawei]interface Ethernet 0/0/2	
[Huawei-Ethernet0/0/2]port link-type access	
[Huawei-Ethernet0/0/2]port default vlan 20
[Huawei-Ethernet0/0/2]quit
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type trunk	
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20

 PC1能ping通vlan10中的,ping不通vlan20的 

 

参考:https://blog.csdn.net/chenqiong_/article/details/121170302

标签:20,Ethernet0,vlan,Huawei,交换机,应用,interface,port
From: https://www.cnblogs.com/longlyseul/p/17009244.html

相关文章