if you just creating a vlan do it in vlan database as good practice. normally if your switch is in vtp server or transparent mode you can just put the switchport to access that certain vlan if not in the database it will create it if in the 1-1005 range.. anything over that will require the switch being in transparent mode.
Become the stainless steel sharp knife in a drawer full of rusty spoons
It should be noted that the VLAN database mode is being deprecated. Therefore, the config-vlan mode should be used instead of the VLAN database mode. However, for the exam, you need to know both methods.
KPLAB www.kp-lab.com - Free CCNA, CCNP, and Network+ Study Guides
Comments
VLAN database mode:
Switch#vlan database
Switch(vlan)#vlan <vlan id> name <vlan name>
Switch(vlan)#exit
Config-vlan mode:
Switch(config)#vlan <vlan id>
Switch(config-vlan)#name <vlan name>
Switch(config-vlan)#exit
It should be noted that the VLAN database mode is being deprecated. Therefore, the config-vlan mode should be used instead of the VLAN database mode. However, for the exam, you need to know both methods.
www.kp-lab.com - Free CCNA, CCNP, and Network+ Study Guides