Project

General

Profile

Actions

Regression #13666

closed

Assigned bridge interfaces are not configured at boot

Added by Steve Wheeler about 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
Interfaces
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.01
Release Notes:
Default
Affected Version:
2.7.0
Affected Architecture:
All

Description

Under some circumstances a bridge interface assigned as LAN is not configured correctly at boot. It comes up without an IPv4 address, subnet or description:

[23.01-DEVELOPMENT][admin@6100.stevew.lan]/root: ifconfig bridge0
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether 58:9c:fc:10:5e:39
    id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
    maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
    root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
    member: igc3 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 4 priority 128 path cost 2000000
    member: igc2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 3 priority 128 path cost 2000000
    groups: bridge
    nd6 options=1<PERFORMNUD>

Resaving the interface after boot applies the expected config:

[23.01-DEVELOPMENT][admin@6100.stevew.lan]/root: ifconfig bridge0
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    description: LAN
    ether 58:9c:fc:10:5e:39
    inet 192.168.241.1 netmask 0xffffff00 broadcast 192.168.241.255
    id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
    maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
    root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
    member: igc3 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 4 priority 128 path cost 2000000
    member: igc2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 3 priority 128 path cost 2000000
    groups: bridge
    nd6 options=1<PERFORMNUD>

I can only replicate this on one test box here. That one was upgraded from 22.05.

See: https://forum.netgate.com/topic/175882/bridge0-lan-ip-not-present

Tested:

23.01-DEVELOPMENT (amd64)
built on Tue Nov 15 06:04:44 UTC 2022
FreeBSD 14.0-CURRENT

Actions

Also available in: Atom PDF