[Openstack] External network Issues

Akash Gunjal akgunjal at in.ibm.com
Thu Aug 6 05:26:05 UTC 2015


Hi Dhvanan,

Couple of changes are needed in the ifcfg-br-ex file. Please check the
changes I made in below.

ifcfg-br-ex
DEVICE=br-ex
BOOTPROTO=static
IPADDR=<your workstation IP address> e.g 10.16.37.221
NETMASK=255.255.255.0
DNS1=<your n/w DNS1> e.g 10.16.25.13
DNS2=<your n/w DNS2> e.g 10.16.25.15
BROADCAST=10.16.37.255
GATEWAY=10.16.37.1
NM_CONTROLLED="no"
DEFROUTE=yes
IPV4_FAILURE_FATAL="yes"
IPV6INIT=no
ONBOOT=yes
TYPE=OVSBridge
OVS_BRIDGE=br-ex
DEVICETYPE=ovs


Regards,
Akash



From:	Dhvanan Shah <dhvanan at gmail.com>
To:	openstack at lists.openstack.org
Date:	08/04/2015 07:19 PM
Subject:	[Openstack] External network Issues



Hi,

I have deployed Kilo using Packstack on CentOS , but I am having troubles
accessing the VM's that I spawn , through the public IP's that they are
assigned to them.

I created my network as follows:

CREATE NETWORK FOR OPENSTACK
   1.	a. neutron router-gateway-clear router1 (neutron router-gateway-list)
      b. neutron subnet-delete public_subnet
      c. neutron net-delete public
      d. neutron router-interface-delete router1 private_subnet
      e. neutron subnet-delete private_subnet
      f. neutron net-delete private
      g. neutron router-delete router1
   2.	a. neutron router-create router1
      b. neutron net-create private
      c. neutron subnet-create --name private_subnet private 192.168.0.0/16
      --allocation-pool start=192.168.0.0,end=192.168.255.250
      d. neutron router-interface-add router1 private_subnet
   3.	a. neutron net-create public --router:external=True    //(neutron
      net-create public --router:external)
      b. neutron subnet-create public 10.16.37.0/24 <set for your n/w>
      --name public_subnet --enable_dhcp=False --allocation-pool
      start=10.16.37.230,end=10.16.37.250 <make sure that it will not
      conflict with other IP address> --gateway=10.16.37.1 <your n/w
      gateway>
      c. neutron router-gateway-set router1 public



Also I made changes in the ifcfg-br-ex file and ifcfg-<my network> file in
/etc/sysconfig/network-scripts.

The Changes were as follows:

ifcfg-br-ex
DEVICE=br-ex
BOOTPROTO=static
IPADDR=<your workstation IP address> e.g 10.16.37.221
NETMASK=255.255.255.0
DNS1=<your n/w DNS1> e.g 10.16.25.13
DNS2=<your n/w DNS2> e.g 10.16.25.15
BROADCAST=10.16.37.255
GATEWAY=10.16.37.1
NM_CONTROLLED="no"
DEFROUTE=yes
IPV4_FAILURE_FATAL="yes"
IPV6INIT=no
ONBOOT=yes
TYPE=OVSIntPort
OVS_BRIDGE=br-ex
DEVICETYPE=ovs

ifcfg-p2p1
DEVICE=p2p1 <change with your device name>
# HWADDR=00:22:15:63:E4:E2
ONBOOT="yes"
TYPE="OVSPort"
DEVICETYPE="ovs"
OVS_BRIDGE=br-ex
NM_CONTROLLED=no
IPV6INIT=no




There is also a proxy in the network and so for that, I installed by "
packstack --allinone --provision-demo=n --provision-all-in-one-ovs-bridge=n
".

Could someone suggest me a reason as to why i might be facing issues or
probably where I can look to debug this issue.

Thanks,
Dhvanan Shah_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150806/ceb1f5cf/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150806/ceb1f5cf/attachment.gif>


More information about the Openstack mailing list