This commit is contained in:
colben 2025-02-14 16:14:10 +08:00
parent 39de3779f9
commit 8c085cdb9a

View File

@ -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