[SWA]vlan batch 10 20
[SWA-GigabitEthernet0/0/1]port link-type access
[SWA-GigabitEthernet0/0/1]port default vlan 10
[SWA-GigabitEthernet0/0/2]port link-type access
[SWA-GigabitEthernet0/0/2]port default vlan 20
[SWA]interface vlanif 10
[SWA-Vlanif10]ip address 192.168.10.254 24
[SWA-Vlanif10]quit
[SWA]interface vlanif 20
[SWA-Vlanif20]ip address 192.168.20.254 24
[SWA-Vlanif20]quit