diff --git a/content/post/incus-install.md b/content/post/incus-install.md index aaec082..6caf938 100644 --- a/content/post/incus-install.md +++ b/content/post/incus-install.md @@ -149,6 +149,34 @@ incus3 | eth0: 192.168.1.3 | 10.10.10.3 | /dev/sdb | 10.10.10.3 incus3 - [每台服务器的操作与单机环境完全一致](#安装-incus-环境) ### 创建网桥 +#### debian 系 linux +- **在每台服务器里执行下面操作** +- 创建网桥 incusbr + ```BASH + apt install bridge-utils + brctl addbr incusbr + ``` + +- 修改 /etc/network/interfaces,把 eth0 相关配置改成如下网桥配置 + ``` + iface eth0 inet manual + auto incusbr + iface incusbr inet static + address ${eth0_ip}/24 + gateway 192.168.1.254 + bridge-ports eth0 + bridge-stp off + bridge-fd 0 + #dns-nameservers 223.5.5.5 + # 把 ${eth0_ip} 替换成对应服务器的 eth0 网卡 ip + ``` + +- 重启网络服务,**注意此操作可能会导致服务器断网** + ```BASH + systemctl restart networking + ``` + +#### redhat 系 linux - **在每台服务器里执行下面操作** - 创建网桥 incusbr,连接服务器网卡 eth0,**注意此操作可能会导致服务器断网** ```BASH