Today I wrote a little script that can help out when you’re on multiple networks. I work on about three different networks, and every time I log in I have to deal with another DHCP server and another scope of IP addresses. Sometimes I find it very handy to know what the IP of the DHCP server is, so I know for sure that I get my IP address from the correct server.

So I went looking for a simple tool to get this information. Of course there are some tools out there, but they’re often loaded with other features, which I don’t need.

I thought, what the heck, I’ll write my own script. And because this script works so nicely I thought I’d share this with everyone…

You can download this script here.

[tags]dhcp,script,server ip,macfacts.org[/tags]