10-21-2015 01:19 PM
I am running devstack Juno on vmware ESXi 5.5. I have configured two interfaces on the VM:
eth0: connects to corporate network on 172.19* ip addresses
eth1: connect to switch in lab on a 10.* private network
I have ONE IP allocated to me on 172.* network where I can connect to management network i.e. access devstack horizon dashboard. I have an IP pool(100 ips) on 10.* network where I would like to create all my virtual machines. These IPs should be assigned based on DHCP pool on switch.
I would like to know:
1. what should be the setting in local.conf
2. how to setup my interfaces eth0 and eth1
3. any other bridge or network I need to create to accomplish this topology
Any suggestions or pointers in this regard will be highly helpful.
Solved! Go to Solution.
10-23-2015 12:00 PM
I was able to resolve the issue after some troubleshooting and reading. Basically you have to make sure of the following:
1. the interface used for provider network should not have a static IP. in my case eth0 should not have a static ip.
sudo ifconfig eth0 0.0.0.0
sudo ifconfig eth0 promisc
2. create a bridge br-eth0 with static IP
sudo ovs-vsctl add-br br-eth0
sudo ifconfig br-eth0 promisc up
sudo ifconfig br-eth0 10.191.2.20 netmask 255.255.255.0
3. add eth0 to bridge
sudo ovs-vsctl add-port br-eth0 eth0
4. /etc/network/interfaces
auto eth0
iface eth0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE 0.0.0.0 down
auto br-eth0
iface br-eth0 inet static
address 10.191.2.20
netmask 255.255.255.0
bridge_stp off
bridge_fd 0
4. enable ip forwarding i.e. add to /etc/sysctl.conf
net.ipv4.ip_forward=1
net.ipv4.conf.all.rp_filter=0
net.ipv4.conf.default.rp_filter=0
restart:
sudo sysctl -p
10-21-2015 03:13 PM
Hi Abhishek, you may try to run this learning lab that will give you an idea of what's needed
-https://learninglabs.cisco.com/lab/openstack-install/step/1
Another good resource is this page that provides instructions on running all-in-one VM with devstack
-http://docs.openstack.org/developer/devstack/#all-in-one-single-vm
10-21-2015 11:36 PM
Thanks Rohit for the pointers. From the post-1, suggested to use NAT, I want to avoid using NAT and would like to create virtual machine instances on the VLAN created on switch.
If you could spare some time(15 - 20 mins), I can get on webex and explain in more detail about my setup. May be its something missing in my setup which you can point out quickly. Let me know if sometime works for you tomorrow or day after. Please note that the host on which devstack juno is installed is running on ESXi host on a UCS server.
10-23-2015 12:00 PM
I was able to resolve the issue after some troubleshooting and reading. Basically you have to make sure of the following:
1. the interface used for provider network should not have a static IP. in my case eth0 should not have a static ip.
sudo ifconfig eth0 0.0.0.0
sudo ifconfig eth0 promisc
2. create a bridge br-eth0 with static IP
sudo ovs-vsctl add-br br-eth0
sudo ifconfig br-eth0 promisc up
sudo ifconfig br-eth0 10.191.2.20 netmask 255.255.255.0
3. add eth0 to bridge
sudo ovs-vsctl add-port br-eth0 eth0
4. /etc/network/interfaces
auto eth0
iface eth0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE 0.0.0.0 down
auto br-eth0
iface br-eth0 inet static
address 10.191.2.20
netmask 255.255.255.0
bridge_stp off
bridge_fd 0
4. enable ip forwarding i.e. add to /etc/sysctl.conf
net.ipv4.ip_forward=1
net.ipv4.conf.all.rp_filter=0
net.ipv4.conf.default.rp_filter=0
restart:
sudo sysctl -p
10-23-2015 02:28 PM
Congrats on finding a solution, and thanks for sharing it.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide