Configure the switch port mode settings for interfaces

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:

  1. 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.
  2. Select Switching > VLAN > Advanced > VLAN Trunking Configuration.

    The VLAN Trunking Configuration page displays.

  3. Select whether to display physical interfaces, LAGs, or both by clicking one of the following links above the table heading:
    • 1: Only physical interfaces are displayed. This is the default setting.
    • LAG: Only LAGs are displayed.

    • All: Both physical interfaces and LAGs are displayed.

  4. 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.

  5. 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.

  6. 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:

      1. From the Native VLAN ID menu, select the native VLAN for the interface.

      2. 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.

  7. Click the Apply button.

    Your settings are saved.

  8. To save the settings to the running configuration, click the Save icon.

The following table describes the view-only fields on the page.

Field

Definition

Native VLAN Tagging

Displays if VLAN tagging is enabled:
  • Disable: When VLAN tagging is enabled, if the trunk port receives untagged frames, it forwards them on the native VLAN with no VLAN tag.

  • Enable: When VLAN tagging is disabled, if the trunk port receives untagged frames, it includes the native VLAN ID in the VLAN tag when it forwards frames.

Auto-Trunk Operational Status

Displays if Auto-Trunk is configured on the interface:

  • Disable: Auto-Trunk is not configured on the interface.

  • Enable: Auto-Trunk is configured on the interface.

Auto-Trunk Member VLAN List

The VLANs that are members of the Auto-Trunk, if an Auto-Trunk is configured on the interface.