7.1.1. Establishing a VLAN Connection
You can use the GNOME control-center utility to direct NetworkManager to create a VLAN using an existing interface as the parent interface. At time of writing, you can only make VLANs on Ethernet devices. Note that VLAN devices are only created automatically if the parent interface is set to connect automatically.
Procedure 7.1. Adding a New VLAN Connection
You can configure a VLAN connection by opening the Network window, clicking the plus symbol, and selecting VLAN from the list.
Press the Super key to enter the Activities Overview, type control network
and then press Enter. The Network settings tool appears.
Click the plus symbol to open the selection list. Select VLAN. The Editing VLAN Connection 1 window appears.
On the VLAN tab, select the parent interface from the drop-down list you want to use for the VLAN connection.
Enter the VLAN ID
Enter a VLAN interface name. This is the name of the VLAN interface that will be created. For example, eth0.1
or vlan2
. (Normally this is either the parent interface name plus “.
” and the VLAN ID, or “vlan
” plus the VLAN ID.)
Review and confirm the settings and then click the Save button.
Procedure 7.2. Editing an Existing VLAN Connection
Follow these steps to edit an existing VLAN connection.
Press the Super key to enter the Activities Overview, type control network
and then press Enter. The Network settings tool appears.
Select the connection you wish to edit and click the Options button.
Select the General tab.
Configure the connection name, auto-connect behavior, and availability settings.
These settings in the Editing dialog are common to all connection types:
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. To make
NetworkManager apply the changes, power cycle the interface. See
Section 2.2.1, “Connecting to a Network Using a GUI” for information on using your new or altered connection.
You can further configure an existing connection by selecting it in the Network window and clicking Options to return to the Editing dialog.
Then, to configure:
7.1.1.1. Configuring the VLAN Tab
- 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, eth0.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.