Page 1 of 2

brctl missing

Posted: 2019/10/04 23:44:42
by togabob
I just installed CentOS 8, and am unable to find brctl. Tried installing bridge-utils, but the package is not found by yum.

Any idea how to get brctl?

Thanks!

Re: brctl missing

Posted: 2019/10/06 10:35:32
by jlehtone
What do you want to do with the brctl?

You might be able to achieve the same result with tools that are available.

Re: brctl missing

Posted: 2019/10/11 10:15:13
by javajox
Same thing for me, I'm trying to play with Linux bridges in CentOS 8, but "bridge-utils" is not available. Of course I can use other tools like "ip", but I need exactly to use "brctl", it is deprecated, I think that's why it has been removed completely from CentOS 8. What will be the most correct way to bring back "bridge-utils" ?

Re: brctl missing

Posted: 2019/10/11 15:43:08
by TrevorH
It's deprecated and removed and the functionality is now present in either the ip bridge command or the bridge utility.

It's not coming back so you might as well accept that and work around it.

Re: brctl missing

Posted: 2019/10/12 11:17:31
by jlehtone
Q:
jlehtone wrote:
2019/10/06 10:35:32
What do you want to do with the brctl?
A:
javajox wrote:
2019/10/11 10:15:13
I need exactly to use "brctl"
Sorry, but as far as I can see, you:
* fail to answer the question
* are close to XY Problem. See http://xyproblem.info/

Re: brctl missing

Posted: 2019/10/13 21:32:53
by hunter86_bg
I used 'nmcli' to create a linux bridge in CentOS7. You can give it a try.

Re: brctl missing

Posted: 2019/10/14 09:00:34
by javajox
My question was "What would be the most correct way to bring back bridge-utils ?"

And what kind of replies I received ?

Anyway, the main point here is that RedHat/CentOS team is breaking backward compatibility. In the past if the system doesn't contain "bridge-utils", my scripts would install it, by issuing "yum -y install bridge-utils", now bridge-utils is completely removed, this is not good at all. Backward compatibility is king, so breaking it, is a nasty thing.

Re: brctl missing

Posted: 2019/10/14 09:09:44
by TrevorH
Backwards compatibility is often broken at major version release times. That's when you get to make changes to cater for e.g. CentOS 7 to 8 differences.

Re: brctl missing

Posted: 2019/10/16 16:04:10
by hunter86_bg
According to https://access.redhat.com/documentation ... ctionality , bridge-utils was deprecated in 7.7 .
It is completely natural to be removed on the major release.

Re: brctl missing

Posted: 2020/02/21 09:50:06
by lexushko
jlehtone wrote:
2019/10/06 10:35:32
What do you want to do with the brctl?

You might be able to achieve the same result with tools that are available.
Using brtstl it was possible to get the spanning tree topology, for example:

Code: Select all

# brctl showstp br0
br0
 bridge id              8000.005056829be5
 designated root        8000.005056829be5
 root port                 0                    path cost                  0
 max age                  20.00                 bridge max age            20.00
 hello time                2.00                 bridge hello time          2.00
 forward delay            15.00                 bridge forward delay      15.00
 ageing time             300.00
 hello timer               0.00                 tcn timer                  0.00
 topology change timer     0.00                 gc timer                 182.75
 flags


ens256 (1)
 port id                8001                    state                forwarding
 designated root        8000.005056829be5       path cost                100
 designated bridge      8000.005056829be5       message age timer          0.00
 designated port        8001                    forward delay timer        0.00
 designated cost           0                    hold timer                 0.00
 flags

macsec0 (2)
 port id                8002                    state                forwarding
 designated root        8000.005056829be5       path cost                100
 designated bridge      8000.005056829be5       message age timer          0.00
 designated port        8002                    forward delay timer        0.00
 designated cost           0                    hold timer                 0.00
 flags
Tell me please, is there any way to get this information in rhel/centos 8 with "tools that are available"?