华为交换机vlan配置
Trunk口设置
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 3
Access口设置
interface GigabitEthernet0/0/4
port link-type access
port default vlan 2
人生苦短,我用python
Trunk口设置
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 3
Access口设置
interface GigabitEthernet0/0/4
port link-type access
port default vlan 2