# WARNING: Do not edit /var/lib/maas/dhcpd.conf yourself. MAAS will # overwrite any changes made there. Instead, you can modify dhcpd.conf by # using DHCP snippets over the API or through the web interface. option arch code 93 = unsigned integer 16; # RFC4578 option path-prefix code 210 = text; #RFC5071 # # Global DHCP snippets # # No global DHCP snippets defined # # Bootloaders # if option arch = 00:07 { # uefi_amd64 filename "bootx64.efi"; } elsif option arch = 00:0B { # uefi_arm64 filename "grubaa64.efi"; } elsif option arch = 00:00 { # pxe filename "pxelinux.0"; } elsif option arch = 00:0C { # open-firmware_ppc64el filename "bootppc64.bin"; } elsif option arch = 00:0E { # powernv filename "pxelinux.0"; option path-prefix "ppc64el/"; } else { # pxe filename "pxelinux.0"; } # # Shorter lease time for PXE booting # class "PXE" { match if substring (option vendor-class-identifier, 0, 3) = "PXE"; default-lease-time 30; max-lease-time 30; } # # Failover Peers # # # Networks # shared-network vlan-5002 { subnet 10.222.208.0 netmask 255.255.240.0 { ignore-client-uids true; option subnet-mask 255.255.240.0; option broadcast-address 10.222.223.255; option domain-name-servers 10.222.222.10; option domain-name "maas"; option routers 10.222.222.10; option ntp-servers 10.222.222.10; default-lease-time 600; max-lease-time 600; # # Subnet DHCP snippets # # No DHCP snippets defined for subnet pool { range 10.222.222.40 10.222.222.90; } } } shared-network vlan-5005 { subnet 10.120.0.0 netmask 255.255.240.0 { ignore-client-uids true; option subnet-mask 255.255.240.0; option broadcast-address 10.120.15.255; option domain-name-servers 10.222.222.10; option domain-name "maas"; option routers 10.120.0.1; option ntp-servers 10.120.0.1; default-lease-time 600; max-lease-time 600; # # Subnet DHCP snippets # # No DHCP snippets defined for subnet pool { range 10.120.0.40 10.120.0.90; } } } shared-network vlan-5006 { subnet 10.20.0.0 netmask 255.255.240.0 { ignore-client-uids true; option subnet-mask 255.255.240.0; option broadcast-address 10.20.15.255; option domain-name-servers 10.222.222.10; option domain-name "maas"; option routers 10.20.0.1; option ntp-servers 10.20.0.1; default-lease-time 600; max-lease-time 600; # # Subnet DHCP snippets # # No DHCP snippets defined for subnet pool { range 10.20.0.40 10.20.0.90; } } } shared-network vlan-5007 { subnet 10.220.0.0 netmask 255.255.240.0 { ignore-client-uids true; option subnet-mask 255.255.240.0; option broadcast-address 10.220.15.255; option domain-name-servers 10.222.222.10; option domain-name "maas"; option routers 10.220.0.1; option ntp-servers 10.220.0.1; default-lease-time 600; max-lease-time 600; # # Subnet DHCP snippets # # No DHCP snippets defined for subnet pool { range 10.220.0.40 10.220.0.90; } } } shared-network vlan-5008 { subnet 10.230.0.0 netmask 255.255.240.0 { ignore-client-uids true; option subnet-mask 255.255.240.0; option broadcast-address 10.230.15.255; option domain-name-servers 10.222.222.10; option domain-name "maas"; option routers 10.230.0.1; option ntp-servers 10.230.0.1; default-lease-time 600; max-lease-time 600; # # Subnet DHCP snippets # # No DHCP snippets defined for subnet pool { range 10.230.0.40 10.230.0.90; } } } shared-network vlan-5009 { subnet 10.240.0.0 netmask 255.255.240.0 { ignore-client-uids true; option subnet-mask 255.255.240.0; option broadcast-address 10.240.15.255; option domain-name-servers 10.222.222.10; option domain-name "maas"; option routers 10.240.0.1; option ntp-servers 10.240.0.1; default-lease-time 600; max-lease-time 600; # # Subnet DHCP snippets # # No DHCP snippets defined for subnet pool { range 10.240.0.40 10.240.0.90; } } } shared-network vlan-5010 { subnet 10.250.0.0 netmask 255.255.240.0 { ignore-client-uids true; option subnet-mask 255.255.240.0; option broadcast-address 10.250.15.255; option domain-name-servers 10.222.222.10; option domain-name "maas"; option routers 10.250.0.1; option ntp-servers 10.250.0.1; default-lease-time 600; max-lease-time 600; # # Subnet DHCP snippets # # No DHCP snippets defined for subnet pool { range 10.250.0.40 10.250.0.90; } } } shared-network vlan-5011 { subnet 10.99.0.0 netmask 255.255.240.0 { ignore-client-uids true; option subnet-mask 255.255.240.0; option broadcast-address 10.99.15.255; option domain-name-servers 10.222.222.10; option domain-name "maas"; option routers 10.99.0.1; option ntp-servers 10.99.0.1; default-lease-time 600; max-lease-time 600; # # Subnet DHCP snippets # # No DHCP snippets defined for subnet pool { range 10.99.0.40 10.99.0.90; } } } # # Hosts # # cloudNet-one-eth0 host ec-08-6b-fe-5f-d3 { # # Node DHCP snippets # # No DHCP snippets defined for host hardware ethernet ec:08:6b:fe:5f:d3; fixed-address 10.222.222.201; } # cloudNet-two-eth0 host 98-de-d0-44-2a-ee { # # Node DHCP snippets # # No DHCP snippets defined for host hardware ethernet 98:de:d0:44:2a:ee; fixed-address 10.222.222.202; } # magrathea-enp3s0f0 host e4-11-5b-d9-50-10 { # # Node DHCP snippets # # No DHCP snippets defined for host hardware ethernet e4:11:5b:d9:50:10; fixed-address 10.222.222.224; } # reason-enp3s0f1-220 host e4-11-5b-d3-00-b6 { # # Node DHCP snippets # # No DHCP snippets defined for host hardware ethernet e4:11:5b:d3:00:b6; fixed-address 10.220.0.1; } # # Notify MAAS # on commit { set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6)); set clip = binary-to-ascii(10, 8, ".", leased-address); set cllt = binary-to-ascii(10, 32, "", encode-int(lease-time, 32)); set clht = pick-first-value(option host-name, "(none)"); execute( "/usr/sbin/maas-dhcp-helper", "notify", "--action", "commit", "--mac", clhw, "--ip-family", "ipv4", "--ip", clip, "--lease-time", cllt, "--hostname", clht); } on expiry { set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6)); set clip = binary-to-ascii(10, 8, ".", leased-address); execute( "/usr/sbin/maas-dhcp-helper", "notify", "--action", "expiry", "--mac", clhw, "--ip-family", "ipv4", "--ip", clip); } on release { set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6)); set clip = binary-to-ascii(10, 8, ".", leased-address); execute( "/usr/sbin/maas-dhcp-helper", "notify", "--action", "release", "--mac", clhw, "--ip-family", "ipv4", "--ip", clip); } omapi-port 7911; key omapi_key { algorithm HMAC-MD5; secret "MayFDqSxrTIMJ14s4NRmLQl/hGsoXmGSfCQKmJmiXfRLXksoL8LxujhDkLsB3nTNPOs1IZabbLnmaKXUCuEzVQ=="; }; omapi-key omapi_key;