Create a trunk to enable multi-VLAN routing
Create a trunk by creating a parent port and then associating it with the trunk.
Before you begin Copy linkLink copied!
- The administrator has created a project for you and has provided you with a
clouds.yamlfile for you to access the cloud. - The
python-openstackclientpackage is on your workstation.$ dnf list installed python-openstackclient
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- View the trunk connection:
$ openstack network trunk list --max-width=72- Sample output
-
+--------------------+--------------+--------------------+-------------+ | ID | Name | Parent Port | Description | +--------------------+--------------+--------------------+-------------+ | ef2aff85-9e51-43d4 | parent-trunk | 530ff46e-b285-4ad7 | | | -ab28-2ab833f049b3 | | -a77a-7dca1fb9174d | | +--------------------+--------------+--------------------+-------------+
- View the details of the trunk connection:
$ openstack network trunk show parent-trunk- Sample output
-
+-----------------+--------------------------------------+ | Field | Value | +-----------------+--------------------------------------+ | admin_state_up | UP | | created_at | 2024-09-25T20:19:43Z | | description | | | id | ef2aff85-9e51-43d4-ab28-2ab833f049b3 | | name | trunk1 | | port_id | 530ff46e-b285-4ad7-a77a-7dca1fb9174d | | project_id | 24089d2fe1a94dd29ca2f665794fbe92 | | revision_number | 1 | | status | ACTIVE | | sub_ports | | | tags | [] | | tenant_id | 24089d2fe1a94dd29ca2f665794fbe92 | | updated_at | 2024-09-25T20:19:43Z | +-----------------+--------------------------------------+
What to do next Copy linkLink copied!
Enable VLAN routing by adding subports to the trunk Copy linkLink copied!
Add subports to a trunk to enable VLAN-aware instances.
Before you begin Copy linkLink copied!
- The administrator has created a project for you and has provided you with a
clouds.yamlfile for you to access the cloud. - The
python-openstackclientpackage is on your workstation.$ dnf list installed python-openstackclient - You have a trunk associated on the network that connects to instances that you want to give access to the trunked VLANs.
Procedure Copy linkLink copied!
What to do next Copy linkLink copied!
Connect instances to trunks for multi-VLAN access Copy linkLink copied!
Configure an instance to use a trunk for network connectivity.
Before you begin Copy linkLink copied!
- The administrator has created a project for you and has provided you with a
clouds.yamlfile for you to access the cloud. - The
python-openstackclientpackage is on your workstation.$ dnf list installed python-openstackclient - You have a trunk that you can configure your instances to connect to.
For more information, see Create a trunk to enable multi-VLAN routing.
About this task Copy linkLink copied!
Compared to access ports which can only send and receive network traffic on one VLAN, trunks typically offer lower latency and higher bandwidth.
You must configure the VM instance operating system to use the MAC address that the RHOSO Networking service (neutron) assigned to the subport. You can also configure the subport to use a specific MAC address during the subport creation step.