[SOLVED] "source /etc/network/interfaces.d/*"

GumShoeNoir

Member
Nov 7, 2021
12
1
8
Once upon a time I successfully upgraded several Proxmox pve nodes from version 7 -> 8 (or was it 6 -> 7) being lazy and since it didn't seem to cause me any problems I didn't do a widely publicized step of, I believe if memory serves, adding source /etc/network/interfaces.d/* to /etc/network I want to read it in some official proxmox forum, wiki or documentation before applying. -- In preparation to upgrade 8 -> 9. I've been searching for many minutes... then I had the idea of asking codellama:34b to site sources. It came up with; "https://www.proxmox.com/en/kbase/issue_10144.html" which is html 404 not found

Maybe it was to support VLANs which I'm not using but probably will in the future.

Anyway, does this step ring a bell with anyone? Does your proxmox ve /etc/network source /etc/network/interfaces.d ?
 
I'd just like to read it in the upgrade documentation or wiki. I know I did a few years ago...

Maybe this is where I read it https://pve.proxmox.com/wiki/Software-Defined_Network getting old but maybe a link in the 7->8 upgrade documentation.

I'll execute this script on my several nodes

Code:
#!/usr/bin/env bash
# JHA 9/11/2025
# see https://pve.proxmox.com/wiki/Software-Defined_Network

FILE_PATH="/etc/network/interfaces"
SEARCH_STRING="source: /etc/network/interfaces.d/*"

if grep -q "$SEARCH_STRING" "$FILE_PATH"; then
    echo -e "The text '$SEARCH_STRING' exists in '$FILE_PATH'.\nNo changes made to '$FILE_PATH'."
else
    echo -e "The text '$SEARCH_STRING' does not exist in '$FILE_PATH'. \nadding '$SEARCH_STRING to '$FILE_PATH"
    sed -i '$a\source: /etc/network/interfaces.d/*' "$FILE_PATH"
fi
 
Last edited: