码迷,mamicode.com
首页 > 其他好文 > 详细

不同VLAN与通一个VLAN互通

时间:2018-01-20 14:02:02      阅读:223      评论:0      收藏:0      [点我收藏+]

标签:use   proc   配置   测试   text   code   一个   system   b16   

实验名称: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互通

标签:use   proc   配置   测试   text   code   一个   system   b16   

原文地址:http://blog.51cto.com/13467772/2063140

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!