Interface ProxBox:Vlan接口未启动

Interface ProxBox:Vlan接口未启动,interface,proxmox,vlan,Interface,Proxmox,Vlan,我正在创建两个VLAN,Vlan10和Vlan11,它们将桥接到虚拟vmbr0接口 由于某些原因,Vlan接口未启动。我试图关注proxmox网站上有关openvswitch的信息 我正在跟踪桥+内部端口+未标记的流量。更奇怪的是,Vlan 11可以工作,而Vlan 10却无法提升 我已尝试移除某些部分,如ovs_额外部分或mtu部分。我试图用谷歌搜索不同的解决方案,但什么也找不到 这是我的接口文件: auto lo iface lo inet loopback auto ens34 ifac

我正在创建两个VLAN,Vlan10和Vlan11,它们将桥接到虚拟vmbr0接口

由于某些原因,Vlan接口未启动。我试图关注proxmox网站上有关openvswitch的信息

我正在跟踪桥+内部端口+未标记的流量。更奇怪的是,Vlan 11可以工作,而Vlan 10却无法提升

我已尝试移除某些部分,如ovs_额外部分或mtu部分。我试图用谷歌搜索不同的解决方案,但什么也找不到

这是我的接口文件:

auto lo
iface lo inet loopback

auto ens34
iface ens34 inet dhcp

auto ens32
allow-vmbr0 ens32
iface ens32 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr0
        ovs_options tag=10 vlan_mode=native-untagged

auto vmbr0
allow-ovs vmbr0
iface vmbr0 inet manual
        ovs_type OVSBridge
        ovs_ports ens32 vlan10 vlan11

allow-vmbr0 vlan10
iface vlan10 inet static
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=10
        ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
        address 172.16.3.50
        netmask 255.255.255.0
        gateway 172.16.3.1
        mtu 1500

allow-vmbr0 vlan11
iface vlan11 inet static
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=11
        ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
        address 172.16.3.60
        netmask 255.255.255.0
        mtu 9000
以下是我收到的错误消息:

Oct 12 13:46:54 pves3 systemd[1]: Starting Raise network interfaces...
Oct 12 13:46:54 pves3 ovs-vsctl[2756]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --timeout=5 -- --may-exist add-br vmbr0 --
Oct 12 13:46:54 pves3 ifup[2710]: ifup: interface ens32 already configured
Oct 12 13:46:54 pves3 ifup[2710]: /etc/network/if-pre-up.d/openvswitch: 1: eval: hostname-s: not found
Oct 12 13:46:54 pves3 ovs-vsctl[2795]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --timeout=5 -- --may-exist add-port vmbr0 vla
Oct 12 13:46:54 pves3 ifup[2710]: RTNETLINK answers: File exists
Oct 12 13:46:54 pves3 ifup[2710]: ifup: failed to bring up vlan10
Oct 12 13:46:54 pves3 ifup[2710]: /etc/network/if-pre-up.d/openvswitch: 1: eval: hostname-s: not found
Oct 12 13:46:54 pves3 ovs-vsctl[2872]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --timeout=5 -- --may-exist add-port vmbr0 vla
Oct 12 13:46:55 pves3 systemd[1]: Started Raise network interfaces.

我知道它说找不到“hostname-s”,但在接口文件中修复后,我得到了另一个错误,它说“找不到vmbr0作为网桥”

我让它工作的方法是创建另一个物理接口和另一个虚拟接口,将桥接到物理接口,然后使用新的虚拟接口创建VLAN