What are common `ip a` flags?

The ip a command displays network interface information along with various flags that indicate the status and capabilities of each interface. Here are some common flags you might encounter:

  1. UP: Indicates that the interface is active and operational. If this flag is absent, the interface is down.

  2. DOWN: Indicates that the interface is not operational. This flag is typically seen when the interface is disabled.

  3. BROADCAST: Indicates that the interface supports broadcast communication, allowing it to send packets to all devices on the network.

  4. MULTICAST: Indicates that the interface supports multicast communication, allowing it to send packets to multiple specified recipients.

  5. LOOPBACK: Indicates that the interface is a loopback interface, which is used for internal communication within the host (e.g., lo with IP 127.0.0.1).

  6. LOWER_UP: Indicates that the physical link is up, meaning the interface is connected to a network.

  7. NO-CARRIER: Indicates that the interface is not connected to a network, often seen in interfaces that are down or not plugged in.

  8. PROMISC: Indicates that the interface is in promiscuous mode, meaning it will receive all packets on the network segment, not just those addressed to it.

Example Output

Here’s an example of how these flags might appear in the output of ip a:

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default

In this example:

  • UP and LOWER_UP indicate that the interface is active and connected.
  • BROADCAST and MULTICAST show that the interface can handle broadcast and multicast traffic.

Understanding these flags helps you diagnose network issues and manage your network interfaces effectively. If you have more questions or need further clarification, feel free to ask!

0 Comments

no data
Be the first to share your comment!