See cisco ios commands.
enable #conf terminal Enter configuration comman, one per line. #vlan 581 #name openstact_dev exit
>
=
When there are multiple interfaces assigned to the VM, the default GW can be selected randomly. Make sure the GW subnet is configured in the firewall to access internet.