You are not logged in.

#1 2013-07-15 23:56:35

felixnigh7
Member
Registered: 2013-07-15
Posts: 12

My internet connection keeps disconecting on start up

I've been running arch all summer and just recently my pc is having connection issues that I can't figure out.  Sometimes when I use

systemctl start dhcpcd@enp6s0

systemctl enable dhcpcd@enp6s0

systemctl restart dhcpcd@enp6s0

I get a connection for a few minutes, then it drops out.  I have been using the network Configuration wiki page, and I have tried and re-tried steps 1-6.  I don't feel like a I have enough experience to debug this on my own and would appreciate the help.

Offline

#2 2013-07-16 00:55:34

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: My internet connection keeps disconecting on start up

Welcome to Arch. Could you link to the steps you said you tried? I'm not sure what you are referring to on https://wiki.archlinux.org/index.php/Network so it is a bit hard to guess what you might have tried.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2013-07-16 01:21:14

felixnigh7
Member
Registered: 2013-07-15
Posts: 12

Re: My internet connection keeps disconecting on start up

cfr wrote:

Welcome to Arch. Could you link to the steps you said you tried? I'm not sure what you are referring to on https://wiki.archlinux.org/index.php/Network so it is a bit hard to guess what you might have tried.

no problem.

1. I first pinged google, and 8.8.8.8, and got "unknown host error". 
2. I have set a hostname, I think i did this when I first installed the os, i called it arch. 
3. I then checked the driver status with

$ lspci -v

and

$ dmesg | grep atl1c

4. skipped this section because I don't get errors with step 3
5. next I found the device names, my ethernet connection is called enp6s0.  Then I use

# ip link set enp6s0 up

then

$ ip link show dev enp6s0

which says

2: enp6s0: <NO-CARRIER<BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT qlen 1000
           link/ether bc:ae:c5:10:b3:5a brd ff:ff:ff:ff:ff:ff

I'm guessing this is where the problem lays because when I try to configure the IP address it gives me errors, which are

Job for dhcpcd@enp6s0.service failed. see 'systemctl status dhcpcd@enp6s0.serice' and 'journalctl -xn' for details

Offline

#4 2013-07-16 01:49:59

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: My internet connection keeps disconecting on start up

felixnigh7 wrote:

I'm guessing this is where the problem lays because when I try to configure the IP address it gives me errors, which are

Job for dhcpcd@enp6s0.service failed. see 'systemctl status dhcpcd@enp6s0.serice' and 'journalctl -xn' for details

So? Did you take that advice?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2013-07-16 02:13:45

felixnigh7
Member
Registered: 2013-07-15
Posts: 12

Re: My internet connection keeps disconecting on start up

cfr wrote:
felixnigh7 wrote:

I'm guessing this is where the problem lays because when I try to configure the IP address it gives me errors, which are

Job for dhcpcd@enp6s0.service failed. see 'systemctl status dhcpcd@enp6s0.serice' and 'journalctl -xn' for details

So? Did you take that advice?

Yup, i did

systemctl status dhcpcd@enp6s0.service

and got

dhcpcd@enp6s0.service - dhcpcd on enp6s0
Loaded: loaded )/usr/lib/systemd/system/dhcpcd@.service; enabled)
Active: inactive (dead)

Jul 15 15:17:29 arch systemd[1]: Starting dhcpcd on enp6s0...
Jul 15 15:17:29 arch systemd[1]:PID file /run/dhcpcd-enp6s0.pid not readable (yet?) after start.
Jul 15 15:17:29 arch systemd[1]:Failed to start dhcpcd on enp6s0

and with

journalctl -xn

  I get

--Logs begin at tue 2013-06-04, end at Mon 2013-07-15 --
Jul 15 arch NetworkManager[290]: <info> (eth0): deactivating device (reason 'none')[0]
Jul 15 arch dhcpcd[301]: eth0: removing ip address 192.168.1.110/24
Jul 15 arch kernal: hid-generic 0003:1532:0111.0002 can't reset device, 0000:00:1d.0-1.1/input1, status -32

i do not know what to do with this information.

Last edited by felixnigh7 (2013-07-16 02:26:04)

Offline

#6 2013-07-16 02:53:01

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: My internet connection keeps disconecting on start up

I see two serious problems. 

2: enp6s0: <NO-CARRIER<BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT qlen 1000

Does the "NO-CARRIER" go away after you place the card up?  A lack of carrier is usually an indication of a hardware issue (bad cable, bad switch or hub, or your NIC)

The second issue is that you seem to be trying to run NetworkManager concurrently with the dhcpcd  systemd service.   If you are using Network Manager, let it handle dhcpcd.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#7 2013-07-16 03:17:31

felixnigh7
Member
Registered: 2013-07-15
Posts: 12

Re: My internet connection keeps disconecting on start up

ewaller wrote:

I see two serious problems. 

2: enp6s0: <NO-CARRIER<BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT qlen 1000

Does the "NO-CARRIER" go away after you place the card up?  A lack of carrier is usually an indication of a hardware issue (bad cable, bad switch or hub, or your NIC)

I've tested it on windows 8 and it can connect to the internet, thank god it's not a hardware issue.

The second issue is that you seem to be trying to run NetworkManager concurrently with the dhcpcd  systemd service.   If you are using Network Manager, let it handle dhcpcd.

I uninstalled network manager, and nm-applet, and it works now! although this is a temporary solution, it is a step in the right direction.

thanks

Offline

#8 2013-07-16 03:28:41

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: My internet connection keeps disconecting on start up

Why is that only temporary?  Would you prefer to use network manager?

If so, you should be able to reinstall it and just disable any other services you have trying to connect.  Having multiple services trying to manage connectivity is a very common (the most common?) problem leading to sporadic disconnections.

Last edited by Trilby (2013-07-16 03:29:01)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2013-07-16 04:41:50

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: My internet connection keeps disconecting on start up

Beware that if you didn't disable the service before uninstalling, there is the possibility that reinstalling will rebreak your system since "enable" simply creates a symlink that points to the service file.  Reinstall networkmanager, and that symlink will no longer be dangling...

Offline

Board footer

Powered by FluxBB