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