Objective
The objective is to retrieve a local IP address on Ubuntu 18.04 Bionic Beaver Linux using Graphical user interface or terminal command line
Operating System and Software Versions
- Operating System: – Ubuntu 18.04 Bionic Beaver
- Software: – GNOME GUI
Requirements
No special requirements are needed.
Conventions
- # – requires given linux commands to be executed with root privileges either directly as a root user or by use of
sudo
command - $ – requires given linux commands to be executed as a regular non-privileged user
Other Versions of this Tutorial
Instructions
Command Line
Let’s start by using the terminal to display your internal IP address. Open up terminal and execute:
$ ip a 1: lo:mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp0s3: mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 08:00:27:2f:a4:ad brd ff:ff:ff:ff:ff:ff inet 10.1.1.4/8 brd 10.255.255.255 scope global dynamic enp0s3 valid_lft 84760sec preferred_lft 84760sec inet6 fe80::db46:468e:e4cf:be5/64 scope link valid_lft forever preferred_lft forever
Locate your interface eg. enp0s3
and search for the IP address. Reading the above ip
command output our IP address is 10.1.1.4
. Additional information included is MAC address 08:00:27:2f:a4:ad
and network mask 10.255.255.255
.

Graphical User Interface
Using your GUI interface navigate to Settings->Network
. Once in the network settings window locate your connected Wired/Wireless interface and click on the gearwheel icon:

Additional information includes the gateway/default route IP address eg. 10.1.1.1
and the DNS server IP address eg. 10.1.1.1
.