MAAS 2.4 is based on Ubuntu 18.04.
I have both my master and nodes, connect to the public network and private network.
My router provides DHCP on 172.16.199.0/24 (Public Network, Gateway 172.16.199.1, DNS 192.168.111.90).
MAAS master provide DHCP on 10.1.1.0/24 (Private Network)
Now, I can commission, deploy Ubuntu 18.04 and SSH to my nodes. But, my nodes can not automatically connect to the public network, I find that all the requests are directed to the private network (10.1.1.100 is my MAAS master).
I must run this command on my nodes to access to the public network:
sh route add default gw 172.16.199.1
Every time when I reboot my nodes, I have to run that command.