目錄表

Openstack multi-node network architecture:Network

0x00 Basic Installation

LANG="en_US.utf8"

GRUB_DEFAULT=0

GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=2
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 biosdevname=0"
GRUB_CMDLINE_LINUX=""

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcpstatic
	address 192.168.10.2
	netmask 255.255.255.0
	gateway 192.168.10.1

auto eth1
iface eth1 inet static
	address 192.168.20.2
	netmask 255.255.255.0


dns-nameserver 192.168.10.1
dns-search mitaka.openstack

# update-grub
# reboot

127.0.0.1       localhost
192.168.10.1    network.mitaka.openstack ctrl

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

network

# apt-get update
# apt-get upgrade
# apt-get install ubuntu-cloud-keyring
# apt-get -y dist-upgrade
# reboot
# apt-get -y autoremove --purge

0x01 NTP

# apt-get -y install ntp

...

#pool 0.ubuntu.pool.ntp.org iburst
#pool 1.ubuntu.pool.ntp.org iburst
#pool 2.ubuntu.pool.ntp.org iburst
#pool 3.ubuntu.pool.ntp.org iburst

#pool ntp.ubuntu.com
pool ctrl.mitaka.openstack

interface ignore wildcard
interface listen 192.168.10.2

...

# service ntp restart
# ntpq -p

0x03 OpenvSwitch

# apt-get -y install openvswitch-switch