I have used a router 3640 with NM-16ESW to emulate a switch, but I didn;t find a way to create vlans other than the old way:
I went to:
Router# vlan database
VLAN 20 added:
I can't find a way to add ports to the vlan or do any work with the vlan?