03 - Enabling DHCP for MAAS
MAAS: Install ~ Configure ~ DHCP ~ Commission ~ Deploy ~ jq ~ SSH ~ More jq
Enabling DHCP for MAAS with the CLI
Of course, the whole point here is to get machines deployed. The next step is to get DHCP working, which means I have to find the untagged VLAN. In truth, it shouldn't be too hard, because at this point, there still should only be one.
In order to turn on DHCP, I need to know two things besides the VLAN name ("untagged"): I need to know the fabric ID and the primary rack controller name. Actually, to start with, all the fabrics will be on the same untagged VLAN, so any fabric will do. In turn, I can find a valid fabric ID by reading it from any subnet, so I'll just pick one I know (192.168.123.0/24, the subnet for my virtual bridge). That means I can find a usable fabric ID like this:
Then I need to find the name of the primary rack controller. I think it's going to be my laptop hostname, but for purposes of argument, I'll assume that I don't know it and get it this way:
So this would mean I should be able to turn on DHCP like this:
Hmm. I need to define a dynamic IP range for this to work. Well, given that my virtual bridge is on 192.168.123.0/24, I think I'll just use that subnet, so let me choose, say, 192.168.123.190 to 192.168.123.253:
The result of this command is:
Okay, now let's try that DHCP switch-on one more time:
Now I get something more like I'd like:
It says success, and when I look at the UI? Yes, indeed, DHCP is enabled. Okay, let's see if I can get some machines commissioned.