Logo

dev-resources.site

for different kinds of informations.

How to read ip addr output on Linux

Published at
12/31/2024
Categories
ubuntu
pikotutorial
Author
pikotutorial
Categories
2 categories in total
ubuntu
open
pikotutorial
open
Author
12 person written this
pikotutorial
open
How to read ip addr output on Linux

Welcome to the next pikoTutorial !

ip command was designed to replace older networking tools like ifconfig, route or netstat. To show all the network interfaces use command:

ip addr
Enter fullscreen mode Exit fullscreen mode

Example output:

1: lo: <LOOPBACK,UP,LOWER_UP> 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
Enter fullscreen mode Exit fullscreen mode

In the output you can find a bunch of useful information about each of the interfaces:

  1. 1: lo - interface index and name (lo stands for loopback)
  2. <LOOPBACK,UP,LOWER_UP> - statuses of the interface. For other interfaces, you may find here values like BROADCAST, MULTICAST etc.
  3. mtu 65536 - the maximum transmission unit size for the interface (in this case it's 65536 bytes, but e.g. for Ethernet networks 1500 is a typical value)
  4. qdisc noqueue - the queuing discipline
  5. state UNKNOWN - state of the interface (here UNKNOWN, but for other interfaces may be UP or DOWN)
  6. group default - group name that this interface belongs to
  7. qlen 1000 - length of the transmit queue (in this case it's 1000 packets)
  8. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 - MAC address and broadcast address
  9. inet 127.0.0.1/8 scope host lo - IPv4 address with netmask (127.0.0.1/8) scope (host)
  10. inet6 ::1/128 scope host - IPv6 address with netmask (::1/128) and scope (host)
ubuntu Article's
30 articles in total
Favicon
Configurar servidor de archivos local con Ubuntu y Samba
Favicon
How to install Jenkins in ubuntu
Favicon
Update WSL Ubuntu password
Favicon
Change keyboard to Spanish distribution on Ubuntu Server
Favicon
How to Automate CI/CD Pipelines with GitHub Actions
Favicon
Critical Section Problem: Process Synchronization
Favicon
Reader Writer Problem: Process Synchronization
Favicon
Protection and Security: Operating System
Favicon
Storage Management: Operating System
Favicon
Getting Cilium to work on Ubuntu Cloud Image
Favicon
Process Management: Operating System
Favicon
KillPy: The Tool to Clean Up Your Python Virtual Environments 🧹🐍
Favicon
Introduction to Operating System
Favicon
Comprehensive Guide: Setting Up Gestures on Linux (Debian-Based Distributions)
Favicon
Ubuntu Linux Commands Categorized
Favicon
How to Set Up OpenShift Local (CRC) on Ubuntu: A Developer's Guide
Favicon
Fixing OpenVPN Connection Issues in Ubuntu 24.04
Favicon
How to Install MySQL on Ubuntu
Favicon
How to read ip addr output on Linux
Favicon
Enhancing Outdoor Adventures: How Technology Brings You Closer to Nature
Favicon
Memory Management: Operating System
Favicon
How to Change the Background in Ubuntu Terminal
Favicon
How to Install Wireshark on Ubuntu
Favicon
Process Synchronization and Deadlock: Operating System
Favicon
Implementasi Infrastruktur Jaringan Virtual dengan Protokol OSPF
Favicon
วิธีติดตั้งและกำหนดค่าเบื้องต้นสำหรับเซิร์ฟเวอร์ DNS บน Ubuntu 22.04 LTS แบบง่าย ๆ
Favicon
How to Fix No Internet Connection in Digital Ocean's Droplet
Favicon
การทำ HTTPS ด้วย Certbot และ Nginx บน Ubuntu Server
Favicon
Short: User Data file for Ubuntu based AWS ec2 instance with docker and docker compose.
Favicon
How to Change Your Password Securely

Featured ones: