neutron option-2(compute node)

option-2,self-service network模式,compute node上的操作部分。

cp /etc/neutron/plugins/ml2/linuxbridge_agent.ini{,.ori}
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini linux_bridge physical_interface_mappings provider:eth0
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan enable_vxlan true
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan local_ip 172.17.2.202 #management IP of the compute node
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan l2_population true
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini securitygroup enable_security_group true
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini securitygroup firewall_driver neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

cat >> /etc/sysctl.conf<<'EOF'
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
EOF
 
modprobe br_netfilter
lsmod | grep br_netfilter
sysctl -p
  • virtualization/openstack/neutron/selfservice_compute_node.txt
  • 最后更改: 2019/04/16 18:31
  • (外部编辑)