This is the legacy command for setting up a VTP domain name and enabling VTP on a network. If you have full communication between your VTP network, you only need to use this command on the VTP server because other switches will automatically learn the VTP domain from received updates. Note: Switches will not change their domain automatically if they already are in a VTP domain.
Switch(vlan)#vtp domain <name>
In the below example we will configure SW1 to be in the vtp domain howtonetwork.net.
SW1(vlan)#vtp domain howtonetwork.net
Checking SW4, we can see it automatically joined howtonetwork.net.
SW4(config)#do show vtp status