要求:
1、
2、
3、
一、基础配置
[LSW1]vlan batch 10 20
[LSW1]port-group group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/4
[LSW1-port-group]port link-type access
[LSW1-port-group]port default vlan 10
[LSW1-port-group]quit
[LSW1]interface GigabitEthernet 0/0/5
[LSW1-GigabitEthernet0/0/5]port link-type access
[LSW1-GigabitEthernet0/0/5]port default vlan 20
[LSW1]interface Vlanif 10
[LSW1-Vlanif10]ip address 1.1.1.1 24
[LSW1-Vlanif10]quit
[LSW1]interface Vlanif 20
[LSW1-Vlanif20]ip address 1.1.2.1 24
[LSW1-Vlanif20]quit
二、配置端口隔离组功能
方法一:(进入对应接口开启组功能)
[LSW1]interface GigabitEthernet 0/0/1
[LSW1-GigabitEthernet0/0/1]port-isolate enable group 2
[LSW1-GigabitEthe