Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do I find my Default Gateway from the Terminal?

I'm SSH'ed into my mac, and I want to find out what the Default Gateway address is. How do I determine this?

Powermac G5 Quad, Mac OS X (10.5.2), PPC Is useless. OH THE HUMANITY.....

Posted on May 6, 2008 11:55 AM

Reply
Question marked as Best reply

Posted on May 6, 2008 12:11 PM

Hi

One thing you can do quickly and easily is to issue:

system_profiler

There is a slight delay but then the output can be quite long. You will definitely see the default Gateway in the output. There may be a quicker and simpler way of doing this? Possibly ifconfig or even ipconfig? You could consult the manual pages to see if there is anything available? You could also use the apropos command to see if anything gets thrown up. Something like:

apropos gateway

Should list any shell commands/scripts that may give you the information you want.

Tony
2 replies
Question marked as Best reply

May 6, 2008 12:11 PM in response to Lucas Clemente

Hi

One thing you can do quickly and easily is to issue:

system_profiler

There is a slight delay but then the output can be quite long. You will definitely see the default Gateway in the output. There may be a quicker and simpler way of doing this? Possibly ifconfig or even ipconfig? You could consult the manual pages to see if there is anything available? You could also use the apropos command to see if anything gets thrown up. Something like:

apropos gateway

Should list any shell commands/scripts that may give you the information you want.

Tony

How do I find my Default Gateway from the Terminal?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.