shell command to know about ip configuration
Hi guys
I am new bee in MAC. I have to detect the ipconfiguration of MAC through Java. Is it possible to know if the MAC is configurred DHCP or STATIC from some shell command.
In windows, we have ipconfig /all, that gives the information as
DHCP enabled ..... Yes or no, that tells us if ip configuration is DHCP or static.
Is it possible to get the same information from MAC shell commands.
Thanks
I am new bee in MAC. I have to detect the ipconfiguration of MAC through Java. Is it possible to know if the MAC is configurred DHCP or STATIC from some shell command.
In windows, we have ipconfig /all, that gives the information as
DHCP enabled ..... Yes or no, that tells us if ip configuration is DHCP or static.
Is it possible to get the same information from MAC shell commands.
Thanks
Comments
Originally posted by bunge
Try: ifconfig (InterFace CONFIGuration)
Well I tried "ifconfig en0", but i get so many parameters, which parameter tells us whether the ip configuration is DHCP or STATIC.
Thanks