Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 483 Bytes

NOTES.md

File metadata and controls

11 lines (9 loc) · 483 Bytes

Notes

Determine DigitalOcean public VM Network configuration:

HOSTNAME=$(curl -s http://169.254.169.254/metadata/v1/hostname); \
PUBLIC_IPV4=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address); \
NETMASK=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/netmask); \
GATEWAY=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/gateway); \
echo $HOSTNAME; echo $PUBLIC_IPV4; echo $NETMASK; echo $GATEWAY