不同VLAN与通一个VLAN互通
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了不同VLAN与通一个VLAN互通相关的知识,希望对你有一定的参考价值。
实验名称:VLAN通信测试
实验拓扑:
实验所需设备:
1、两台二层交换机 lsw1 lsw2
2、两台PC机 PC1 PC2
3、一台服务器server
地址规划:
1 pc1 IP 192.168.1.1/24 VLAN 10
2 pc2 IP 192.168.1.2/24 VLAN 20
3 server IP 192.168.1.5/24 VLAN 50
实验目的:VLAN10 VLAN20 与VLAN50 通但VLAN10 与VLAN20不通
实验步骤:
配置 LSW 1
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]p
[Huawei-Ethernet0/0/1]port h
[Huawei-Ethernet0/0/1]port hybrid pvid vlan 10
[Huawei-Ethernet0/0/1]q
[Huawei]vlan 10
[Huawei-vlan10]vlan 20
[Huawei-vlan20]
[Huawei-event]q
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]
[Huawei-Ethernet0/0/1]p
[Huawei-Ethernet0/0/1]port h
[Huawei-Ethernet0/0/1]port hybrid un
[Huawei-Ethernet0/0/1]port hybrid untagged vlan 10 50
[Huawei-Ethernet0/0/1]q
[Huawei]int
[Huawei]interface e0/0/2
[Huawei-Ethernet0/0/2]p
[Huawei-Ethernet0/0/2]port h
[Huawei-Ethernet0/0/2]port hybrid pvid vlan 20
[Huawei-Ethernet0/0/2]q
[Huawei]int
[Huawei]interface e0/0/3
[Huawei-Ethernet0/0/3]p
[Huawei-Ethernet0/0/3]port h
[Huawei-Ethernet0/0/3]port hybrid u
[Huawei-Ethernet0/0/3]port hybrid untagged vlan 10 20 50
[Huawei-Ethernet0/0/3]
[Huawei-Ethernet0/0/3]port hybrid tagged vlan 10 20 50
[Huawei-Ethernet0/0/3]
配置LSW2
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan 50
[Huawei-vlan50]vlan 10
[Huawei-vlan10]vlan 20
[Huawei-vlan20]
[Huawei-event]q
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]p
[Huawei-Ethernet0/0/1]port h
[Huawei-Ethernet0/0/1]port hybrid t
[Huawei-Ethernet0/0/1]port hybrid tagged vlan 10 20 50
[Huawei-Ethernet0/0/1]q
[Huawei]int e0/
[Huawei-Ethernet0/0/2]p
[Huawei-Ethernet0/0/2]port h
[Huawei-Ethernet0/0/2]port hybrid u
[Huawei-Ethernet0/0/2]port hybrid untagged vlan 20 50 10
验证测试:
PC1 ping server
PC1 ping PC2
以上是关于不同VLAN与通一个VLAN互通的主要内容,如果未能解决你的问题,请参考以下文章