Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

So, after some research I think I came up with a solution to change the default 172.24.4.0/24 floating IP network to let's say your home LAN network address range (let's say 192.168.1.0/24).

Assume that you have a running Ubuntu VM and you've just setup DevStack. Also make sure the VM is bridged so it receives a home LAN network ip address (let's say 192.168.1.5). Next thing you need to do is to add a port between you br-ex and your VM physical interface (is this situation enp0s3):

$ sudo bash 
# ovs-vsctl add-port br-ex enp0s3

Next thing you need to do is strip your VM physical interface and your br-ex interface of their IP configuration:

# ifconfig enp0s3 0
# ifconfig br-ex 0

Finally make sure you assign the previous IP configuration of your enp0s3 interface (ip: 192.168.1.5 etc...) to your br-ex interface:

# dhclient br-ex

If everything done correct, the new IP configuration will be something like this:

image description

Notice that enp0s3 interface is no longer assigned an IP address and br-ex has enp0s3's IP address.

Be aware that in order to make this happen with dhcp (dhclient command), you need to configure some sort of DHCP binding to your physical router so when br-ex requests for a new IP address it will be the same specified as the physical interface's IP address after the succesfull build of DevStack.

After that, you need to login to your horizon dashboard and delete the default created public network (named public) from stack.sh and create your own external network and assign as his subnet the ip address range of your home LAN network.

In order to destroy the public network (without getting an error) is to delete some other things first. From the admin panel:

  • Go to Routers and delete the interface connecting the default created router (router1) and "public" network.
  • Then go to Networks and delete the DHCP server, ports and any subnets associated with "public" network.

If the operations are completed successfully with no errors, then you can go ahead and create your own external network. Just make sure though that:

  • You select "Flat" for the network type.
  • You select "public" for the Physical Network name (that was the default name from stack.sh)
  • Mark it as "Shared"
  • Mark it as "External Network"

image description

Finally, create a new subnet associated with your new external network and enter as Network Address the address of your home LAN network (e.g 192.168.1.0 /24).

So, after some research I think I came up with a solution to change the default 172.24.4.0/24 floating IP network to let's say your home LAN network address range (let's say 192.168.1.0/24).

Assume that you have a running Ubuntu VM and you've just setup DevStack. Also make sure the VM is bridged so it receives a home LAN network ip address (let's say 192.168.1.5). Next thing you need to do is to add a port between you br-ex and your VM physical interface (is this situation enp0s3):

$ sudo bash 
# ovs-vsctl add-port br-ex enp0s3

Next thing you need to do is strip your VM physical interface and your br-ex interface of their IP configuration:

# ifconfig enp0s3 0
# ifconfig br-ex 0

Finally make sure you assign the previous IP configuration of your enp0s3 interface (ip: 192.168.1.5 etc...) to your br-ex interface:

# dhclient br-ex

If everything done correct, the new IP configuration will be something like this:

image description

Notice that enp0s3 interface is no longer assigned an IP address and br-ex has enp0s3's IP address.

Be aware that in order to make this happen with dhcp (dhclient command), you need to configure some sort of DHCP binding to your physical router so when br-ex requests for a new IP address it will be the same specified as the physical interface's IP address after the succesfull build of DevStack.

After that, you need to login to your horizon dashboard and delete the default created public network (named public) from stack.sh and create your own external network and assign as his subnet the ip address range of your home LAN network.

In order to destroy the public network (without getting an error) is to delete some other things first. From the admin panel:

  • Go to Routers and delete the interface connecting the default created router (router1) and "public" network.
  • Then go to Networks and delete the DHCP server, ports and any subnets associated with "public" network.

If the operations are completed successfully with no errors, then you can go ahead and create your own external network. Just make sure though that:

  • You select "Flat" for the network type.
  • You select enter "public" for the Physical Network name (that was the default name from stack.sh)
  • Mark it as "Shared"
  • Mark it as "External Network"

image description

Finally, create a new subnet associated with your new external network and enter as Network Address the address of your home LAN network (e.g 192.168.1.0 /24).