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 Integrated OpenStack Manager as the
root
user.
- Open the toolbox and set the password for the
admin
account.
toolbox
export OS_PASSWORD=admin-account-password
- 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.