V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Yakir
V2EX  ›  CentOS

请教一个 centos8 命令 brctl 问题

  •  
  •   Yakir · 2020-12-29 00:12:14 +08:00 · 1820 次点击
    这是一个创建于 1186 天前的主题,其中的信息可能已经有所发展或是发生改变。

    centos6 中可以使用 brctl 命令管理本地网桥 例如:brctl delbr xxx, brctl addif xxx xxx

    但在 centos8 中貌似使用了 nmcli 命令替代,请问大佬知道如何用 nmcli 创建虚拟网桥以及挂载网桥吗?

    2 条回复    2020-12-29 07:54:57 +08:00
    billlee
        1
    billlee  
       2020-12-29 00:44:30 +08:00
    可以用 nmuti. nmcli 和 nmtui 都只是 NetworkManager 的前端。一定要用 cli 的话大概是

    nmcli connection add connection.id br0 connection.type bridge bridge.stp true ipv4.method manual ipv4.addr 192.0.2.100/24 ipv4.dns 1.1.1.1 ipv4.gateway 192.0.2.1
    nmcli connection modify eth0 connection.master br0

    参见
    //developer.gnome.org/NetworkManager/stable/nmcli.html
    //developer.gnome.org/NetworkManager/stable/nm-settings-nmcli.html
    Yakir
        2
    Yakir  
    OP
       2020-12-29 07:54:57 +08:00
    @billlee 好的,感谢。我看一下
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2770 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 00:24 · PVG 08:24 · LAX 17:24 · JFK 20:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.