The last step to building a functional trunk is to create a trunk object and associate parent and sub-ports. The information required for the trunk includes a name, a parent port with segment details, and sub-port(s) with segment details. With the OpenStack client, create a trunk object with the following attributes:
- Name: trunk0
- Parent port: parent0
- Sub-port: child-p0c1
- Sub-port VLAN: 42
The following command can be used:
openstack network trunk create
--parent-port parent0
--subport port=child-p0c1,segmentation-type=vlan,segmentation-id=42
trunk0
The output will resemble the following: