在neutron网络中,如果需要打通不同租户之间的软件网络,那么需要打开 neutron l3 agent,并且配置router;
配置/etc/neutron/l3_agent.ini
#vi /etc/neutron/l3_agent.ini
[DEFAULT]
router_id = dbad9f1c-7999-4b1e-b307-c3466bb0eed9
use_namespaces = True
auth_url =
http://172.12.0.189:5000/v2.0/
admin_user = admin
admin_password = openstack1
admin_tenant_name = service
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
debug = True
verbose = True
启动l3-agent
python /usr/bin/neutron-l3-agent --config-file /etc/neutron/neutron.conf --config-file=/etc/neutron/l3_agent.ini --log-file=/var/log/neutron-l3.log 1>&2 2> /dev/null &
可以在horizon页面上创建router,或者使用命令行创建;
#neutron router
-
create
test
-
router