63 lines
789 B
Markdown
63 lines
789 B
Markdown
# neutron 配置网络
|
|
|
|
|
|
## flat
|
|
|
|
用于配置外部网络
|
|
|
|
> https://blog.csdn.net/CloudMan6/article/details/52529828
|
|
|
|
|
|
```bash
|
|
# /etc/neutron/plugins/ml2/ml2_conf.ini
|
|
|
|
[ml2]
|
|
tenant_network_types = flat
|
|
|
|
[ml2_type_flat]
|
|
flat_networks=default
|
|
#flat_networks = flat1,flat2
|
|
|
|
|
|
[linux_bridge]
|
|
physical_interface_mappings=default:eth1
|
|
#physical_interface_mappings = flat1:eth1,flat2:eth2
|
|
|
|
|
|
```
|
|
|
|
|
|
## vxlan
|
|
|
|
用于配置用户虚拟网络
|
|
|
|
|
|
> https://blog.csdn.net/CloudMan6/article/details/53082157
|
|
|
|
|
|
```bash
|
|
# /etc/neutron/plugins/ml2/ml2_conf.ini
|
|
|
|
[ml2]
|
|
tenant_network_types = vxlan
|
|
vni_ranges = 1001 - 2000
|
|
|
|
# on controler
|
|
[vxlan]
|
|
l2_population = true
|
|
local_ip = controller_ip
|
|
enable_vxlan = true
|
|
|
|
|
|
# on compute
|
|
[vxlan]
|
|
l2_population = true
|
|
local_ip = compute_ip
|
|
enable_vxlan = true
|
|
|
|
|
|
|
|
|
|
```
|
|
|