Layer 2 Networking
Use Layer 2 Networks in Private Cloud Director to create networks that connect VMs without managed IP, DHCP, or routing services.
How Layer 2 Networks Work
Prerequisites
Field
Description
Field
Description
Using pcdctl CLI
Parameter
Description
Deploy a VM on a Layer 2 Network
Using pcdctl CLI
Integrate with an external IPAM or DHCP provider
Requirements
Provider setup
Using API:
Authorizations
X-Auth-TokenstringRequired
PCD Identity Service token authentication
Path parameters
network_idstring · uuidRequired
The ID of the network.
Body
Responses
200
Network updated successfully
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
412
Precondition Failed
application/json
put/v2.0/networks/{network_id}
Authorizations
AuthorizationstringRequired
OpenStack Keystone token authentication
Header parameters
OpenStack-API-VersionstringOptionalExample:
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Body
Responses
202
Server creation accepted
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
409
Conflict
application/json
post/servers
Configure a static IP with cloud-init
Apply the configuration
Verify the configuration
Adapt the example for other operating systems
Clone a VM on a Layer 2 Network
View Layer 2 Network details
Edit a Layer 2 Network
Delete a Layer 2 Network
Next steps
Last updated
Was this helpful?
