error: Unable to add bridge ens2f0 port vnet0: Operation not supported

来源:互联网 发布:新浪期货软件下载 编辑:程序博客网 时间:2024/05/20 02:26

ifconfig

ens2f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.16.0.30  netmask 255.255.255.0  broadcast 172.16.0.255
        inet6 fe80::a236:9fff:fe80:8850  prefixlen 64  scopeid 0x20<link>
        ether a0:36:9f:80:88:50  txqueuelen 1000  (Ethernet)
        RX packets 38451091  bytes 5846394528 (5.4 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 140409350  bytes 170500828067 (158.7 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device memory 0xc7200000-c72fffff  


无法添加网桥的端口,因为这不是一个网桥。


添加网桥:

# virsh iface-bridge ens2f0 br0
Created bridge br0 with attached device ens2f0
Bridge interface br0 started


删除网桥:

# virsh iface-unbridge br0
Device ens2f0 un-attached from bridge br0
Interface ens2f0 started


添加网桥后用br0可创建成功。