MAC OS terminal commands to find IP and Gateway

Get IP address

ifconfig | grep inet

Get gateway

route -n get default | grep gateway

Share on facebook
Share on twitter
Share on pinterest
Share on linkedin
Share on reddit
Share on tumblr
Share on whatsapp
Share on email
Share on print

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.