Skip to content

Instantly share code, notes, and snippets.

@hugespoon
Created January 5, 2015 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugespoon/44ff5487c6025854e558 to your computer and use it in GitHub Desktop.
Save hugespoon/44ff5487c6025854e558 to your computer and use it in GitHub Desktop.
# cat /var/lib/maas/dhcpd-interfaces && echo
eth0:0
#
# cat /etc/maas/dhcpd.conf
# WARNING: Do not edit /etc/maas/dhcpd.conf yourself. MAAS will overwrite any
# changes made there.
#
# Instead, edit /etc/maas/templates/dhcp/dhcpd.conf.template and your changes
# will be present whenever MAAS rewrites the DHCP configuration. Edit and save
# the nodegroup's configuration in MAAS to trigger an update.
option arch code 93 = unsigned integer 16; # RFC4578
option path-prefix code 210 = text; #RFC5071
subnet 172.16.1.0 netmask 255.255.255.0 {
if option arch = 00:0E {
filename "pxelinux.0";
option path-prefix "ppc64el/";
} elsif option arch = 00:07 {
filename "bootx64.efi";
} elsif option arch = 00:0C {
filename "bootppc64.bin";
} else {
filename "pxelinux.0";
}
interface "eth0:0";
ignore-client-uids true;
option subnet-mask 255.255.255.0;
option broadcast-address 172.16.1.255;
option domain-name-servers 158.85.86.7;
option domain-name "maas";
option routers 172.16.1.1;
option ntp-servers 91.189.94.4;
range dynamic-bootp 172.16.1.100 172.16.1.200;
class "PXE" {
match if substring (option vendor-class-identifier, 0, 3) = "PXE";
default-lease-time 30;
max-lease-time 30;
}
}
omapi-port 7911;
key omapi_key {
algorithm HMAC-MD5;
secret "ACTUALKEYHERE";
};
omapi-key omapi_key;
# ifconfig eth0:0
eth0:0 Link encap:Ethernet HWaddr 06:e8:4f:53:78:f1
inet addr:172.16.1.1 Bcast:172.16.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment