langke93 发表于 2017-4-1 17:19 第二个内网是web界面创建的..我把第二个web界面创建的内网删了,web界面就没内网显示了 |
分生i 发表于 2017-4-1 16:17 创建了一个外网,两个内网,外网只能有一个。 |
分生i 发表于 2017-4-1 15:30 网络是openstack组件里面最复杂的。 应该先理清思路。通过shell操作,然后在通过界面。 首先是配置节点的网络。 在控制节点执行下面,命令 [mw_shl_code=bash,true] neutron ext-list[/mw_shl_code] [mw_shl_code=bash,true] +-----------------------+--------------------------+ | alias | name | +-----------------------+--------------------------+ | flavors | Neutron Service Flavors | | security-group | security-group | | dns-integration | DNS Integration | | net-mtu | Network MTU | | port-security | Port Security | | binding | Port Binding | | provider | Provider Network | | agent | agent | | quotas | Quota management support | | subnet_allocation | Subnet Allocation | | dhcp_agent_scheduler | DHCP Agent Scheduler | | rbac-policies | RBAC Policies | | external-net | Neutron external network | | multi-provider | Multi Provider Network | | allowed-address-pairs | Allowed Address Pairs | | extra_dhcp_opt | Neutron Extra DHCP opts | +-----------------------+--------------------------+[/mw_shl_code] [mw_shl_code=bash,true]neutron agent-list[/mw_shl_code] [mw_shl_code=bash,true] +--------------------------------------+--------------------+------------+-------+----------------+---------------------------+ | id | agent_type | host | alive | admin_state_up | binary | +--------------------------------------+--------------------+------------+-------+----------------+---------------------------+ | 14707d27-e2ff-4444-9653-3082877e3e6e | DHCP agent | controller | :-) | True | neutron-dhcp-agent | | 6b3da4d5-d162-4756-8b01-a61000401140 | Linux bridge agent | compute1 | :-) | True | neutron-linuxbridge-agent | | 80b833cd-4733-4da7-8f6b-09a00408a0e2 | Metadata agent | controller | :-) | True | neutron-metadata-agent | | 83489ddc-36a1-46b9-94dc-afd2e36694be | Linux bridge agent | controller | :-) | True | neutron-linuxbridge-agent | +--------------------------------------+--------------------+------------+-------+----------------+---------------------------+[/mw_shl_code] 然后创建 创建共享网络 [mw_shl_code=bash,true] neutron net-create public --shared --provider:physical_network public \ --provider:network_type flat[/mw_shl_code] 创建子网 [mw_shl_code=bash,true] neutron subnet-create public 192.168.100.0/24 --name public \ --allocation-pool start=192.168.100.50,end=192.168.100.99\ --dns-nameserver 211.162.66.66 --gateway 192.168.100.2[/mw_shl_code] 查看可用的网络 [mw_shl_code=bash,true] neutron net-list [/mw_shl_code] |
是按照官网cenots7安装的L版本 |