Konfigurieren Sie die erste Schnittstelle zur Managementschnittstelle:
IP Adresse: 10.0.0.31
Netzwerk Maske: 255.255.255.0 (oder /24)
Default Gateway: 10.0.0.1
Bemerkung
Zusätzliche Compute Knoten sollten 10.0.0.32, 10.0.0.33 und so weiter verwenden.
Die Anbieterschnittstelle nutzt eine besondere Konfiguration ohne eine zugewiesene IP-Adresse. Konfigurieren Sie die zweite Schnittstelle als Anbieterschnittstelle:
Ersetzen Sie INTERFACE_NAME durch den tatsächlichen Namen der Schnittstelle. Zum Beispiel eth1 oder ens224.
Bearbeiten Sie die Datei /etc/network/interfaces mit folgendem Inhalt:
# The provider network interface
auto INTERFACE_NAME
iface INTERFACE_NAME inet manual
up ip link set dev $IFACE up
down ip link set dev $IFACE down
Starten Sie das System neu, um die Änderungen wirksam zu machen.
Setzen Sie den Hostnamen des Nodes auf compute1.
Edit the /etc/hosts file to contain the following:
# controller
10.0.0.11 controller
# compute1
10.0.0.31 compute1
# block1
10.0.0.41 block1
# object1
10.0.0.51 object1
# object2
10.0.0.52 object2
Warnung
Some distributions add an extraneous entry in the /etc/hosts file that resolves the actual hostname to another loopback IP address such as 127.0.1.1. You must comment out or remove this entry to prevent name resolution problems. Do not remove the 127.0.0.1 entry.
Bemerkung
To reduce complexity of this guide, we add host entries for optional services regardless of whether you choose to deploy them.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.