You are not logged in.

#1 2013-06-14 13:11:53

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

Manual wireless setup: netctl failure with ath9k

I'm using a HP ProBook 4535s. I have Ethernet working, and I would like to configure my wireless connection so it works alongside it (e.g., as a failover; however, I first want to get it working before considering setting up a failover system). My wireless interface is called wlo1, based on the output of ip link, and according to lspci, I believe I'm using ath9k. Following the wiki, I modprobed ath9k. I have also set up my configuration files (see below). However, when I unplug my Ethernet cable, I cannot connect to the Internet.

Here is /etc/netctl/wlo1:

Description='A simple WPA encrypted wireless connection using a static IP'
Interface=wlo1
Connection=wireless
Security=wpa
ESSID='stefan'
Key='[removed]' # I do not include the brackets in the actual key.
IP=static
Address='192.168.0.19/24'
Routes=('default via 192.168.0.1') # Not sure about this line
Gateway='192.168.0.1'
DNS=('192.168.0.1')
# Uncomment this if your ssid is hidden
#Hidden=yes

Here is the result after I've done sudo ip link set wlo1 down; sudo netctl start wlo1:

Job for netctl@wlo1.service failed. See 'systemctl status netctl@wlo1.service' and 'journalctl -xn' for details.

Here is sudo journalctl -xn:

-- Logs begin at Sun 2013-05-26 06:51:34 EDT, end at Fri 2013-06-14 05:06:37 EDT. --
Jun 14 05:06:01 archstefan network[521]: Could not set gateway '192.168.0.1' on interface 'wlo1'
Jun 14 05:06:01 archstefan kernel: wlo1: deauthenticating from 00:13:10:80:b8:18 by local choice (reason=3)
Jun 14 05:06:01 archstefan kernel: cfg80211: Calling CRDA to update world regulatory domain
Jun 14 05:06:01 archstefan network[521]: Failed to bring the network up for profile 'wlo1'
Jun 14 05:06:01 archstefan systemd[1]: netctl@wlo1.service: main process exited, code=exited, status=1/FAILURE
Jun 14 05:06:01 archstefan systemd[1]: Failed to start Networking for netctl profile wlo1.
-- Subject: Unit netctl@wlo1.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
-- 
-- Unit netctl@wlo1.service has failed.
-- 
-- The result is failed.
Jun 14 05:06:01 archstefan systemd[1]: Unit netctl@wlo1.service entered failed state.
Jun 14 05:06:01 archstefan sudo[515]: pam_unix(sudo:session): session closed for user root
Jun 14 05:06:37 archstefan sudo[581]: stefan : TTY=pts/1 ; PWD=/home/stefan/Desktop ; USER=root ; COMMAND=/usr/bin/journalctl -xn
Jun 14 05:06:37 archstefan sudo[581]: pam_unix(sudo:session): session opened for user root by stefan(uid=0)

Here is my Ethernet configuration, in /etc/netctl/ethernet-static:

Description='A basic static ethernet connection'
Interface=enp1s0
Connection=ethernet
IP=static
Address=('10.0.0.19/255.255.255.0')
Routes=('default via 10.0.0.254')
Gateway='10.0.0.254'
DNS=('10.0.0.254')

## For IPv6 autoconfiguration
#IP6=stateless

## For IPv6 static address configuration
#IP6=static
#Address6=('1234:5678:9abc:def::1/64' '1234:3456::123/96')
#Routes6=('abcd::1234')
#Gateway6='1234:0:123::abcd'

A few notes: I believe I am using WPA2, though I'm not sure how to check whether I'm using WPA or WPA2. Also, I've tried using NetworkManager and wifi-menu to automatically set up wifi, but neither worked.

Thanks in advance,
sirciny

Offline

#2 2013-06-14 13:15:50

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

Re: Manual wireless setup: netctl failure with ath9k

Are you making sure to stop all other network services when you start up a new one?  That is, you are trying to use netctl to connect to ths profile, which actually starts a netctl@.service.  But if you still have dhcpcd@.service or another netctl ethernet profile running, they will conflict and something is bound to fail.  Check waht yuo have going with systemctl and see if there are thigns that might be conflicting.

Offline

#3 2013-06-14 13:33:25

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

Re: Manual wireless setup: netctl failure with ath9k

No; I haven't been aware of that. Here's what I just tried:

  498  sudo systemctl stop network.service
...
  501  sudo ip link set wlo1 down
  502  sudo netctl start wlo1
...
  507  netctl list
...
  509  sudo netctl stop-all
...
  511  sudo ip link set wlo1 down
...
  513  sudo ip link set enp1s0 down
  514  sudo netctl start wlo1

Here is the output of journalctl -xn:

-- Logs begin at Sun 2013-05-26 06:51:34 EDT, end at Fri 2013-06-14 05:29:20 EDT. --
Jun 14 05:29:15 archstefan network[908]: Could not add address '192.168.0.19/24' to interface 'wlo1'
Jun 14 05:29:15 archstefan kernel: wlo1: deauthenticating from 00:13:10:80:b8:18 by local choice (reason=3)
Jun 14 05:29:15 archstefan kernel: cfg80211: Calling CRDA to update world regulatory domain
Jun 14 05:29:15 archstefan network[908]: Failed to bring the network up for profile 'wlo1'
Jun 14 05:29:15 archstefan systemd[1]: netctl@wlo1.service: main process exited, code=exited, status=1/FAILURE
Jun 14 05:29:15 archstefan systemd[1]: Failed to start Networking for netctl profile wlo1.
-- Subject: Unit netctl@wlo1.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
-- 
-- Unit netctl@wlo1.service has failed.
-- 
-- The result is failed.
Jun 14 05:29:15 archstefan systemd[1]: Unit netctl@wlo1.service entered failed state.
Jun 14 05:29:15 archstefan sudo[902]: pam_unix(sudo:session): session closed for user root
Jun 14 05:29:20 archstefan sudo[971]: stefan : TTY=pts/4 ; PWD=/home/stefan ; USER=root ; COMMAND=/usr/bin/journalctl -xn
Jun 14 05:29:20 archstefan sudo[971]: pam_unix(sudo:session): session opened for user root by stefan(uid=0)

Is network.service the only other service I need to tell systemctl to stop?

Offline

Board footer

Powered by FluxBB