brctl missing

Issues related to configuring your network
togabob
Posts: 1
Joined: 2019/10/04 23:40:59

brctl missing

Post by togabob » 2019/10/04 23:44:42

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!

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: brctl missing

Post by jlehtone » 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.

User avatar
javajox
Posts: 25
Joined: 2019/10/11 10:08:05
Location: Internet
Contact:

Re: brctl missing

Post by javajox » 2019/10/11 10:15:13

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" ?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: brctl missing

Post by TrevorH » 2019/10/11 15:43:08

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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: brctl missing

Post by jlehtone » 2019/10/12 11:17:31

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/

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: brctl missing

Post by hunter86_bg » 2019/10/13 21:32:53

I used 'nmcli' to create a linux bridge in CentOS7. You can give it a try.

User avatar
javajox
Posts: 25
Joined: 2019/10/11 10:08:05
Location: Internet
Contact:

Re: brctl missing

Post by javajox » 2019/10/14 09:00:34

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.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: brctl missing

Post by TrevorH » 2019/10/14 09:09:44

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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: brctl missing

Post by hunter86_bg » 2019/10/16 16:04:10

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.

lexushko
Posts: 1
Joined: 2019/10/01 07:25:48

Re: brctl missing

Post by lexushko » 2020/02/21 09:50:06

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"?

Post Reply