Before a switch port can be assigned to a new VLAN, the VLAN ID and name must exist in the switch's stored list of VLAN…