标签: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
标签:use proc 配置 测试 text code 一个 system b16
原文地址:http://blog.51cto.com/13467772/2063140