Ask Your Question
1

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
0

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 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 <ip1> 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 <ip1>
        netmask 255.255.255.0
        bridge_stp off
        bridge_fd 0
    
  5. 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
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 260 times

Last updated: Oct 23 '15