You are not logged in.

#1 2013-08-21 12:47:15

rabcor
Banned
Registered: 2013-02-09
Posts: 500

[Solved/Bug]Hard time getting my wireless to work with netctl

I'm wondering what is up. I have a very fresh (no WM yet) arch linux install on a laptop i intend to use at school, needless to say i can't use it there unless i got proper wireless.

Would you suggest i just switch to wicd? (i'm more familiar with wicd, but as i recall i think i had this set up and working fine with netcfg once upon a time.)

anyways i'll tell you what i've got.

#ip link
1: lo:...
2: enp0s25:....
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT qlen 1000
    link/ether 00:27:10:a5:2b:28 brd ff:ff:ff:ff:ff:ff

contents of /etc/netctl/profile

Description='Description'
Interface=wlp3s0
Connection=wireless
Security=wpa

IP=dhcp

ESSID='MySsid1'
Key='My number-only WPA-PSK'

i try to start the profile.

#netctl start profile
Job for netctl@profile.service failed. See 'systemctl status netctl@profile.service' and 'journalctl -xn' for details.
#journalctl -xn
.... Starting Networking for netctl profile profile....
....
The interface of network profile 'profile' is already up
netctl@profile.service: main process exited, code=exited, status=1/FAILURE
Failed to start Networking for netctl profile profile.
...
The result is failed.
Unit netctl@profile.service entered failed state.

i tried according to the wiki using

#wifi-menu -o

to automatically generate a profile to see if i was doing something wrong, but no profile was generated (at least not inside /etc/netctl/)

The only 2 programs i've installed apart from the core that came with the pacstrap last night are 'dialog' (for wifi-menu) and wpa_supplicant (with no particular configuration). Am i missing a dependency or doing something wrong?

Last edited by rabcor (2013-08-21 13:15:05)

Offline

#2 2013-08-21 13:11:59

rabcor
Banned
Registered: 2013-02-09
Posts: 500

Re: [Solved/Bug]Hard time getting my wireless to work with netctl

I noticed that if i use an ethernet connection, it gave me a similar error when i had IPv6 Dhcp enabled, but IPv6 was not set to stateless as-well. i removed the ipv6 dhcp and it started, and then i enabled both the dhcp and stateless on ipv6 and it worked.

I added the following to /etc/netctl/profile

(below IP=dhcp)

IP6=dhcp
IP6=stateless

note: wpa_supplicant is a requirement to connect to wireless networks but doesn't get automatically installed upon install.

and everything works fine now. (this is definetly odd, since i copied the profile "/etc/netctl/examples/wireless-wpa" and then just edited whats in there with my settings. The example files for wireless probably need to be updated)

Last edited by rabcor (2013-08-21 13:19:19)

Offline

#3 2013-08-21 13:19:54

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: [Solved/Bug]Hard time getting my wireless to work with netctl

This has happened to me before. I get around it by bringing down my wireless interface with:

 # ip link set <my interface> down 

I then give the netctl start command. Normally I just use netctl-auto though. I've never actually been able to connect with wifi-menu - it never generates a correct profile for me. But I'll keep the generated profile, edit it as necessary, and restart netctl. Usually that works fine.

Offline

#4 2013-08-21 13:50:18

rabcor
Banned
Registered: 2013-02-09
Posts: 500

Re: [Solved/Bug]Hard time getting my wireless to work with netctl

I'll be using both ethernet and wireless on this laptop at random pretty much, i'm now scratching my head over how i can make it use ethernet anytime it's connected but otherwise look for a wireless network.

I'm not understanding how that bonding thing works, so i don't know if i can rely on it for that purpose or not.

This would be no problem if the whole thing was better designed. I need 1 extra dependency (ifplugd) to be able to automate switching between ethernet profiles and another(wpa_actiond) to be able to do the same for wireless profiles, i don't want to start both of them because it would most likely have a heavy impact on my boot time. all i want it to do is choose between dhcp ethernet or two different wireless connections. hmm

i was kindof hoping i could trick netctl-ifplugd into runing netctl-auto if it fails.

Last edited by rabcor (2013-08-21 13:56:47)

Offline

Board footer

Powered by FluxBB