What are other parts of `ip addr show`?

091

The output of the ip addr show command includes several key parts for each network interface. Here’s a breakdown of the main components:

  1. Interface Index:

    • Example: 1: lo:
    • This indicates the index number of the interface and its name (e.g., lo for loopback).
  2. 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.
  3. MTU (Maximum Transmission Unit):

    • Example: mtu 65536
    • This specifies the maximum size of packets that can be transmitted over the interface.
  4. Qdisc (Queueing Discipline):

    • Example: qdisc noqueue
    • This indicates the queuing method used for packet transmission.
  5. State:

    • Example: state UNKNOWN
    • This shows the current state of the interface (e.g., UP, DOWN, UNKNOWN).
  6. Link Layer Information:

    • Example: link/ether 00:00:00:00:00:00
    • This displays the MAC address of the interface.
  7. IPv4 Address:

    • Example: inet 192.168.1.10/24
    • This shows the IPv4 address assigned to the interface, along with the subnet mask.
  8. Broadcast Address:

    • Example: brd 192.168.1.255
    • This indicates the broadcast address for the network.
  9. Scope:

    • Example: scope global
    • This indicates the scope of the address (e.g., global, link, host).
  10. Valid Lifetime and Preferred Lifetime:

    • Example: valid_lft forever preferred_lft forever
    • These indicate how long the address is valid and preferred for use.

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!

0 Comments

no data
Be the first to share your comment!