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.
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
If this command returns something, the eth0 device is UP.
ip link show eth0 up
© 2024 OneMinuteCode. All rights reserved.