What are the differences of using a Layer 3 interface and a VLANIF interface

On some models of S series switches, you can run the undo portswitch command in the interface view to switch Layer 2 mode to Layer 3 mode. Both Layer 3 interfaces and VLANIF interfaces can provide Layer 3 services. They have the following differences:
1. When an interface works in Layer 2 mode, run Layer 3 services on VLANIF interfaces. Layer 2 services are run on Layer 2 interfaces.
2. After an interface is switched to Layer 3 mode, this interface is similar to a Layer 3 interface of a router, and can only provide Layer 3 services.
To run Layer 3 services, use the Layer 3 or VLANIF interface. However, to run both Layer 3 and Layer 2 services on the same interface, use the Layer 2 mode to provide Layer 2 service and VLANIF to provide Layer 3 service.

Scroll to top