Linux brctl 安装

  CentOS8不能直接通过yum安装bridge-utils的问题。通过手动下载并安装rpm包,或者使用nmclibridgeCentOS Cockpit UI来管理网桥。

查看brctl软件包
btctl show

yum info brctl

yum info bridge-utils

rpm -qf `which brctl`

yum list installed | grep brctl
安装epel
yum -y install epel-release
查看btctl指令所属软件包
yum info bridge-utils
[root@Anolis ~]# yum info bridge-utils
Last metadata expiration check: 0:32:50 ago on Thu 05 Sep 2024 07:52:37 AM CST.
Installed Packages
Name         : `bridge-utils`
Version      : 1.7.1
Release      : 2.el8
Architecture : x86_64
Size         : 61 k
Source       : bridge-utils-1.7.1-2.el8.src.rpm
Repository   : @System
From repo    : epel
Summary      : Utilities for configuring the linux ethernet bridge
URL          : https://wiki.linuxfoundation.org/networking/bridge
License      : GPLv2+
Description  : This package contains utilities for configuring the linux ethernet
             : bridge. The linux ethernet bridge can be used for connecting multiple
             : ethernet devices together. The connecting is fully transparent: hosts
             : connected to one ethernet device see hosts connected to the other
             : ethernet devices directly.
             :
             : Install bridge-utils if you want to use the linux ethernet bridge.
查看虚拟网络
brctl show
[root@Anolis ~]# brctl show
bridge name	bridge id		STP enabled	interfaces
br-dde1c74c202b		8000.8ef19be9a543	no		veth362e375
docker0		8000.02426e589e0b	no
virbr0		8000.525400ef59f9	yes
查看brctl指令所属软件包
which brctl
rpm -qf `which brctl`
[root@Anolis ~]# which brctl
/usr/sbin/brctl
[root@Anolis ~]# rpm -qf `which brctl`
bridge-utils-1.7.1-2.el8.x86_64