Product : ClearOS 7 Community Edition
--------------------------------------------------
My Setup
------------
enp2s0 - External [DHCP , Connected to 4G Router ]
enp3s0 - External [DHCP , Connected to 4G Router ]
enp4s0 - LAN [Static ]
Issue in Detail
------------------
Here in my environment, internet disconnection happens very often & need manual router-restart to restore internet ( Additional Info : running a script using cron-job every 2 minutes , to get a beep on disconnection).
Load balancing( Priority is 1 for each) & fail-over everything working fine. But sometimes, after restarting router on disconnection of internet to re-establish service, the interface is continuously showing offline.( In such situation, I connected another PC directly to 4G Router to ensure that internet service is established in router).
My Observation:
--------------------
In above situation If I am updating the interface ( In Menu : Network > Settings > Multi-WAN > Edit > Update) , then the interface became changing status to In-Use.
Kindly lead some light on this issue ..
- Arun
I don't think the cronjob script in not relevant in this issue , but updating that also for here..
--------------------------------------------------
My Setup
------------
enp2s0 - External [DHCP , Connected to 4G Router ]
enp3s0 - External [DHCP , Connected to 4G Router ]
enp4s0 - LAN [Static ]
Issue in Detail
------------------
Here in my environment, internet disconnection happens very often & need manual router-restart to restore internet ( Additional Info : running a script using cron-job every 2 minutes , to get a beep on disconnection).
Load balancing( Priority is 1 for each) & fail-over everything working fine. But sometimes, after restarting router on disconnection of internet to re-establish service, the interface is continuously showing offline.( In such situation, I connected another PC directly to 4G Router to ensure that internet service is established in router).
My Observation:
--------------------
In above situation If I am updating the interface ( In Menu : Network > Settings > Multi-WAN > Edit > Update) , then the interface became changing status to In-Use.
Kindly lead some light on this issue ..
- Arun
I don't think the cronjob script in not relevant in this issue , but updating that also for here..
#!/bin/bash
SERVERIP=8.8.8.8
ping -c 3 -I enp2s0 $SERVERIP > /dev/null 2>&1
if [ $? -ne 0 ]
then
counter=1
while [ $counter -le 20 ]
do
echo -en "\a" > /dev/console
sleep 1
echo -en "\a" > /dev/console
sleep 3
((counter++))
done
fi
In Multi-WAN
Share this post:
Responses (7)
-
Accepted Answer
Duncan Colhoun wrote:
Do your external interfaces need to be given DHCP addresses? Try giving them static address (as they are private ips) to prevent any delay in them being assigned an IP
Dear All,
I was testing since morning , after assigning static IPs for the external interfaces( LAN was already static ) . Tested all most 16 times, by rebooting routers. In all attempt 'off-Line' status is changing to 'In-Use' autocratically without any issues.
I really appreciate Mr.Nick Howitt & Mr. Duncan Colhoun for helping me in this issue. ( Dear Mr.Nick Howitt , I will try to update the drivers in near future as you suggested ).
(My next goal is to set-up a relay mechanism with serial-port to reboot the router without human intervention in case of internet disconnections, If anyone having such a system,please PM me ) .
Thanks once again to all in our Community.
- Arun -
Accepted Answer
RTL8111/8168/8411 do not work well with the stock r8169 driver which can cause all sorts of problems which can be very hard to diagnose. Just search this thread for r8168 and you'll see a range of issues including this current one. Realtek (NIC chip manufacturers) produce their own r8168 driver for the card. If you use it you will need to recompile it every time you get a minor kernel update. The kmod version of the drivers come are the stock drivers with some kabi compatibility added by ElRepo - have a look at their site including FAQ's. This means their drivers should normally survive minor kernel updates (e.g any kernel updates for ClearOS 7.x) without needing to be recompiled. For some reason the r8168 driver has never made it to the Linux kernel.
The reason I ask you to install 2 drivers is that the kmod-r8169 driver removes compatibility between your NIC and the r8169 driver. This means ClearOS can no longer select the r8169 driver for this NIC. Otherwise it sees both the r8168 and r8169 driver as compatible and sometimes selects the wrong one.
Give Duncan's idea of fixed WAN IP's a go as well. You never know if it will help.
Your routers may support bridge mode. The Revision C manual under the 4G LTE / 3G pages has a Transparent Bridge setting. It does not appear in the earlier Revision B but could conceivably have appeared in a firmware update. -
Accepted Answer
Nick Howitt wrote:
Please can you install the kmod-r8168 and kmod-r8169 drivers from here then reboot. Then can you confirm that the driver in use is the r8168 and not the r8169 by running "lspci -k" again.
Also please confirm your WAN subnets are 255.255.255.0 or give the output of:iconfig | grep ^e -A 1
Hi Nick Howitt,
This is a live system, so I am bit afraid to update drivers . Is there any issues for the current driver?. What are the advantages of this suggested one ?. -
Accepted Answer
Please can you install the kmod-r8168 and kmod-r8169 drivers from here then reboot. Then can you confirm that the driver in use is the r8168 and not the r8169 by running "lspci -k" again.
Also please confirm your WAN subnets are 255.255.255.0 or give the output of:iconfig | grep ^e -A 1
-
Accepted Answer
1.)
2.)
[root@gateway ~]# lspci -k | grep Eth -A 3
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
Subsystem: TP-LINK Technologies Co., Ltd. TG-3468 Gigabit PCI Express Network Adapter
Kernel driver in use: r8169
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
Subsystem: TP-LINK Technologies Co., Ltd. TG-3468 Gigabit PCI Express Network Adapter
Kernel driver in use: r8169
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
Subsystem: Lenovo Device 3098
Kernel driver in use: r8169
[root@gateway ~]#
3.)
I think my router ( D-Link DWR-921) don't have bridge-mode option. -
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »