实验思路:
- 配置IP
- 创建VLAN 、划分VLAN、
- 修改VLAN的模式接口
实验步骤:
[sw1]vlan batch 10 to 30
[sw1]interface GigabitEthernet 0/0/2
[sw1-GigabitEthernet0/0/2]port hybrid pvid vlan 20
[sw1-GigabitEthernet0/0/2]port hybrid untagged vlan 10 to 20
[sw1-GigabitEthernet0/0/2]q
[sw1]interface GigabitEthernet 0/0/1
[sw1-GigabitEthernet0/0/1]port hybrid pvid vlan 10
[sw1-GigabitEthernet0/0/1]port hybrid untagged vlan 10 to 30
[sw1]interface GigabitEthernet 0/0/3
[sw1-GigabitEthernet0/0/3]po
[sw1-GigabitEthernet0/0/3]port hybrid pvid vlan 30
[sw1]interface GigabitEthernet 0/0/3
[sw1-GigabitEthernet0/0/3]port hybrid untagged vlan 10 30