我在两台通过交换机直接连接的服务器上安装了 Proxmox,我需要为每台服务器在特定的 NIC(容量为 10GB)中配置两个不同的地址。
我尝试了互联网上找到的许多解决方案,但得到的最好结果是只能 ping 一个地址。
以下是我尝试过的一些解决方案:
1.
iface eno1np0 inet manual
iface eno1np0.4 inet manual
auto vmbr1
iface vmbr1 inet static
address 10.20.2.5/24
bridge-ports eno1np0
bridge-stp off
bridge-fd 0
auto vmbr2
iface vmbr2 inet static
address 10.20.4.5/24
bridge-ports eno1np0.4
bridge-stp off
bridge-fd 0
auto eno1np0
iface eno1np0 inet static
address 10.20.2.5/24
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/eno1np0/proxy_arp
auto vmbr1
iface vmbr1 inet static
address 10.20.4.5/24
bridge-ports eno1np0
bridge-stp off
bridge-fd 0
auto eno1np0
iface eno1np0 inet manual
address 10.20.2.5/24
auto vmbr1
iface vmbr1 inet static
address 10.20.4.5/24
bridge-ports eno1np0
bridge-stp off
bridge-fd 0