批量接口配置port-group 技术
port-group group-member g0/0/1 to g0/0/9
port link-type access
port default vlan 2
可实现同时给1-9口配置相同命令
port-group group-member g0/0/10 to g0/0/19
port link-type access
port default vlan 3
上行接口配置
interface GigabitEthernet0/0/23
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 3
interface GigabitEthernet0/0/24
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan