H3C Cloud Lab交换机VLAN划分
单交换机VLAN划分
实验拓扑:
要求:PC1能和PC4通信但是不能和PC2、PC3通信
PC2能和PC3通信但是不能和PC1、PC4通信
S1配置:
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]sysname S1
[S1]vlan 10
[S1-vlan10]port GigabitEthernet 1/0/1
[S1-vlan10]port GigabitEthernet 1/0/4
[S1-vlan10]vlan 20
[S1-vlan20]port g 1/0/2
[S1-vlan20]port g 1/0/3
[S1-vlan20]dis vlan
Total VLANs: 3
The VLANs include:
1(default), 10, 20
[S1-vlan20]dis vlan all
........................................
AN ID: 10
VLAN type: Static
Route interface: Not configured
Description: VLAN 0010
Name: VLAN 0010
Tagged ports: None
Untagged ports:
GigabitEthernet1/0/1 GigabitEthernet1/0/4
VLAN ID: 20
VLAN type: Static
Route interface: Not configureda
Description: VLAN 0020
Name: VLAN 0020
Tagged ports: None
Untagged ports:
GigabitEthernet1/0/2 GigabitEthernet1/0/3
[S1-vlan20]
测试:
跨交换机VLAN划分(trunk)
实验拓扑:
要求:PCA与PCC能够互通;PCA与PCB之间不能互通;
配置好各PC地址、网关、掩码
SWA配置:
SWB配置:
测试:
此文章若有错误请大佬指正