f16725e 3 months ago History
1 contributor
26 lines | 0.958kb
# Modular network configuration for baobab - Thunderbolt networking
# ifupdown2-safe: bridge comes up alone; TB ports hotplug in later

# Thunderbolt ports appear late — do NOT 'auto' them
allow-hotplug thunderbolt0
iface thunderbolt0 inet manual
    pre-up ip link set dev $IFACE mtu 65520 || true
    post-up ip link set dev $IFACE mtu 65520 || true
    post-up ip link set dev $IFACE master thunderbridge || true

allow-hotplug thunderbolt1
iface thunderbolt1 inet manual
    pre-up ip link set dev $IFACE mtu 65520 || true
    post-up ip link set dev $IFACE mtu 65520 || true
    post-up ip link set dev $IFACE master thunderbridge || true

# Bridge must exist and stay up even with zero members
auto thunderbridge
iface thunderbridge inet static
    address 192.168.10.91/24
    bridge-ports none
    bridge-stp off
    bridge-fd 0
    mtu 65520
    pre-up ip link add name $IFACE type bridge 2>/dev/null || true
    post-up ip link set dev $IFACE up