LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-03-2023, 05:30 PM   #1
Butternut
LQ Newbie
 
Registered: Feb 2023
Posts: 7

Rep: Reputation: 0
LAN Networking problem: only connects occasionally and randomly


Dear Linux users and administrators,

I have the following problem.

I have installed Linux mint 21 xfce on my computer. It's a desktop. It doesn't seem to have a network card.
I have a Lan network which works fine with other laptops, but not on this one. Connection is random, some times it's fine, other times impossible.

Here are the result of a few networking commands.

ip a

l: lo: <LOOPBACK, UP, lower_up> MTU 65536 qdisk noqueue state Unknown group default qlen 1000
Link/ LOOPBACK 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
Valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
Valid_lft forever preferred_lft forever

So I enabled multicast after reading on a forum that it might help.

Ifconfig lo

Lo: flags=4169<up,loopback,running,multicast> MTU 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0×10<host>
Loop txqueue 1000 (local loopback)
RX packets 1981 bytes 153310 (153.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1981 bytes 153310 (153.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

One thing about my network: it's actually Lan via electric power cables. Not that that should make a difference as it works with my other laptops. I tried quite a few things such a setting up link set lo down, then up again and toggling the options under IP link command but to no avail.

Thank you for your help.
 
Old 02-04-2023, 03:55 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Quote:
It doesn't seem to have a network card.
The machine does or does not have a network device? If it doesn't then there will be no network to it.

If it does, what device is it? Is there a kernel module loaded for it?
Code:
lspci -k
What network manager are you using, and how do you have it configured?

Can you bring up the ethernet interface manually.

Example, use your own device names, IP addresses, routes.
Code:
ip link set enp2s0 up

ip address add 192.168.0.2/24 broadcast + dev enp2s0

ip route add default via 192.168.0.1 dev enp2s0
Need a lot more info.

https://linuxmint.com/documentation.php
https://linuxmint-installation-guide...test/help.html
https://community.linuxmint.com/tutorial/search
https://www.systranbox.com/how-to-se...for-beginners/
https://www.itzgeek.com/how-tos/linu...inux-mint.html
 
Old 02-04-2023, 08:55 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Quote:
One thing about my network: it's actually Lan via electric power cables.
I assume that you have a power line adapter that connects to the desktop with a ethernet cable or maybe USB?

As stated the output of the ip command does not show an ethernet adapter. If it works sometimes and not others it maybe the adapter is failing or maybe using a bad driver. As posted we need to know the adapter type because it isn't displayed in the output of the ip command. FYI lo is a virtual network adapter used by some services that communicate between each other on the system itself and not anything outside of your physical PC.
 
Old 02-05-2023, 04:01 AM   #4
Butternut
LQ Newbie
 
Registered: Feb 2023
Posts: 7

Original Poster
Rep: Reputation: 0
Hello, I have a ethernet line coming from an adapter on the power lines. It works fine with my laptop.

Here is the outcome of lspci
Attached Thumbnails
Click image for larger version

Name:	Capture d’écran_2023-02-05_10-51-38.png
Views:	6
Size:	166.2 KB
ID:	40403  
 
Old 02-05-2023, 04:08 AM   #5
Butternut
LQ Newbie
 
Registered: Feb 2023
Posts: 7

Original Poster
Rep: Reputation: 0
Ok so I do have a networking device.

It worked again so I ran ip link show.

Device is called enp3s0

I doubt that it's a hardware broblem because it has never failed on me during a running session. Only on startup
Attached Thumbnails
Click image for larger version

Name:	Capture d’écran.png
Views:	4
Size:	48.1 KB
ID:	40404  
 
Old 02-05-2023, 04:16 AM   #6
Butternut
LQ Newbie
 
Registered: Feb 2023
Posts: 7

Original Poster
Rep: Reputation: 0
I am using Networkmanager applet version 1.24.0

It's the default one that comes with Linux 21 xfce.
 
Old 02-05-2023, 04:24 AM   #7
Butternut
LQ Newbie
 
Registered: Feb 2023
Posts: 7

Original Poster
Rep: Reputation: 0
Hi.

Now that the network is up, here is the result of lspci
Attached Thumbnails
Click image for larger version

Name:	ethernetdevice.png
Views:	12
Size:	172.1 KB
ID:	40405  
 
Old 02-05-2023, 05:01 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
If the ethernet adapter only works sometimes at startup then it is probably a hardware problem. If it would always appear in the output of the lspci command then I might agree it was something else.

I assume the ethernet is a built in device on the motherboard so you can either purchase use a USB or PCI adapter.
 
Old 02-06-2023, 04:50 AM   #9
Butternut
LQ Newbie
 
Registered: Feb 2023
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you everyone for your help.

I bought a pci ethernet card, it works like a charm.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] wireless connection connects randomly is ever hedron Linux - Wireless Networking 9 09-09-2015 07:35 PM
Joystick and USB issue, randomly connects, also caused a mouse issue. tim.sloane Linux - Hardware 1 08-08-2012 09:05 AM
Linux randomly freezes. So does Pacman, occasionally. lupusarcanus Linux - Software 5 05-01-2011 12:58 AM
How to boot to run level 1 if I only want to do it occasionally? ricardo_ok Slackware 19 04-09-2004 05:53 PM
"Init 1" hangs, but only occasionally mfeat Red Hat 0 10-18-2003 11:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration