Only ask for dhcp if there is an lap. And add designated router logic in the code.