Skip to content

Instantly share code, notes, and snippets.

@gilangvperdana
Created April 19, 2025 15:47
Show Gist options
  • Save gilangvperdana/0a8739b6e3df91f30a77b24da39c4c71 to your computer and use it in GitHub Desktop.
Save gilangvperdana/0a8739b6e3df91f30a77b24da39c4c71 to your computer and use it in GitHub Desktop.
Create Network on Openstack without Subnet & DHCP

General

If you want to create a network on openstack with static IP (without DHCP & Subnet) cause you have an external DHCP Server, you can use this.

Assume

  • We want to create an external network named VLANAXS205 with physnet1 as Interface name & 205 as VLAN ID

Technique

openstack network create \
  --provider-network-type vlan \
  --provider-physical-network physnet1 \
  --provider-segment 205 \
  --share \
  --disable-port-security \
  VLANAXS205

openstack port create \
  --network VLANAXS205 \
  --no-fixed-ip \
  --no-security-group \
  --disable-port-security \
  vlanaxs205-port2

openstack server add port 75bf5539-9e01-4d1a-9ac6-cf5df177b5db vlanaxs205-port2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment