Because I set a secondary server on a remote site and want to use closest
server rules, I tried to configure locations and networks environments but
no devices are associating.

Does location need relation with network environment ? Does CIFS server
need to be specified ?

Can someone help me with this ? What am I missing ?