By Asksouley on Thursday, 22 December 2022
Category: Storage

Checking IP address on Ubuntu Virtual Machine

You have installed your brand-new Ubuntu VM and would like to check the IP address? Well, there are few ways to get that done, just follow the instructions bellow., it will just take a couple of minutes,

As always make sure that you VMs are up to date by running: 

sudo apt update

After that, make sure that you have the net-tools install

sudo apt install net-tools -y

1-Using ifconfig

 After that you will be able to find your IP address by running the command bellow

ifconfig

2-Using the Hostname

Traditionally the hostname command is used to display the DNS of the host system but when coupled with -I, it will display the IP address too

sudo Hostname - I

3-Using ip a

Running the command bellow will also display your VM IP address

ip address

ip a

Leave Comments