It seems that within netifrc the preup() function does not work properly on bridges if the command issued within thre preup() function needs to address the bridge interface - itβs not existing (yet). non-working example: #/etc/conf.d/net config_br0="192.168.0.24 netmask 255.255.255.0 brd 192.168.0.255" ... preup() { ip token set ::24 dev br0 return 0 } Looking through the code of netirfc/net/bridge.sh I guess that may even be by design? It's not clear if it's a bug or not documented. It would be however nice to have that functionality. Reproducible: Always
As i know, preup() works in such way for any non-physical interfaces - at least for VXLAN and L2TPv3 tunnel interfaces. If you need to tweak bridge properties, your best bet would be postup()