You can create a Layer 2 bridge in NSX-T Data Center through a bridge cluster.
Prerequisites
In NSX-T Data Center, create a bridge cluster that includes two dedicated ESXi hosts. See Create a Bridge Cluster in the NSX-T Administration Guide.
Procedure
- Log in to the OpenStack Management Server as
viouser
.
- Log in to the controller node as
viouser
.
- Switch to the
root
user and load the cloud administrator credentials file.
sudo su -
source ~/cloudadmin.rc
- Create a logical Layer 2 gateway, specifying the UUID of the NSX-T Data Center bridge cluster as the device name.
neutron l2-gateway-create gateway-name --device name=bridge-cluster-uuid,interface_names="temp"
The interface name value is ignored, and the name is automatically assigned.
- Create the logical Layer 2 gateway connection using the gateway created in the previous step.
neutron l2-gateway-connection-create gateway-name network-name --default-segmentation-id=vlan-id
Results
Compute nodes on the overlay network can now access the specified VLAN.