How to reduce link-up time of a bridge

Just got a 4-ports 2.5Gb PCIe card:

05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)

I use the following command to create a bridge:

nmcli con add type bridge ifname br0
nmcli con add type bridge-slave ifname enp5s0 master br0
nmcli con add type bridge-slave ifname enp6s0 master br0
nmcli con add type bridge-slave ifname enp7s0 master br0
nmcli con add type bridge-slave ifname enp8s0 master br0
nmcli con up br0

After br0 got IP via DHCP from the router, I connect another computer to br0 - it takes about 30s for the computer to have link up and got an IP.

After I change to manual IP, plugging the cable in will take about 27-30s to allow ping to succeed.

How can I reduce the time needed for the link to be up?

Check if disabling STP helps:

sudo nmcli connection modify id br0 bridge.stp no
sudo nmcli connection up id br0
1 Like

The ping test now only take 2s .