* References
http://blog.felipe-alfaro.com/2014/02/03/openstack-with-devstack-in-ubuntu/
https://wiki.openstack.org/wiki/Obsolete:ConfigureOpenvswitch
http://wiki.stackinsider.org/index.php/DevStack_-_Single_Node_using_Neutron_FLAT_-_Havana
1. Network Configuration
- eth0 : NAT
- eth1 : Bridge
- /etc/network/interfaces
====================================================
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.186.10
netmask 255.255.255.0
auto eth1
iface eth1 inet static
address 10.10.1.190
netmask 255.255.255.0
gateway 10.10.1.1
dns-nameservers 168.126.63.1
====================================================
2. local.conf
====================================================
HOST_IP=10.10.1.190
# network
FLAT_INTERFACE=eth1
FIXED_RANGE=20.1.1.0/24
FIXED_NETWORK_SIZE=256
NETWORK_GATEWAY=20.1.1.1
#FLOATING_RANGE=192.168.100.0/24
#PUBLIC_NETWORK_GATEWAY=192.168.100.1
# Neutron
Q_PLUGIN=ml2
Q_AGENT_EXTRA_OVS_OPTS=(tenant_network_type=vlan)
ENABLE_TENANT_VLANS=True
TENANT_VLAN_RANGE=100:200
#OVS_VLAN_RANGE=physnet1
PHYSICAL_NETWORK=physnet1
OVS_PHYSICAL_BRIDGE=br-eth1
# Services
ENABLED_SERVICES=rabbit,mysql,key
ENABLED_SERVICES+=,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch,n-novnc,n-cauth
ENABLED_SERVICES+=,neutron,q-svc,q-agt,q-dhcp,q-l3,q-meta,q-lbaas
ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
ENABLED_SERVICES+=,g-api,g-reg
ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch,c-bak
ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond
ENABLED_SERVICES+=,horizon
ENABLED_SERVICES+=,ceilometer-acompute,ceilometer-acentral,ceilometer-collector,ceilometer-api
====================================================
3. Post configuration
[Restart network interfaces]
# sudo ifdown eth1
# sudo ifup eth1
# sudo ifup br-eth1
[Configuration for Open vSwitch]
# ovs-vsctl add-port br-eth1 eth1
# vi keystone-admin
http://blog.felipe-alfaro.com/2014/02/03/openstack-with-devstack-in-ubuntu/
https://wiki.openstack.org/wiki/Obsolete:ConfigureOpenvswitch
http://wiki.stackinsider.org/index.php/DevStack_-_Single_Node_using_Neutron_FLAT_-_Havana
1. Network Configuration
- eth0 : NAT
- eth1 : Bridge
- /etc/network/interfaces
====================================================
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.186.10
netmask 255.255.255.0
auto eth1
iface eth1 inet static
address 10.10.1.190
netmask 255.255.255.0
gateway 10.10.1.1
dns-nameservers 168.126.63.1
====================================================
2. local.conf
====================================================
HOST_IP=10.10.1.190
# network
FLAT_INTERFACE=eth1
FIXED_RANGE=20.1.1.0/24
FIXED_NETWORK_SIZE=256
NETWORK_GATEWAY=20.1.1.1
#FLOATING_RANGE=192.168.100.0/24
#PUBLIC_NETWORK_GATEWAY=192.168.100.1
# Neutron
Q_PLUGIN=ml2
Q_AGENT_EXTRA_OVS_OPTS=(tenant_network_type=vlan)
ENABLE_TENANT_VLANS=True
TENANT_VLAN_RANGE=100:200
#OVS_VLAN_RANGE=physnet1
PHYSICAL_NETWORK=physnet1
OVS_PHYSICAL_BRIDGE=br-eth1
# Services
ENABLED_SERVICES=rabbit,mysql,key
ENABLED_SERVICES+=,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch,n-novnc,n-cauth
ENABLED_SERVICES+=,neutron,q-svc,q-agt,q-dhcp,q-l3,q-meta,q-lbaas
ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
ENABLED_SERVICES+=,g-api,g-reg
ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch,c-bak
ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond
ENABLED_SERVICES+=,horizon
ENABLED_SERVICES+=,ceilometer-acompute,ceilometer-acentral,ceilometer-collector,ceilometer-api
====================================================
3. Post configuration
[Configuration for network interface]
auto eth1
iface eth1 inet manual
up ifconfig $IFACE 0.0.0.0 up
up ip link set $IFACE promisc on
down ip link set $IFACE promisc off
down ifconfig $IFACE down
# The Open VSwitch network interface
auto br-eth1
iface br-eth1 inet static
address 10.10.1.190
netmask 255.255.255.0
gateway 10.10.1.1
dns-nameservers 168.126.63.1
netmask 255.255.255.0
gateway 10.10.1.1
dns-nameservers 168.126.63.1
up ip link set $IFACE promisc on
down ip link set $IFACE promisc off
[Restart network interfaces]
# sudo ifdown eth1
# sudo ifup eth1
# sudo ifup br-eth1
[Configuration for Open vSwitch]
# ovs-vsctl add-port br-eth1 eth1
# ifconfig br-eth1 promisc up
4. Authentication
# put the configuration below
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=admin
PS1="\u@\h:\w (keystone-$OS_USERNAME)\$ "
source openrc
# source ./keystone-admin
5. Create a flat network
# neutron net-create --os-tenant-name admin external_flat --shared --provider:network_type flat --provider:physical_network physnet1
# neutron subnet-create --os-tenant-name admin external_flat 10.10.1.0/24 --gateway 10.10.1.1 --dns-nameserver 168.126.63.1 --allocation-pool start=10.10.1.225,end=10.10.1.254
댓글 없음:
댓글 쓰기