H3c网络互联学习笔记——配置VLAN

配置VLAN
通过在交换机上配置ACCESS链路端口使PC间处于不同的VLAN,隔离PC间的访问,从而加深对ACCESS链路端口的理解。
实验组网图:
H3c网络互联学习笔记——配置VLAN_第1张图片
进入交换机做配置;
H3c网络互联学习笔记——配置VLAN_第2张图片
H3c网络互联学习笔记——配置VLAN_第3张图片

[SWA-GigabitEthernet1/0/24]port link-type t
[SWA-GigabitEthernet1/0/24]port link-type trunk
[SWA-GigabitEthernet1/0/24]port trunk permit vlan 10 20
[SWA-GigabitEthernet1/0/24]

sys
System View: return to User View with Ctrl+Z.
[SWB]dis vlan
Total VLANs: 2
The VLANs include:
1(default), 10
[SWB]dis vlan 10
VLAN 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/2
GigabitEthernet1/0/3 GigabitEthernet1/0/4
GigabitEthernet1/0/5 GigabitEthernet1/0/6
GigabitEthernet1/0/7 GigabitEthernet1/0/8
GigabitEthernet1/0/9 GigabitEthernet1/0/10

[SWB]int g1/0/24
[SWB-GigabitEthernet1/0/24]port link-t
[SWB-GigabitEthernet1/0/24]port link-type trunk
[SWB-GigabitEthernet1/0/24]port trunk permit vlan 10 20
[SWB-GigabitEthernet1/0/24]

你可能感兴趣的:(openstack,网络)