七、OpenStack 安装 Neutron-4

Controller 节点验证Neutron Services

# nano /etc/rabbitmq/rabbitmq.config

[{rabbit, [{loopback_users, []}]}].

# service rabbitmq-server restart

# source admin-openrc.sh

# neutron ext-list

# neutron agent-list

Controller 节点创建初始Networks

External Network

# source admin-openrc.sh

# neutron net-create ext-net --router:external True --provider:physical_network external --provider:network_type flat

Subnet on External Network

#neutron subnet-create ext-net --name ext-subnet --allocation-pool start=192.168.100.101,end=192.168.100.200 --disable-dhcp --gateway 192.168.100.1 192.168.100.0/24

租户网络(Tenant Network)

# source demo-openrc.sh

# neutron net-create demo-net

租户网络子网(Subnet on Tenant Network)

# neutron subnet-create demo-net --name demo-subnet --gateway 192.162.1.1 192.162.1.0/24

路由

# neutron router-create demo-router

# neutron router-interface-add demo-router demo-subnet

# neutron router-gateway-set demo-router ext-net

验证连接

# ping -c 192.168.100.101

你可能感兴趣的:(openstack, Neutron)