核心实验10_hybrid(实现access和trunk功能)_ENSP
用hybrid的属性 是否打标签来达到替代使用access或trunk接口的目的
[sw1]vlan 10
[sw1-vlan10]int g0/0/1
[sw1-GigabitEthernet0/0/1]port hybrid pvid vlan 10 /将该接口划入vlan 10
[sw1-GigabitEthernet0/0/1]port hybrid untagged vlan 10 /该接口发包不打标签
[sw1-GigabitEthernet0/0/1]undo port hybrid vlan 1
以上操作实现了用hybrid接口代替access接口,且只限vlan 10
--------------------------------------------------------
[sw1]int g0/0/2
[sw1-GigabitEthernet0/0/2]port hybrid tagged vlan 10 /vlan 10打标签通过
以上操作实现了用hybrid接口代替trunk接口,且只限vlan 10
--------------------------------------------------------
[sw2]vlan 10
[sw2-vlan10]int g0/0/2
[sw2-GigabitEthernet0/0/2]port hybrid pvid vlan 10
[sw2-GigabitEthernet0/0/2]port hybrid untagged vlan 10
[sw2-GigabitEthernet0/0/2]undo port hybrid vlan 1
以上操作实现了用hybrid接口代替access接口,且只限vlan 10
--------------------------------------------------------
[sw2-GigabitEthernet0/0/2]int g0/0/1
[sw2-GigabitEthernet0/0/1]port hybrid tagged vlan 10
以上操作实现了用hybrid接口代替trunk接口,且只限vlan 10
--------------------------------------------------------
display port vlan active 查看接口状态