Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Wired network still shows as up via powerline adapter

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Jethro_UK
Posts: 37
Joined: 2014-08-12 09:31

Wired network still shows as up via powerline adapter

#1 Post by Jethro_UK »

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 ?

arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: Wired network still shows as up via powerline adapter

#2 Post by arzgi »

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:

Post Reply