How can i relate CI and Location ??



I have imported some location and i have discovered some ci also ..


I want to relate these location to the corresponding CI by this way :

 - declare range IP in a (new ????) location field

 - if the CI's IP adress correspond to the range of a location, the system will relate it automatically (or i imagine to relate the two attibutes in a view for example) ...


Any best practices to do that ?


thanks in advance