Linux

sysfs ethernet link status

구차니 2023. 5. 17. 10:13

 

# cat /sys/class/net/eth0/operstate
up
# macb e000b000.ethernet eth0: Link is Down
# cat operstate 
down
# macb e000b000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
# cat operstate
up

[링크 : https://serverfault.com/questions/15776/how-to-check-the-physical-status-of-an-ethernet-port-in-linux]

저작자표시 (새창열림)