I sometimes bring my computer to home to work; and every time I do this, I have to check the IP of my VMware CentOS box's IP because I connect with Putty.
The work LAN use 10.160.xx.xx IP range and at home I have 192.168.xx.xx.
I can configure static IP, but I prefer DHCP in these two networks because of the different IP range, and I think there must be some way to do it. Another reason is that I may not log out in the guest box when I switch; I just suspend the machine and when I switch, the previous IP remains(ip addr
returns same); I have to log out and login again.
I want to connect the machine with the hostname, not the IP, to prevent changing from one another.