| 節點 | 管理網 | 隧道網 | 外部網 |
|---|---|---|---|
| 控制器 | 10.0.0.11/24 | — | — |
| 網路 | 10.0.0.21/24 | 10.0.1.21/24 | 無 IP(僅掛載實體介面) |
| 計算 | 10.0.0.31/24 | 10.0.1.31/24 | — |
hostnamectl set-hostname controller|network|compute/etc/hosts 互解三節點主機名。BOOTPROTO=none、ONBOOT=yes,不指定 IP。systemctl restart network(或 service network restart)。從控制器分別 ping 外部網站、計算節點、網路節點;從網路/計算節點 ping 控制器與外部站點。確保 0% 封包遺失。
yum install ntp
# 編輯 /etc/ntp.conf,指定上層 NTP 伺服器
server ntp.example.com iburst
restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap
systemctl enable ntpd --now
yum install ntp
# /etc/ntp.conf 僅指向控制器
server controller iburst
systemctl enable ntpd --now
ntpq -c peers
ntpq -c assoc
輸出中出現 * 標記且狀態為 sys.peer 即同步成功。
openssl rand -hex 10 或 pwgen 產生隨機密碼。