Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using ip, what does LOWER_UP mean?

Tags:

linux

terminal

ip

When using the terminal tool ip, there is a number of flags for every interface.

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

The meaning of BROADCAST, MULTICAST and UP is clear, but what does LOWER_UP mean? I tried to google for this, but I didn't find a clear answer. When another host is connected to this link, then state goes to UP, when it disconnects, state goes to DOWN and LOWER_UP disapears. Does this have something to do with the connection state?

EDIT:

I have found another interesting fact. When I set the connected interface to down (via ip link set eth0 down) on the other host (cable stays connected), the output changes to

1: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000

Then the UP flag is still present, but not the LOWER_UP. Shouldn't it be the opposite way?

like image 799
Liachtei Avatar asked Apr 19 '16 10:04

Liachtei


People also ask

What is QLEN in Linux?

qlen is the default transmit queue length of the device measured in packets. The interface flags are summarized in the angle brackets. UP -- the device is turned on. It is ready to accept packets for transmission and it may inject into the kernel packets received from other nodes on the network.

What is Valid_lft?

valid_lft indicates the lifetime of the IP address. preferred_lft indicates the lifetime of the IP address, which can be used as a source IP address (IPv6 only). Let's say you want to use an IP address for 10 seconds. ip addr add 192.168.4.244/23 dev eth0 valid_lft 10 preferred_lft 10. 192.168.

How do I enable a network port in Linux?

How to Enable a Network Interface. The “up” or “ifup” flag with interface name (eth0) activates a network interface if it is not inactive state and allowing to send and receive information. For example, “ifconfig eth0 up” or “ifup eth0” will activate the eth0 interface.


2 Answers

LOWER_UP is a physical layer link flag (the layer below the network layer, where IP is generally located). LOWER_UP indicates that an Ethernet cable was plugged in and that the device is connected to the network.

LOWER_UP differs from UP, which additionally requires the network interface to be enabled.

like image 54
mort Avatar answered Sep 21 '22 11:09

mort


It's described in man netdevice(7), but not much meaningful to me:

IFF_LOWER_UP      Driver signals L1 up (since Linux 2.6.17) 

These comments are from linux/if.h header file (in enum net_device_flags).

like image 38
pevik Avatar answered Sep 21 '22 11:09

pevik