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?
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.
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 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.
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.
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
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With