How can I find my DHCP IP address on my computer?

Hi,

I am using Ubuntu and I trying to find the IP address assigned to my computer by DHCP server. How to find the IP address?

Thanks

View Answers

December 24, 2015 at 7:05 AM

Hi,

You can try following command?

Here is the command to get the IP address:

cat $(ps aux | grep -o '[/]var/lib/NetworkManager/\S*.lease')

You can use the following command with grap option:

cat $(ps aux | grep -o '[/]var/lib/NetworkManager/\S*.lease') | grep dhcp-server-identifier

Thanks


February 8, 2016 at 3:32 PM

Hi,

check the video:

Thanks









Related Tutorials/Questions & Answers:
Advertisements