/proc/sys/net...linkup confirmation

Asked 2 years ago, Updated 2 years ago, 126 views

Sorry for the vague question, but
Raspberry Pi3 (OS: Raspbian 8.0) is currently checking the status around the network.
When eth0, a wired NIC, becomes available,
The question is which directory values change...

I'm looking around /proc/sys/net, but it doesn't make sense.
I would appreciate it if you could give me your opinion that it might be around here.
I look forward to your kind cooperation.

raspberry-pi raspbian

2022-09-30 16:59

2 Answers

If you would like to check below /proc, how about referring to this number because /proc/net/dev records the amount of transmission per NIC?

>cat/proc/net/dev
Inter- | Receive | Transmit
 face | bytes packets errs drop Fifo frame compressed multicast | bytes packets errs drop Fifo colls carrier compressed
    lo —2530 14200 0 2530 14200 0
  eth0:4730 118 0 330 120 48 2883 11 00 00
  eth1 —0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0


2022-09-30 16:59

If this command returns something, the eth0 device is UP.

 ip link show eth0 up


2022-09-30 16:59

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.