How to automate changing my ip?

Posted by callisto on Super User See other posts from Super User or by callisto
Published on 2012-03-29T13:11:47Z Indexed on 2012/04/09 5:33 UTC
Read the original article Hit count: 486

Filed under:
|

I am very new to OSX. I will use my MBP at work and home. I would like to be easily able to switch my ip when changing location.

Thus far I have dabbled with the automator, hoping to do something like this:

[pseudocode]

If IP = 192.168.0.10 root# changeip 192.168.0.10 10.0.0.15
else root# changeip 10.0.0.15 192.168.0.10

The reason for this is that my IP from home will not allow me access at work and vice versa. I have friends and family who drop in now and then, multiple wireless devices set up for the home IP range. Changing all of that to accommodate one new device (the Macbook) would make me reconsider my foray into OSX. I'd rather have the MBP adapt to me than I to it.

© Super User or respective owner

Related posts about osx

Related posts about shell-script