Issue
How can I check in bash scripting if the ethernet cards are linked in a Linux OS
id='dv4'>
Solution
Some form like this may work for you
ip -o link | grep NO_CARRIER
This checks to make sure every network interface (even logical ones) has a connection
ip
from iproute2-o
show output on one line (per interface) to simplify forgrep
link
show information about links
Answered By - ti7 Answer Checked By - Candace Johnson (WPSolving Volunteer)