This question already has an answer here:
Is there a way to check for successful network interface link for multiple interfaces in a bash script before continuing?
Something like:
eth0 eth1 eth2 eth3 network interfaces are brought up
Wait for link detection on all 4 interfaces
Proceed
You can check if the network interfaces' names appear after running
ifconfig -s
.Something like:
Check this link for more details.
To make this test ongoing, you can do something like what @jm666 said: