Legacy Network

CONTROLLER

En controller node configuraremos nova para el uso de legacy network.

# openstack-config –set /etc/nova/nova.conf DEFAULT network_api_class nova.network.api.API

# openstack-config –set /etc/nova/nova.conf DEFAULT security_group_api nova

Reiniciamos los servicios para que aplique la configuración.

# service openstack-nova api restart

# service openstack-nova-scheduler restart

# service openstack-nova-conductor restart

COMPUTE

Instalamos los paquetes de nova-network en controller node.

# yum install openstack-nova-network openstack-nova-api

Configuramos varias opciones en nova para el uso de legacy network.

# openstack-config –set /etc/nova/nova.conf DEFAULT network_api_class nova.network.api.API

# openstack-config –set /etc/nova/nova.conf DEFAULT security_group_api nova

# openstack-config –set /etc/nova/nova.conf DEFAULT network_manager      nova.network.manager.FlatDHCPManager

# openstack-config –set /etc/nova/nova.conf DEFAULT firewall_driver    nova.virt.libvirt.firewall.IptablesFirewallDriver

# openstack-config –set /etc/nova/nova.conf DEFAULT network_size 254

# openstack-config –set /etc/nova/nova.conf DEFAULT allow_same_net_traffic False

# openstack-config –set /etc/nova/nova.conf DEFAULT multi_host True

# openstack-config –set /etc/nova/nova.conf DEFAULT send_arp_for_ha True

# openstack-config –set /etc/nova/nova.conf DEFAULT force_dhcp_release True

# openstack-config –set /etc/nova/nova.conf DEFAULT share_dhcp_address True

# openstack-config –set /etc/nova/nova.conf DEFAULT flat_network_bridge br100

# openstack-config –set /etc/nova/nova.conf DEFAULT flat_interface eth1

# openstack-config –set /etc/nova/nova.conf DEFAULT public_interface eth1

Iniciamos los servicios y establecemos el arranque con el host.

# service openstack-nova-network start

# service openstack-nova-metadata-api start

# chkconfig openstack-nova-network on

# chkconfig openstack-nova-metadata-api on

CREAR REDES

Ahora crearemos la primera red.

# nova network-create [name] –bridge br100 –multi-host T –fixed-range-v4 [IP_RANGE/*]

Ejemplo, teniendo en cuenta que mi NAT usa el rango 192.168.207.0/24:

# nova network-create demo-net –bridge br100 –multi-host T –fixed-range-v4 192.168.207.0/24

Listamos la red.

# nova net-list

Podemos borrarla de la siguiente forma:

# nova net-delete [nombre o ID]

%d bloggers like this:

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close