Wired network still shows as up via powerline adapter

Kernels & Hardware, configuring network, installing services

Wired network still shows as up via powerline adapter

Postby Jethro_UK » 2019-08-10 14:36

I'm running a Debian 10 machine with 2 network interfaces. eth2 and wlan1

I'm struggling through all the guides about bonding, and have discovered a wrinkle that means teh bonding failover won't work.

The problem is that eth2 is using a powerline network adapter, which still shows as "up" (i.e. carrier present) even when the network it connects to is down. This means that when it's network falls over, the machine still thinks eth2 is UP and won't failover to wlan1.

Disconnecting the cable or switching the plug off removes the carrier and the failover works.

Is there another way to set the eth2 as DOWN based on (maybe) a ping failure ?
Jethro_UK
 
Posts: 24
Joined: 2014-08-12 09:31

Re: Wired network still shows as up via powerline adapter

Postby arzgi » 2019-08-11 14:09

I've used this script to check if online
Code: Select all
#!/bin/bash

wget -q --tries=5 --timeout=10 --spider http://google.com
if [[ $? -eq 0 ]]; then
        #do what ever
fi


Of course, you could reverse it to see when net drops. Then I would use cron to run the script at desired intervals, Yea, I'm old shcooler, should learn systemd timers :cry:
arzgi
 
Posts: 454
Joined: 2008-02-21 17:03
Location: Finland


Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable