How to Find Your IP Address in Linux Virtual Machine

In this article, you will learn how to find your IP address in Linux operating system.

Crystal

By Crystal / Updated on April 6, 2023

Share this: instagram reddit

Find IP Address in Linux

An IP address is a code name assigned to a system or a device connected to a network. It is configured at the network layer within the operating system of a computer. All applications running on the computer and accessing other services over the Internet use the IP address to route data to and from the computer.

You may run a Linux-based distribution or install Linux as a VM. The IP addresses in Linux are managed via a set of administration commands, via the command line terminal. If you want to check your IP address of Linux VM, you should ensure that you have a terminal window open.

How to Find IP Address in Linux

There are a few different commands you can use to check your IP address in Linux. The basic steps are:

  • Open the terminal window.
  • Run ifconfig -a or ip addr commands.
  • The output will display the ip address for all the network interfaces.

Way 1. Using the Hostname Command

Open a terminal window and run command line:

hostname -I

The system will display your internal IP address.

display internal ip address

Way 2. Using the ip addr Command

Check your ip address with the ip addr command:

ip addr

The system will scan your hardware, and display the status for each network adapter you have. Look for an entry that says link/ether. Below it, you should see one of the following:

inet 192.168.0.10/24

inet6 fe80::a00:27ff:fe76:1e71/64

use ip addr ncommand

The entries will include one for a wired (Ethernet) adapter and a wireless (Wi-Fi) adapter. You may also have an entry for a virtual adapter. Generally, only one entry will have an IP address listed.

Way 3. Using the ifconfig Command

You are also able to check VM IP address in Linux using the ifconfig command. In the command line, enter the following:

Ifconfig

The system will display all network connections – including connected, disconnected, and virtual. Look for the one labeled UP, BROADCAST, RUNNING, MULTICAST to find your IP address. This lists both IPv4 and IPv6 addresses.

Way 4. Finding IP Address in Linux with a GUI

If we are using the point-and-click interface for running our Linux system, we can check our IP address by considering the following steps:

  • Enter Settings within the search bar of the Application Menu.
  • Press on the icon, i.e., Settings that appears among the outputs.
  • Then, search the tab, i.e., Network within the Settings Menu, and press on the icon, i.e., Advanced Wired Settings.
  • It will open a pop-up window along with wired settings details. Here we can check both our IPv6 address and IPv4 address.

find ip address in Linux with a GUI

Linux system offers many commands for accessing the IP address-related details. One can use the ifconfig command, or the IP address command to know the IP address configured on the system.

A Free VMware Backup Software – AOMEI Cyber Backup

You may still struggle to choose a suitable VMware backup software for your Linux environment, because Windows has a very high usage rate for a long time, and there are still many backup software that do not support Linux.

Fortunately, free VMware backup software AOMEI Cyber Backup focuses on enhancing the customer experience and has made changes to this situation. Now except for Windows, you can also install and run AOMEI Cyber Backup on Linux environment and use it to backup your VMware ESXi VMs.

For Linux, AOMEI Cyber Backup supports:

  • Ubuntu 20.04.1 LTS
  • Ubuntu 20.04.2 LTS
  • Ubuntu 20.04.3 LTS
  • Ubuntu 20.04.4 LTS
  • Ubuntu 20.04.5 LTS

AOMEI Cyber Backup allows you to create complete and independent image-level VM backups for both paid and free versions of VMware ESXi and Hyper-V, without installing an agent on the host and the guest machines.

To avoid mis-operations, it also allows one administrator account to create multiple sub-accounts with different limited privileges. For Linux, the Root Account of the Super Administrator in Linux are supported.

Download FreewareVMware ESXi & Hyper-V
Secure Download

1. Bind Devices: Access to AOMEI Cyber Backup web client, navigate to Source Device > VMware + Add VMware Device to Add vCenter or Standalone ESXi host. And then click  > Bind Device.

bind device

2. Create Backup Task: Navigate to Backup Task > + Create New Task, and then set Task NameBackup TypeDeviceTarget, and Schedule.

  • Device: cover multiple VMs on the host within one backup task.
  • Target: select to back up to a local path, or to a network path.
  • Schedule: choose to perform full, differential or incremental backup, and automate execution according to the frequency you specified.
  • Email Notification: send email notification when the task is completed or abnormal.

​​​​​​​3. Run Backup: Now you can click Start Backup and select Add the schedule and start backup now, or Add the schedule only.

create vm backup

 

Created backup tasks will be listed and monitored separately, for restoring, progress checking and schedule changing.

While the Free Edition covers most of VM backup needs, you can also upgrade to enjoy:

 Batch VM backup: batch backup large numbers of VMs managed by vCenter Server or standalone ESXi hosts.

 Backup cleanup: Configure a retention policy to auto delete old backup files and save storage space.

 Restore to new locationrestore entire VM to the same or another datastore/host directly from the backup, saving the trouble of re-configuring the new VM.

restore vm

Summary

The IP command is a Linux net-tool for system and network administrators. In this article, we offer information on how to check an IP address in Linux using multiple methods.

Crystal
Crystal · Editor
Crystal is an editor from AOMEI Technology. She mainly writes articles about virtual machine. She is a positive young lady likes to share articles with peolpe. Off work she loves travelling and cooking which is wonderful for life.