Ask Your Question

how to start second l3-agent in order to create multiple external networks on the same host

asked 2014-04-28 01:08:00 -0500

br gravatar image

VM should have two Interfaces. I want to assign two different floating series ips to two interfaces. To achieve this, I came to know two l3-agents needs to be running. Anybody has idea about how to create second l3-agent.

I already tried the follwing command./ /usr/bin/python /usr/bin/neutron-l3-agent --config-file=/etc/neutron.neutron.conf --config-file=/etc/neutron/l3_agent.ini

with proper external network gateway id and bridge interface. I was not able to create the second l3-agent.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-05-09 08:00:49 -0500

DanIzack gravatar image
edit flag offensive delete link more

answered 2014-05-08 16:55:06 -0500

kfox gravatar image

updated 2014-05-08 17:57:06 -0500

I've been doing something like the following ugly hack under RDO (change NAME value):


cp -a /etc/neutron/l3_agent.ini /etc/neutron/l3_agent_$NAME.ini

sed 's/neutron-l3-agent/neutron-l3-agent-'$NAME'/g;/^exec=./aprog="$prog-'$NAME'"' /etc/init.d/neutron-l3-agent | sed '/^pidfile=./aplugin=l3-agent-'$NAME | sed '/.l3_agent.ini./a@FOO@' | sed 's:@FOO@: "/etc/$proj/l3_agent_'$NAME'.ini" \:' > /etc/init.d/neutron-l3-agent-$NAME

chmod +x /etc/init.d/neutron-l3-agent-$NAME

chkconfig neutron-l3-agent-$NAME on

Then edit:

  • gateway_external_network_id
  • external_network_bridge
  • handle_internal_only_routers
  • host

You must set host = some unique name on all l3 agents and put them in /etc/hosts as described here: (

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-04-28 01:08:00 -0500

Seen: 589 times

Last updated: May 09 '14