You are not logged in.

#26 2013-06-07 02:02:05

T2manner
Member
Registered: 2009-01-28
Posts: 27

Re: [SOLVED]Internet Connection Problem

WonderWoofy wrote:

You probably have multiple things trying to all handle the network at the same time.  This is probably causing a race condition whereby sometimes the right thing (or first thing to finish) is stable enough with that connection to keep it, but sometimes it just totally goes haywire in the chaos.  If this haywire situation occurs, then of course it will not be able to connect unless the offending services are stopped so that they stop all trying to handle that at once.

This sounds likely.  When following the guide for setting up an internet connection, I followed instructions for setting up an ethernet connection and a wifi connection.
I thought setting up both would just allow me to have an ethernet connection when I have ethernet cable plugged in and a wifi connection when I was not using ethernet.  I guess it isn't as simple as that?

Can you help me or at least point me in the right direction to getting this mess straightened out?
thanks

Offline

#27 2013-06-07 02:06:18

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

Re: [SOLVED]Internet Connection Problem

If that means that you tried to set up both dhcpcd@.service and netctl, then yes, those things are going to conflict.  Do "systemctl --type=service" and then check that list out to see what kinds of network management things you have going.  Stop them all, then choose one solution. 

If you want the ability to be able to switch back and forth really easily between ethernet and wifi, then it might be best to go with something like NetworkManager or wicd.  Personally I prefer wicd for that kind of thing.  But since I am more of a WiFi all the time kind of user, I just use either netctl, connman, or NetworkManager (via nmcli) depending on my mood.  The nice thing about wicd though is that you don't actually have to install an applet (in wicd's case it is wicd-gtk) to get super ease of use.  The normal wicd package comes with wicd-curses, which is exactly what it sounds like, a ncurses manager for wicd.

Offline

#28 2013-06-07 02:20:30

T2manner
Member
Registered: 2009-01-28
Posts: 27

Re: [SOLVED]Internet Connection Problem

Thanks for the reply. I'll get on this soon and hopefully mark this thread solved.

Offline

#29 2013-06-07 03:23:21

AnArchist
Member
Registered: 2013-06-06
Posts: 6

Re: [SOLVED]Internet Connection Problem

T2manner wrote:

Hello again.

So now I have completed my installation of arch linux, but I am still having problems with a wifi connection.
I completed the installation with a wired connection, and afterwards, I setup a wireless connection.  Following the beginner's guide, it DID work.
However, my problem now is that sometimes when I boot up, my computer does not connect automatically like I set it up to.  When it does mess up, I can't even seem to manually connect with wifi-menu.

As I mentioned, sometimes it does work and sometimes it doesn't work.
Not a clue as to what is going on.

I installed wicd, a GUI network tool, and I selected "connect automatically" on the connection I wanted and it seems to connect right away everytime I boot.

Good luck to you.

Offline

#30 2013-06-07 04:22:34

T2manner
Member
Registered: 2009-01-28
Posts: 27

Re: [SOLVED]Internet Connection Problem

I ran

systemctl --type=service

to see what was running, and I realized that I had three network services running:

netctl-auto@wlp2s0.service
netctl-ifplugd@enp1s0.service
netctl@my\x2dnetwork.service

I remember setting up netctl-auto and netctl-ifplugd while following the beginner's guide, but I do not remember setting up the last one.  I do have a profile created for wifi called my-network, but I'm not sure if that is what the last one is referring to.

The first service is active and exited.  The second is active and running.  The third is neither active nor running.  I am guessing my problem lies with the last service not running.

I would like to remove all of these services and just start over with a new netctl profile, but I'm not sure how to do this.  I read on the netctl wiki that I can disable services, but I would like to just remove them.  I also tried to disable the services, but it didn't work.  I guess I did it wrong.

Offline

#31 2013-06-07 05:24:36

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

Re: [SOLVED]Internet Connection Problem

Disable and stop all but the one you need.  The last one is created/started when you use "netctl start <network>" which is why netctl is touted as being more integrated with systemd.  So when you try to start a profile, then you are starting a sprofile on top of others. 

If you want to continue using netctl, I would recommend choosing to enable just netctl-auto@wlp2s0 or any netctl@.service.  Then if you plug in an ethernet cable, stop netctl-auto@wlp2s0 and then start whatever you want.  In this case, I would use dhcpcd@enp1s0 just because running dhcpcd on the interface is all you realy need.

Again, if you want to have the funtionality of being able to plug/unplug an ethernet cable at will, then you need to use something else like wicd or NetworManager or connman.  Though connman is still in heavy development and a bit sparse on included coduemntation.

Offline

Board footer

Powered by FluxBB