This seems to be in the $dhcp == false block, should it be outside instead?