Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

10.5. Configure 802.1Q VLAN Tagging Using a GUI


10.5.1. Establishing a VLAN Connection

You can use nm-connection-editor to create a VLAN using an existing interface as the parent interface. Note that VLAN devices are only created automatically if the parent interface is set to connect automatically.

Procedure 10.1. Adding a New VLAN Connection Using nm-connection-editor

  1. Enter nm-connection-editor in a terminal:
    ~]$ nm-connection-editor
    Copy to Clipboard Toggle word wrap
  2. Click the Add button. The Choose a Connection Type window appears. Select VLAN and click Create. The Editing VLAN connection 1 window appears.
  3. On the VLAN tab, select the parent interface from the drop-down list you want to use for the VLAN connection.
  4. Enter the VLAN ID
  5. Enter a VLAN interface name. This is the name of the VLAN interface that will be created. For example, enp1s0.1 or vlan2. (Normally this is either the parent interface name plus . and the VLAN ID, or vlan plus the VLAN ID.)
  6. Review and confirm the settings and then click the Save button.
  7. To edit the VLAN-specific settings see Section 10.5.1.1, “Configuring the VLAN Tab”.

Figure 10.3. Adding a New VLAN Connection Using nm-connection-editor

Procedure 10.2. Editing an Existing VLAN Connection

Follow these steps to edit an existing VLAN connection.
  1. Enter nm-connection-editor in a terminal:
    ~]$ nm-connection-editor
    Copy to Clipboard Toggle word wrap
  2. Select the connection you want to edit and click the Edit button.
  3. Select the General tab.
  4. Configure the connection name, auto-connect behavior, and availability settings.
    These settings in the Editing dialog are common to all connection types:
  5. To edit the VLAN-specific settings see Section 10.5.1.1, “Configuring the VLAN Tab”.

Saving Your New (or Modified) Connection and Making Further Configurations

Once you have finished editing your VLAN connection, click the Save button to save your customized configuration.
Then, to configure:

10.5.1.1. Configuring the VLAN Tab

If you have already added a new VLAN connection (see Procedure 10.1, “Adding a New VLAN Connection Using nm-connection-editor” for instructions), you can edit the VLAN tab to set the parent interface and the VLAN ID.
Parent Interface
A previously configured interface can be selected in the drop-down list.
VLAN ID
The identification number to be used to tag the VLAN network traffic.
VLAN interface name
The name of the VLAN interface that will be created. For example, enp1s0.1 or vlan2.
Cloned MAC address
Optionally sets an alternate MAC address to use for identifying the VLAN interface. This can be used to change the source MAC address for packets sent on this VLAN.
MTU
Optionally sets a Maximum Transmission Unit (MTU) size to be used for packets to be sent over the VLAN connection.
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat