configure VM network on a pre-existing network

asked 2015-10-16 11:20:09 -0600

abhish gravatar image

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-10-23 14:05:02 -0600

abhish gravatar image

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
     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 <ip1> netmask
  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 up
       down ifconfig $IFACE down
    auto br-eth0
    iface br-eth0 inet static 
         address <ip1>
        bridge_stp off
        bridge_fd 0
  5. enable ip forwarding i.e. add to /etc/sysctl.conf



      sudo sysctl -p
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-10-16 10:33:56 -0600

Seen: 307 times

Last updated: Oct 23 '15