Skip to content

Instantly share code, notes, and snippets.

@stondo
Last active September 14, 2016 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stondo/2f28cdfda516dfcb11beadf288b3528f to your computer and use it in GitHub Desktop.
Save stondo/2f28cdfda516dfcb11beadf288b3528f to your computer and use it in GitHub Desktop.
#!/bin/bash
ifconfig eth0:1 | grep "inet addr" | cut -d: -f2 | awk '{print $1}'
@stondo
Copy link
Author

stondo commented Apr 18, 2016

bash script to quickly get private IP of your servers.
(Remember to change your interface name to match your setup)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment