Launch “System Preferences” and click on “Network” icon.Yes, you guessed right, if the Mac is connected to a router, that router is serving as the computers gateway, thus whatever it’s connected to becomes the default gateway. Wondering how to find the gateway IP address that your Mac is connected through, but want a more user friendly approach than command line? It’s pretty simple to get router information from the GUI of OS X in System Preferences as well. We used grep to clean up the output, but the route command can display more detailed information if it’s desired.įinding Gateway Address IP from the OS X System Preferences In this case, the gateway IP is 192.168.0.1 The ‘gateway’ is will be returned looking like the following: Launch the Terminal app from /Applications/Utilities/ and then use the ‘route’ command to display gateway information quickly when syntax is issued as follows: The terminal approach to showing the default gateway IP address is quite simple. The command line method is preferred for syntax reasons, though the latter approach works just fine if you don’t mind the different wording – more on that in a moment. The first trick is using the command line to display the default gateways IP address, and the second method will display a connected gateways IP address in Mac OS X from the system preference panel for active networks. We’ll cover two ways to display gateway address information on Mac OS X.
0 Comments
Leave a Reply. |