Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Linux Mint 15, I live in a university where the hostel and lab have separate static IP settings. Is there a way to set up the connection mechanism so that my laptop will automatically select the correct configuration according to which router is serving it?

EDIT: My question is actually case specific to wired connection, but would be interested to know about both.

share|improve this question
Is it wireless? If so, network-manager can do that, but based on the ESSID and not the gateways IP. – jordanm Dec 14 '13 at 17:38
Edited my question. It's specific to wired LAN, but would like to know for both. Thanks. – Adeesh Lemonickous Dec 14 '13 at 17:45
I'm sorry to ask but what is a "hostel"? – slm Dec 14 '13 at 18:07
aka dormitory :) – Adeesh Lemonickous Dec 14 '13 at 18:31
up vote 1 down vote accepted

I have not had a chance to fully vet this yet but I did find this guide which sounds like what you're asking to do. It discusses the application of static IPs that can be applied through NetworkManager, which would in theory, have access to the network information when your laptop moves from one network to another.

The guide is titled: Roaming Profiles with NetworkManager. The section on static IPs is titled: Static IP Assignment Kludge.

share|improve this answer
Thanks, that was it. – Adeesh Lemonickous Dec 15 '13 at 0:40
@AdeeshLemonickous - Glad this resolved your issue, please mark this as the accepted answer so others know your issue's been resolved. – slm Dec 15 '13 at 0:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.