Ask Your Question
0

What should i put in neutron ml2 physical_interface_mappings

asked 2016-10-26 14:16:47 -0600

exammoes gravatar image

I have followed the official tutorial for mitaka

Something does not work with network.

I am not sure i have really understand the meaning of physical_interface_mappings and [vxlan] parameters in linuxbridge_agent.ini file.

Here is my environnement: I have 2 computers: One for controller and the other for compute (compute1)

Controller gets 2 nic:

enp0s3: 10.0.0.11 (internal network)
enp0s8: 192.168.0.11 (external network)

Compute1 gets 2 nic:

enp0s3: 10.0.0.31 (internal network)
enp0s8: 192.168.0.31 (external network)

Here is what i put in /etc/neutron/plugins/ml2/linuxbridge_agent.ini on controller machine:

[linux_bridge]
physical_interface_mappings = provider:enp0s3

[securitygroup]
enable_security_group = true
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

[vxlan]
enable_vxlan = True
local_ip = 10.0.0.11
l2_population = True

And here is what i put in /etc/neutron/plugins/ml2/linuxbridge_agent.ini on compute1 machine:

[linux_bridge]
physical_interface_mappings = provider:enp0s3

[securitygroup]
enable_security_group = True
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

[vxlan]
enable_vxlan = True
local_ip = 10.0.0.31
l2_population = True

Here what i typed to create initial network

neutron net-create --shared --provider:physical_network provider --provider:network_type flat ext-net
neutron subnet-create --name sub_ext-net --allocation-pool start=10.5.0.100,end=10.5.0.200 --dns-nameserver 8.8.4.4 --gateway 10.5.0.1 ext-net 10.5.0.0/24
neutron net-update ext-net  --router:external

neutron net-create int-net
neutron subnet-create --name sub_int-net --dns-nameserver 8.8.4.4 --gateway 172.16.1.1 int-net 172.16.1.0/24

neutron router-create router
neutron router-interface-add router sub_int-net
neutron router-gateway-set router ext-net

Everything works great, i can create instances but network is not working. I am not sure about physical interface mappings parameters interpretation.

In fact i am wondering how routing will be operated between 10.0.5.0 network and my physical network (192.168.0.x)

if i type "route -n" command, i got this:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.0.254   0.0.0.0         UG    0      0        0 enp0s8
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 enp0s3
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 enp0s8

There is no entry for 10.5.0.0 network...

Thanks for your help

edit retag flag offensive close merge delete

Comments

What do you mean by "network is not working"? Tell us the symptoms. Where do you run the route -n command?

Bernd Bausch gravatar imageBernd Bausch ( 2016-10-27 22:37:07 -0600 )edit
2

The physical_interface_mappings setting is, IMHO, not well explained in the docs. It defines a symbolic name e.g. "mynw" that you use for connecting flat and vlan networks. See http://docs.openstack.org/newton/netw....

Bernd Bausch gravatar imageBernd Bausch ( 2016-10-27 22:45:18 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-10-28 04:21:17 -0600

exammoes gravatar image

okay thanks this is why i've made a mistake.

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

2 followers

Stats

Asked: 2016-10-26 13:33:36 -0600

Seen: 2,311 times

Last updated: Oct 28 '16