The difference between static and dynamic VLANs is shown below.
What is Static VLANs?
In a static VLAN, the network administrator creates a VLAN then assigns switch ports (interfaces) to the VLAN. Static VLANs also are mentioned as port-based VLANs. The association with the VLAN doesn’t change until the administrator changes the port assignment. user devices become members of the VLAN supported the physical switch port to which they’re connected.
Multiple VLAN ports are often assigned to ports on one switch. albeit two devices are connected to different ports on an equivalent switch, traffic won’t pass between them if the connected ports are on different VLANs. we’d like a Layer 3 device (usually a router) to permit communication between two VLANs.
What is Dynamic VLANs?
In a dynamic VLAN, the switch automatically assigns the port to a VLAN using information from the user device, like MAC address, IP address, etc. When a tool is connected to a switch port, the switch queries a database to determine VLAN membership. A network administrator must configure the VLAN database of a VLAN Membership Policy Server (VMPS).
Dynamic VLANs support instant mobility of end devices. once we move a tool from one port to a different on a switch, dynamic VLANs automatically configure VLAN membership.