【问题标题】:Proxmox create VLAN not supported不支持 Proxmox 创建 VLAN
【发布时间】:2021-03-17 10:14:48
【问题描述】:

我正在运行 proxmox V 6.3 的集群中设置 2 台服务器 我创建了一个桥接接口 vmbr0 并尝试创建 vlan 接口 当我去重新加载网络时,我得到了错误 error: netlink: vmbr0.500: cannot create vlan vmbr0.500 500: operation failed with 'Operation not supported' (95)

我在另一台服务器上进行了此设置,它工作正常,没有问题。我对我尝试过的事情感到茫然。

下面是我的接口文件。

# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

iface eno1 inet manual

auto eno3
iface eno3 inet manual
        address 192.168.8.238
        gateway 192.168.8.1

iface eno2 inet manual

iface eno4 inet manual

auto vmbr0
iface vmbr0 inet manual
    bridge-ports eno1
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 2-4094


auto vmbr0.500
iface vmbr0.500 inet static
        address  172.20.0.3
        netmask  255.255.255.0
        broadcast  172.20.0.255
        network 172.20.0.0
        vlan_raw_device vmbr0

【问题讨论】:

    标签: proxmox vlan


    【解决方案1】:

    正如 Gaga 所写,首先创建一个绑定 -> 虚拟网桥(带有 vlan 感知选项)。以下 wiki 页面上有示例:https://pve.proxmox.com/wiki/Network_Configuration

    始终在绑定中使用两个网络接口以实现冗余,我可以看到它们已经足够了。对集群和数据流量使用单独的绑定(例如 eno1+eno2 和 eno3+eno4) - 如果可能,集群网络使用 10G。

    如果您使用节点集群,您应该为集群 qvorum 使用至少三个节点。当您的一个节点出现故障时会发生什么?节点如何判断哪个节点“活着”?也许你正在使用“pvecm expected 2”,你应该只在紧急情况下使用。

    【讨论】:

      【解决方案2】:

      我建议你先创建创建绑定接口,如:

      auto bond0
      iface bond0 inet manual
      bond-slaves eno3  #here you should add any trunk interface of proxmox node and it is recommended to add also a second interface to have active-backup bond mode.
      bond-miimon 100
      bond-mode active-backup
      

      比将绑定添加到vlan

      auto bond0.500
      iface bond0.500 inet manual
      

      创建小鸟

      auto vmbr500
      iface vmbr500 inet static
          address 172.20.0.3/24
          # gateway # comment it if you want to have any gateway
          bridge-ports bond0.500
          bridge-stp off
          bridge-fd 0
          
      

      将 vmbr0 配置更改为

      auto vmbr0
      iface vmbr0 inet manual
          bridge-ports bond0
          bridge-stp off
          bridge-fd 0
          bridge-vlan-aware yes
          bridge-vids 2-4094
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2020-10-04
        • 1970-01-01
        • 2021-01-20
        • 2013-10-03
        • 2017-06-15
        • 2018-06-24
        • 1970-01-01
        相关资源
        最近更新 更多