The output of the ip addr show command includes several key parts for each network interface. Here’s a breakdown of the main components:
-
Interface Index:
- Example:
1: lo: - This indicates the index number of the interface and its name (e.g.,
lofor loopback).
- Example:
-
Flags:
- Example:
<LOOPBACK,UP,LOWER_UP> - These flags show the status of the interface. Common flags include:
UP: The interface is active.DOWN: The interface is inactive.LOOPBACK: Indicates a loopback interface.
- Example:
-
MTU (Maximum Transmission Unit):
- Example:
mtu 65536 - This specifies the maximum size of packets that can be transmitted over the interface.
- Example:
-
Qdisc (Queueing Discipline):
- Example:
qdisc noqueue - This indicates the queuing method used for packet transmission.
- Example:
-
State:
- Example:
state UNKNOWN - This shows the current state of the interface (e.g.,
UP,DOWN,UNKNOWN).
- Example:
-
Link Layer Information:
- Example:
link/ether 00:00:00:00:00:00 - This displays the MAC address of the interface.
- Example:
-
IPv4 Address:
- Example:
inet 192.168.1.10/24 - This shows the IPv4 address assigned to the interface, along with the subnet mask.
- Example:
-
Broadcast Address:
- Example:
brd 192.168.1.255 - This indicates the broadcast address for the network.
- Example:
-
Scope:
- Example:
scope global - This indicates the scope of the address (e.g.,
global,link,host).
- Example:
-
Valid Lifetime and Preferred Lifetime:
- Example:
valid_lft forever preferred_lft forever - These indicate how long the address is valid and preferred for use.
- Example:
These components provide a comprehensive overview of the network interface's configuration and status. If you have more questions or need further details, feel free to ask!
