收起左侧

请问虚拟机怎么添加VLAN接口

1
回复
309
查看
[ 复制链接 ]

1

主题

0

回帖

0

牛值

江湖小虾

2025-2-18 01:55:04 显示全部楼层 阅读模式

大神们好,我尝试使用以下命令

ovs-vsctl add-port enp2s0-ovs vlan10 tag=10 -- set interface vlan10 type=internal

在enp2s0-ovs这个桥下新建vlan接口,但是添加虚拟机网卡的时候无法添加这个接口。。

ovs-vsctl show
19d20c10-43b1-4509-82d6-bcc1bf2cd08e
    Bridge enp3s0-ovs
        Port enp3s0-ovs
            Interface enp3s0-ovs
                type: internal
        Port enp3s0
            Interface enp3s0
        Port vnet1
            Interface vnet1
    Bridge enp2s0-ovs
        Port enp2s0
            Interface enp2s0
        Port vnet0
            Interface vnet0
        Port vlan10
            tag: 10
            Interface vlan10
                type: internal
        Port enp2s0-ovs
            Interface enp2s0-ovs
                type: internal
    ovs_version: "3.1.0"

image.png 求大神指导一下

收藏
送赞
分享

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

9

主题

63

回帖

0

牛值

fnOS系统内测组

2025-2-20 20:59:44 显示全部楼层
对比群辉,应该是缺少 虚拟交换机
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则