You can create a Layer 2 bridge in NSX Data Center for vSphere through a port group.
Prerequisites
Create a port group and tag it with the ID of the VLAN to which you want to connect your compute nodes.
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 managed object identifier (MOID) of the port group as the interface name.
neutron l2-gateway-create gateway-name --device name=temp,interface_names="portgroup-moid"
NSX Data Center for vSphere creates a dedicated distributed logical router (DLR) from the backup edge pool. The device name value is ignored, and the object is automatically assigned a name in the format "L2 bridging-gateway-id".
- 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
VXLAN compute nodes can now access the specified VLAN.