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

Dynamic or static IP in terminal!

Hi!


What terminal command I need to use to find out what kind of IP I have dynamic or static!

I have to do it exactly in terminal because I'm conencting to other mac's over ssh!


Thanks!

Posted on Jan 18, 2012 8:27 AM

Reply
7 replies

Jan 18, 2012 6:22 PM in response to Richus

Agreed - there's a lot of chance of confusion here, especially if you're on a NAT network.


It's possible for your NAT router to have a dynamic IP address from your ISP, while your system has a static IP address on your LAN.

It's also possible for your NAT router to have a dynamic IP address from your ISP, while your system also has a (different) static IP address on your LAN.

Similarly, it's also possible for your NAT router to have a static IP address while your system has a dynamic IP address on your LAN.

Just like it's possible for your NAT router to have a static IP address while your system also has a static IP address on your LAN.


So, as you can see, multiple configurations are possible. What's not possible is determining which case you're referring to in your post. There isn't enough data.

What are you looking to achieve?

Jan 19, 2012 9:29 AM in response to red_menace

I was guessing the OP was talking about their WAN address - wouldn't you always get 'DHCP' if you are behind a router using its DHCP server?



Yes, and similarly, you'd always get 'Manual' if your machine is manually configured, even if your router is getting a dynamic address from your ISP (and therefore you have a dynamic public address). Therefore, knowing the machine's configuration is only relevant for the LAN, and it's impossible to say whether that solves the OP's quest without knowing more.

Dynamic or static IP in terminal!

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