brctl missing

Issues related to configuring your network
User avatar
jlehtone
Posts: 3044
Joined: 2007/12/11 08:17:33
Location: Finland

Re: brctl missing

Post by jlehtone » 2020/02/22 15:03:47

At least some of that config is shown by:

Code: Select all

nmcli -f bridge c s XXX
where XXX is the name of the connection.

matt2020
Posts: 13
Joined: 2020/01/20 07:26:39

Re: brctl missing

Post by matt2020 » 2020/03/07 19:23:25

Late reply for others that might be searching

I searched bridge-utils-1.6.tar.gz when I was trying to get brctl

I was able to compile it and use it just fine on CentOS8.1

gigel
Posts: 2
Joined: 2019/10/14 16:16:46

Re: brctl missing

Post by gigel » 2020/03/25 15:08:26

matt2020 wrote:
2020/03/07 19:23:25
Late reply for others that might be searching

I searched bridge-utils-1.6.tar.gz when I was trying to get brctl

I was able to compile it and use it just fine on CentOS8.1
no need to compile!

on an oracle linux 8 box,

Code: Select all

dnf install http://mirror.centos.org/centos/7/os/x86_64/Packages/bridge-utils-1.5-9.el7.x86_64.rpm
Last metadata expiration check: 0:01:27 ago on Wed 25 Mar 2020 04:58:37 PM EET.
bridge-utils-1.5-9.el7.x86_64.rpm                                                  14 kB/s |  32 kB     00:02
Dependencies resolved.
==================================================================================================================
 Package                      Architecture           Version                   Repository                    Size
==================================================================================================================
Installing:
 bridge-utils                 x86_64                 1.5-9.el7                 @commandline                  32 k

Transaction Summary
==================================================================================================================
Install  1 Package

Total size: 32 k
Installed size: 56 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                          1/1
  Installing       : bridge-utils-1.5-9.el7.x86_64                                                            1/1
  Running scriptlet: bridge-utils-1.5-9.el7.x86_64                                                            1/1
  Verifying        : bridge-utils-1.5-9.el7.x86_64                                                            1/1

Installed:
  bridge-utils-1.5-9.el7.x86_64

Complete!

Code: Select all

# ldd `which brctl `
        linux-vdso.so.1 (0x00007fff715d4000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fb12a0fc000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fb12a4bf000)

Code: Select all

# brctl showstp eth0
eth0
 bridge id              8000.0010e0dd80f4
 designated root        605b.0008e3fffd90
 root port                 1                    path cost               20106
 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              30.00
 hello timer               0.00                 tcn timer                  0.00
 topology change timer     0.00                 gc timer                  13.64
 flags                  TOPOLOGY_CHANGE


eno1 (1)
 port id                8001                    state                forwarding
 designated root        605b.0008e3fffd90       path cost                100
 designated bridge      8018.e8b7488b5100       message age timer         14.64
 designated port        80b2                    forward delay timer        0.00
 designated cost        20006                   hold timer                 0.00
 flags

pmcnabb
Posts: 1
Joined: 2020/03/24 22:28:57

Re: brctl missing

Post by pmcnabb » 2020/03/25 15:11:50

There are more bridge details available in /sys:

Code: Select all

# ls -1 /sys/class/net/br0/bridge/
ageing_time
bridge_id
default_pvid
flush
forward_delay
gc_timer
group_addr
group_fwd_mask
hash_elasticity
hash_max
hello_time
hello_timer
max_age
multicast_igmp_version
multicast_last_member_count
multicast_last_member_interval
multicast_membership_interval
multicast_mld_version
multicast_querier
multicast_querier_interval
multicast_query_interval
multicast_query_response_interval
multicast_query_use_ifaddr
multicast_router
multicast_snooping
multicast_startup_query_count
multicast_startup_query_interval
multicast_stats_enabled
nf_call_arptables
nf_call_ip6tables
nf_call_iptables
priority
root_id
root_path_cost
root_port
stp_state
tcn_timer
topology_change
topology_change_detected
topology_change_timer
vlan_filtering
vlan_protocol
vlan_stats_enabled
vlan_stats_per_port
You can get (and for some attributes, set) with cat and shell redirection:

Code: Select all

# cat /sys/class/net/br0/bridge/forward_delay
1500
# echo 200 > /sys/class/net/br0/bridge/forward_delay
# cat /sys/class/net/br0/bridge/forward_delay
200
Also, bridge slaves can be identified in the device's "brif" directory:

Code: Select all

# ls -1 /sys/class/net/br0/brif/
eno1
eno2

Post Reply

Return to “CentOS 8 - Networking Support”