Forum › Forums › New users › New Users and General Questions › Internet Connection Lost as Ethernet Stablished between 2Laptops on Same network
- This topic has 10 replies, 5 voices, and was last updated Jun 15-4:27 pm by anticapitalX.
-
AuthorPosts
-
January 9, 2025 at 4:35 am #165937
MrPythoner
MemberHi everyone,
I’m experiencing a networking issue with my setup and need some help resolving it.
Current Setup:
– Two laptops connected to the same WiFi router/network
– Direct Ethernet cable connection between the two laptops
– Both laptops running antiX 23Issue:
When both laptops are connected to WiFi and working fine.


when enabling wired causes the internet connection to drop completely. As shown in my ping tests, I get “Destination Host Unreachable” errors when trying to reach external addresses like google.com.What I’ve already observed:
1. WiFi works perfectly when Ethernet is disconnected
2. The network manager shows both WiFi and Ethernet connections as “Connected”
3. The ping test shows packets being sent but failing to reach external destinationsWhat I’m trying to achieve:
I want to maintain both connections simultaneously:
– WiFi connection for internet access
– Ethernet connection between laptops for direct file sharing/Barrier Component sharingI have Already Stablished barrier with wired connection , but the problem I am facing was existed before barrier installation .
I want to handle this situation properly .
I want to both be enabled .
please help me


- This topic was modified 1 year, 8 months ago by MrPythoner.
- This topic was modified 1 year, 8 months ago by MrPythoner.
January 9, 2025 at 4:47 am #165939abc-nix
MemberSet up the ethernet connection with /etc/network/interfaces on both machines. Once it is set up in /etc/network/interfaces, connman should not be able to manage it and will continue to manage the wireless network instead.
My setup isn’t identical to yours (I use network manager), but it should work similarly. /etc/network/interfaces will take control of the ethernet connection to transfer data, while connman/nm will manage wifi internet connection. And I have both machines connected through ethernet, and both have internet connection through wifi.
- This reply was modified 1 year, 8 months ago by abc-nix.
Corruption has two hands: the Right and the Left. Don't let them squeeze you.
January 9, 2025 at 4:52 am #165941MrPythoner
MemberI have manualy set Ip address for Master : 190.254.241.2
and …241.1 for slave .

- This reply was modified 1 year, 8 months ago by MrPythoner.
- This reply was modified 1 year, 8 months ago by MrPythoner.
- This reply was modified 1 year, 8 months ago by MrPythoner.
January 9, 2025 at 4:59 am #165944MrPythoner
Member#165939
Reply | Quote
abc-nix
ModeratorSet up the ethernet connection with /etc/network/interfaces on both machines. Once it is set up in /etc/network/interfaces, connman should not be able to manage it and will continue to manage the wireless network instead.
My setup isn’t identical to yours (I use network manager), but it should work similarly. /etc/network/interfaces will take control of the ethernet connection to transfer data, while connman/nm will manage wifi internet connection. And I have both machines connected through ethernet, and both have internet connection through wifi.
Master: #------------------------------------------------------------------------------ # /etc/network/interfaces # # interfaces(5) file used by ifup(8) and ifdown(8) # Used by ceni but not by connman #------------------------------------------------------------------------------ auto lo iface lo inet loopback Slave: #------------------------------------------------------------------------------ # /etc/network/interfaces # # interfaces(5) file used by ifup(8) and ifdown(8) # Used by ceni but not by connman #------------------------------------------------------------------------------ auto lo iface lo inet loopbackThis is the content of /etc/network/interfaces of both machines .
I have no idea what or how could I change these files in order to fix the problemJanuary 9, 2025 at 5:07 am #165947abc-nix
MemberOn master, add this to the file:
# ethernet Master auto eth0 iface eth0 inet static address 190.254.241.2 netmask 24On Slave:
# ethernet slave auto eth0 iface eth0 inet static address 190.254.241.1 netmask 24Reboot on both machines and test the connection.
- This reply was modified 1 year, 8 months ago by abc-nix.
Corruption has two hands: the Right and the Left. Don't let them squeeze you.
January 9, 2025 at 5:33 am #165957MrPythoner
MemberSlave :
#------------------------------------------------------------------------------ # /etc/network/interfaces # # interfaces(5) file used by ifup(8) and ifdown(8) # Used by ceni but not by connman #------------------------------------------------------------------------------ auto lo iface lo inet loopback # ethernet slave auto eth0 iface eth0 inet static address 190.254.241.1 netmask 24Rebooted both systems .
problem presists .
please help .- This reply was modified 1 year, 8 months ago by MrPythoner.
- This reply was modified 1 year, 8 months ago by MrPythoner.
Attachments:
January 9, 2025 at 5:40 am #165961PPC
Memberaddress 190.254.241.1
This is not my kind of thing but: did you remember to change and save the “Master”‘s address, so they are not both *.242.1 ?
EDIT: opening the attached image allowed me to confirm that you did that. I’m out of ideas, so I’ll just shut up and not get in your way.
P.
- This reply was modified 1 year, 8 months ago by PPC.
January 9, 2025 at 5:42 am #165963abc-nix
MemberSorry. I forgot to explain how to blacklist the eth0 connection on connman (not sure if there is a GUI way, I just assumed it was easy to do in cmst).
sudo nano /etc/connman/main.conf
and find the value for NetworkInterfaceBlacklist. Set it to eth0
NetworkInterfaceBlacklist=eth0(EDIT: uncomment so the variable is recognized)
Save.
Then reboot.
- This reply was modified 1 year, 8 months ago by abc-nix.
Corruption has two hands: the Right and the Left. Don't let them squeeze you.
January 9, 2025 at 5:55 am #165965Robin
MemberTwo additional thoughts:
1st: If you have both network devices (eth0 and wlan0) assigned to the same subnet 190.254.241.x , the system won’t know how to reach the internet, since the default gateway is then expected to be reachable via both connections. The ethernet connection has no access to the Internet, so this must fail. Try setting the direct ehternet connection on both PCs to a private Network address, like e.g. 192.168.178.x or 10.0.0.x, different from the one used for your default internet connection via WLAN.
2nd: Enter the proper gateway for your internet connection in Connman IPv4 config, and also the name server in the respective tab. Otherwise the system won’t know whether to connect to the internet using eth0 or wlan0.
(And then, maybe you need to add the respective private subnet IP address of the other device to your hosts file vice versa, so the other machine can be accessed without asking a name server.)
Whether or not you need then a network bridge set up on our master to reach the internet from the slave depends on your network topology. In your case it should be able to reach the internet directly on his own, so no need for a network bridge (which would make it necessary to add the additional internal network to your router config.)
Should work with Connman, I did that some time ago, and it worked fine for me.
Windows is like a submarine. Open a window and serious problems will start.
January 9, 2025 at 12:31 pm #166021MrPythoner
MemberTwo steps by @abc-nix
and the problem is gone.
Please mark this thread as SOLVED .also I need to mention , I had to remove all barrier configs , and reconfigure barrier to properly work .
Thank you @robin and @abc-nix .
Thank you antiX forum team .June 15, 2026 at 4:27 pm #206615anticapitalX
MemberI ran into a very similar problem today (Ethernet connection active, internet lost). I found an even simpler solution that doesn’t require editing /etc/network/interfaces or /etc/connman/main.conf . I’m sharing it here in case it helps others.
Here’s what worked for me:
Steps:
- Connect to both your Wi‑Fi and wired network.
- Open cmst (Connman UI).
- Go to the first tab (Status). You’ll see three sections.
- In the third section (Services), locate your connected networks.
- Click on your Wi‑Fi network.
- At the bottom of the window, click “Move before”.
- From the selection menu, choose your Ethernet network.
After doing this, your Wi‑Fi network becomes the first entry in the Services list. That effectively gives it higher priority for internet routing – no config file changes needed.
—–
hint
1-Move after / before only activates when you click on the service .
2- in the attachment screenshot , i have already moved my wifi connection to the topAgain, thanks to everyone who contributed to the original solution. I hope this alternative helps someone looking for a quick GUI fix.
- This reply was modified 3 months, 1 week ago by anticapitalX.
Attachments:
Let's accept antiX as it is
Pure and Elegant by its nature -
AuthorPosts
- You must be logged in to reply to this topic.

