MAAS : 3.1.0~beta5
We would like to run the MAAS provided dhcpd service on multiple interfaces, instead of just one or even just change the interface it runs on.
Originally, we had one interface
eno1 and MAAS worked very well with it. Adding VLANs to our network topology, seems to break MAAS dhcpd service. The Netplan configurations for both these scenarios are given below.
# Original Configuration MAAS likes network: ethernets: eno1: addresses: [10.40.1.1/16] nameservers: addresses:  search:  version: 2
# New Netplan configuration MAAS Dislikes network: ethernets: eno1: vlans: vcluster: id: 40 link: eno1 addresses: [10.40.1.1/16] vfpga: id: 60 link: eno1 addresses: [10.60.1.1/16] vdata: id: 50 link: eno1 addresses: [10.50.1.1/16] version: 2
MAAS continuously overwrites the file
/var/snap/maas/common/maas/dhcpd-interfaces with the old interface and also references it explicitly when starting the dhcpd service.
#Contents of /snap/maas/current/bin/run-dhcpd ... DHCP_DIR="$SNAP_COMMON/maas/dhcp" DHCP_CONFIG="$SNAP_COMMON/maas/dhcpd.conf" INTERFACES_FILE="$SNAP_COMMON/maas/dhcpd-interfaces" LEASES_FILE="$SNAP_COMMON/maas/dhcp/dhcpd.leases" ... INTERFACES=$(cat "$INTERFACES_FILE") # shellcheck disable=SC2086 exec "$SNAP/usr/sbin/dhcpd" -f -4 -pf "$DHCP_DIR/dhcpd.pid" -cf "$DHCP_CONFIG" -lf "$LEASES_FILE" $INTERFACES
- Where is this
eno1value in the
- Can we change it to use multiple interfaces?
- Are there technical reasons as why this is not possible?
- As a last resort, is it advisable to just manually change