You can configure switch port mode settings on interfaces. The switch port mode defines the purpose of the port based on the type of device it connects to and constraints the VLAN configuration of the port accordingly. Assigning the appropriate switch port mode helps simplify VLAN configuration and minimize errors.
The switch supports the following types of switch ports:
-
Access: This mode is for ports connected to end devices. Access ports participate in one VLAN only. They accept both tagged and untagged packets, but always transmit untagged packets.
-
General: This mode enables a custom configuration of a port. You can configure the general port VLAN attributes, such as membership (see Configure membership interfaces for a VLAN) and PVID, tagging, ingress filter, and so on (see Change the port VLAN ID settings). By default, all ports are initially configured in the general mode.
-
Trunk: This mode is for ports that are connected to other switches or to a router. A trunk port can participate in multiple VLANs and accept both tagged and untagged packets.
In the following procedure, ports are referred to as interfaces.
To configure the switch port mode settings for interfaces:
- Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
The System Information page displays.
- Select Switching > VLAN > Advanced > VLAN Trunking Configuration.
The VLAN Trunking Configuration page displays.
- Select whether to display physical interfaces, LAGs, or both by clicking one of the following links above the table heading:
-
1 or Unit ID for a stacked switch:
- 1: If no switch stack is configured, the physical interfaces for the switch are displayed.
- Unit ID for a stacked switch: If a switch stack is configured, the physical interfaces for the switch with the selected stack unit ID are displayed.
-
LAG: Only LAGs are displayed.
-
All: Both physical interfaces and LAGs are displayed, or for a switch stack, both physical interfaces on all switches in the stack and LAGs are displayed.
- Select one or more interfaces by taking one of the following actions:
-
To configure a single interface, select the check box associated with the interface, or type the interface number in the Go To Interface field and click the Go button.
-
To configure multiple interfaces with the same settings, select the check box associated with each interface.
-
To configure all interfaces with the same settings, select the check box in the heading row.
- From the Switch port Mode menu, select one of the following:
-
Access: Select this mode if the interface is connected to end devices. Access interfaces participate in one VLAN only. They accept both tagged and untagged packets, but always transmit untagged packets.
-
General: Select this mode so that you can configure the interface. You can configure the general port VLAN attributes, such as membership (see Configure membership interfaces for a VLAN) and PVID, tagging, ingress filter, and so on (see Change the port VLAN ID settings). This is the default selection.
-
Trunk: Select this mode if the interface is connected to another switch or to a router. A trunk interface can participate in multiple VLANs and accept both tagged and untagged packets.
- Do one of the following, depending on your selection in the previous step:
-
Access: If you selected Access from the Switch port Mode menu, from the Access VLAN ID menu, select the access VLAN for the interface.
-
Trunk: If you selected Trunk from the Switch port Mode menu, do the following:
-
From the Native VLAN ID menu, select the native VLAN for the interface.
-
In the Trunk Allowed VLANs field, enter the VLANs of which the interface can be a member when the switch port mode for the interface Trunk
By default, the field includes all VLANs, even if they are not yet created. VLAN IDs are in the range from 1 to 4093. Use a hyphen (-) to specify a VLAN range, or a comma (,) to separate VLAN IDs in a list. Spaces are not permitted. A zero value clears the allowed VLANs. If you enter All, all VLANs in the range from 1 to 4093 are included.
- Click the Apply button.
- To save the settings to the running configuration, click the Save icon.
The following table describes the view-only fields on the page.