2021-09-10

OpenStack 基于ubuntu18.04 Rocky 版本安装neutron-openvswitch-agent步骤
安装插件(计算节点和网络节点):apt install neutron-openvswitch-agent给网络节点和计算节点添加网桥,并绑定到需要出局的flat网络的物理端口上ovs-vsctl add-br br-exovs-vsctl add-port br-ex eno1注:br-ex表示网桥名称,eno1表示物理端口名称,在执行第二个步骤是,如果是通过eno1往外连的ssh,则会中断,因为此时br-ex已经替代掉了eno1,如需继续使用eno1外连,则需要将br-ex配置上源eno1中的ip、将eno1设置为手动模式。修改方式为:/etc/netplan/01-netcfg.yamlethernets: eno1: dhcp: no addresses: nobridges: br-ex: dhcp: no addresses: [xxx.xxx.xxx.xxx/xx]123456789123456789修改配置文件:控制节点:/etc/neutron/plugins/ml2/ml2_conf.ini[ml2]type_drivers = flat,vxlantenant_network_types = vxlanmechanism_drivers = openvswitch,l2populationextension_drivers = port_security[ml2_type_vxlan]vni_ranges = 1001:2000[securitygroup]enable_ipset = true此处修改领完后,需要通过如下命令(su -s /bin/sh -c “neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head” neutron)同步数据库网络节点:2. /etc/neutron/l3_agent.iniexternal_network_bridge = br-exinterface_driver = openvswitch3. /etc/neutron/plugins/ml2/openvswitch_agent.ini[ovs]bridge_mappings = public:br-extunnel_bridge = br-tunlocal_ip = 10.10.10.10[agent]tunnel_types = vxlanl2_population = True[securitygroup]firewall_driver = openvswitchenable_security_group = true4. /etc/neutron/dhcp_agent.ini[DEFAULT]interface_driver = openvswitchdhcp_driver = neutron.agent.linux.dhcp.Dnsmasqenable_isolated_metadata = True计算节点5. /etc/neutron/plugins/ml2/openvswitch_agent.ini[ovs]bridge_mappings = public:br-extunnel_bridge = br-tunlocal_ip = 10.10.10.11[agent]tunnel_types = vxlanl2_population = True[securitygroup]firewall_driver = openvswitchenable_security_group = true注:1.local_ip是用于给内部虚拟机创建虚拟vxlan网络的物理端口ip,此处假设为eno2;2.public是个约定字符,需要和控制节点中的ml2文件[ml2_type_flat]中的flat_networks字段保持一致;3.br-ex是前面给网络节点和计算节点添加的网桥名称物理连接:此处一共设置了两种网络:1.一种用于出局的flat网络,应将计算节点和网络节点的eno1连接起来,如需要和外部的设备连接,则用交换机一起连接起来2.一种用于虚拟机内部网络的创建(通常是vxlan网络,所以我们成为vxlan网),将网络节点和计算节点的eno2连接起来。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值