Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble configuring a wireless network (no extensions)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Wed May 01, 2013 10:42 pm    Post subject: Reply with quote

Code:
ifconfig
# does wireless interface appear # ip address?
Code:
iw wlp3s0 scan
# does it scan?
Code:
iwconfig scan
# does it scan

iw results say it should be working
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Arcenturion
n00b
n00b


Joined: 22 Apr 2013
Posts: 30

PostPosted: Wed May 01, 2013 11:01 pm    Post subject: Reply with quote

DONAHUE wrote:
Code:
ifconfig
# does wireless interface appear # ip address?
Code:
iw wlp3s0 scan
# does it scan?
Code:
iwconfig scan
# does it scan

iw results say it should be working


No, the wireless interface doesn't show an IP address.

i# iw wlp3s0 scan doesn't scan (it says "no such device"

# iwconfig scan doesn't scan

Code:
command failed: Input/output error (-5)


^iw wlp3s0 scan

Code:
scan      No such device


^iwconfig scan

Code:

enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.121  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::21a:6bff:fed0:e21  prefixlen 64  scopeid 0x20<link>
        ether 00:1a:6b:d0:0e:21  txqueuelen 1000  (Ethernet)
        RX packets 8388  bytes 6514932 (6.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7767  bytes 1206568 (1.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xfe000000-fe020000 

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 96  bytes 6416 (6.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 96  bytes 6416 (6.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

sit0: flags=193<UP,RUNNING,NOARP>  mtu 1480
        inet6 ::127.0.0.1  prefixlen 96  scopeid 0x90<compat,host>
        sit  txqueuelen 0  (IPv6-in-IPv4)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 10  dropped 0 overruns 0  carrier 0  collisions 0

wlp3s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 00:13:e8:b1:53:dd  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


^ifconfig

edit: it's not dangerous to have an ip address out like that, right?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Wed May 01, 2013 11:24 pm    Post subject: Reply with quote

no significant danger IMHO

Code:
iwlist scan
my typo

wicd-gtk still fails to start? but produces a good log?
_________________
Defund the FCC.


Last edited by DONAHUE on Wed May 01, 2013 11:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Wed May 01, 2013 11:28 pm    Post subject: Reply with quote

Code:
emerge -s wicd wpa_supplicant dhcpcd dhcp rfkill
which show installed?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Arcenturion
n00b
n00b


Joined: 22 Apr 2013
Posts: 30

PostPosted: Wed May 01, 2013 11:35 pm    Post subject: Reply with quote

DONAHUE wrote:
Code:
emerge -s wicd wpa_supplicant dhcpcd dhcp rfkill
which show installed?


dhcpcd, dhcp, wpa_supplicant, wicd (and the KDE client) are all installed, the rest aren't.

Code:


 
enp0s25   Interface doesn't support scanning.

sit0      Interface doesn't support scanning.

lo        Interface doesn't support scanning.

wlp3s0    Interface doesn't support scanning.


wicd-gtk starts, but detects no wireless networks.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Thu May 02, 2013 12:50 am    Post subject: Reply with quote

Code:
emerge rfkill
rfkill list

_________________
Defund the FCC.
Back to top
View user's profile Send private message
Arcenturion
n00b
n00b


Joined: 22 Apr 2013
Posts: 30

PostPosted: Thu May 02, 2013 12:55 am    Post subject: Reply with quote

DONAHUE wrote:
Code:
emerge rfkill
rfkill list


Code:

0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Thu May 02, 2013 12:59 am    Post subject: Reply with quote

Code:
iwlist scan

??
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Arcenturion
n00b
n00b


Joined: 22 Apr 2013
Posts: 30

PostPosted: Thu May 02, 2013 12:59 am    Post subject: Reply with quote

DONAHUE wrote:
Code:
iwlist scan

??


Code:


enp0s25   Interface doesn't support scanning.

sit0      Interface doesn't support scanning.

lo        Interface doesn't support scanning.

wlp3s0    Interface doesn't support scanning.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Thu May 02, 2013 1:19 am    Post subject: Reply with quote

from cd, preferably sysresccd,
Code:
lspci -nnk
lsusb
take a look for the wireless make model and particularly pciid

example lspci -nnk
Ethernet controller [0200]: Broadcom Corporation NetLink BCM57781 Gigabit Ethernet PCIe [14e4:16b1] (rev 10)
Subsystem: ASRock Incorporation Device [1849:96b1]

example lsub
Bus 001 Device 002: ID 1740:9801 Senao EUB9801 802.11abgn Wireless Adapter [Ralink RT3572]

does your wicd-gtk dialog have "switch on wifi" ?

in /etc/wicd/manager-settings.conf set
Quote:
wpa_driver = nl80211
then run
Code:
 iwlist scan
iw wlp3s0 scan


in /etc/wicd/manager-settings.conf set
Quote:
wpa_driver =wext
then run
Code:
 iwlist scan
iw wlp3s0 scan

_________________
Defund the FCC.
Back to top
View user's profile Send private message
Arcenturion
n00b
n00b


Joined: 22 Apr 2013
Posts: 30

PostPosted: Thu May 02, 2013 2:52 am    Post subject: Reply with quote

DONAHUE wrote:
from cd, preferably sysresccd,
Code:
lspci -nnk
lsusb
take a look for the wireless make model and particularly pciid

example lspci -nnk
Ethernet controller [0200]: Broadcom Corporation NetLink BCM57781 Gigabit Ethernet PCIe [14e4:16b1] (rev 10)
Subsystem: ASRock Incorporation Device [1849:96b1]

example lsub
Bus 001 Device 002: ID 1740:9801 Senao EUB9801 802.11abgn Wireless Adapter [Ralink RT3572]

does your wicd-gtk dialog have "switch on wifi" ?

in /etc/wicd/manager-settings.conf set
Quote:
wpa_driver = nl80211
then run
Code:
 iwlist scan
iw wlp3s0 scan


in /etc/wicd/manager-settings.conf set
Quote:
wpa_driver =wext
then run
Code:
 iwlist scan
iw wlp3s0 scan


Chainging the drivers in manager-settings.conf as you stated didn't work.

lspci -nnk in livecd returned

Make: Kedron
pciid: [8086:4230]

lsusb didn't work in livecd
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Thu May 02, 2013 5:54 am    Post subject: Reply with quote

does your wicd-gtk dialog have "switch on wifi" ? Network Switch on wifi Disconnect all Refresh at the top

Is this wireless NIC known to work?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Arcenturion
n00b
n00b


Joined: 22 Apr 2013
Posts: 30

PostPosted: Thu May 02, 2013 3:01 pm    Post subject: Reply with quote

DONAHUE wrote:
does your wicd-gtk dialog have "switch on wifi" ? Network Switch on wifi Disconnect all Refresh at the top

Is this wireless NIC known to work?


It has a "switch off" wi-fi, although nothing seems to happen when I click on it. It doesn't even react. My Wi-Fi on this laptop worked with Windows, Xubuntu, and Linux Mint.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Thu May 02, 2013 3:25 pm    Post subject: Reply with quote

should shift from switch on wifi to switch off wifi to switch on wifi .....

does dmesg still show multiple
Quote:
loaded firmware version 228.61.2.24
[ 8.395759] ieee80211 phy0: Selected rate control algorithm 'iwl-4965-rs'
[ 124.502074] iwl4965 0000:03:00.0: Error sending C_SCAN: time out after 500ms.
[ 125.872061] iwl4965 0000:03:00.0: Queue 4 stuck for 2004 ms.
[ 125.872065] iwl4965 0000:03:00.0: On demand firmware reload
??
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Arcenturion
n00b
n00b


Joined: 22 Apr 2013
Posts: 30

PostPosted: Thu May 02, 2013 3:38 pm    Post subject: Reply with quote

DONAHUE wrote:
should shift from switch on wifi to switch off wifi to switch on wifi .....

does dmesg still show multiple
Quote:
loaded firmware version 228.61.2.24
[ 8.395759] ieee80211 phy0: Selected rate control algorithm 'iwl-4965-rs'
[ 124.502074] iwl4965 0000:03:00.0: Error sending C_SCAN: time out after 500ms.
[ 125.872061] iwl4965 0000:03:00.0: Queue 4 stuck for 2004 ms.
[ 125.872065] iwl4965 0000:03:00.0: On demand firmware reload
??


Yes. Oh, I should add that the "switch on wifi" button now reacts, although I'm still not getting any wireless networks detected through wicd-gtk.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Thu May 02, 2013 4:21 pm    Post subject: Reply with quote

should have asked after the emerge linux-firmare reload. there is still a firmware problem. or a module interference problem.

try recompiling kernel with menuconfig
Quote:
< > Intel PRO/Wireless 2100 Network Connection
< > Intel PRO/Wireless 2200BG and 2915ABG Network Connection
< > Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimat
<M> Intel Wireless WiFi 4965AGN (iwl4965)
< > Intel PRO/Wireless 3945ABG/BG Network Connection (iwl3945)

_________________
Defund the FCC.
Back to top
View user's profile Send private message
Arcenturion
n00b
n00b


Joined: 22 Apr 2013
Posts: 30

PostPosted: Thu May 02, 2013 8:16 pm    Post subject: Reply with quote

DONAHUE wrote:
should have asked after the emerge linux-firmare reload. there is still a firmware problem. or a module interference problem.

try recompiling kernel with menuconfig
Quote:
< > Intel PRO/Wireless 2100 Network Connection
< > Intel PRO/Wireless 2200BG and 2915ABG Network Connection
< > Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimat
<M> Intel Wireless WiFi 4965AGN (iwl4965)
< > Intel PRO/Wireless 3945ABG/BG Network Connection (iwl3945)


My kernel was already compiled that way. In that specific menu there is no other option filled in.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Thu May 02, 2013 11:41 pm    Post subject: Reply with quote

sorry, looked at the old .config paste
right driver
right firmware
won't scan, keeps reloading firmware, i give
your notebook has a light that says the radio is on?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Arcenturion
n00b
n00b


Joined: 22 Apr 2013
Posts: 30

PostPosted: Sat May 04, 2013 12:30 am    Post subject: Reply with quote

DONAHUE wrote:
sorry, looked at the old .config paste
right driver
right firmware
won't scan, keeps reloading firmware, i give
your notebook has a light that says the radio is on?


It sometimes lights up, and sometimes doesn't. Regardless, I still can't connect even when it lights up.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Sat May 04, 2013 1:07 am    Post subject: Reply with quote

with a kernel less than 3.7 or greater than or equal to 3.8.0 and a usb wireless device ... it would be nice to verify the problem being or not being a dying NIC. Have you tried going wireless on a sysresccd this week?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
n0nuf
n00b
n00b


Joined: 29 Apr 2005
Posts: 5
Location: MO USA

PostPosted: Thu Jun 12, 2014 4:43 am    Post subject: Working Intel Centrino Ultimate-N 6300 (rev 35) on M4500 Reply with quote

Kernel:Gentoo Linux x86_64 Generic 3.12.21-r1

Partition Size Type Description
/dev/sda1 +32M EF02 BIOS boot partition
/dev/sda2 +500M 8300 Boot partition
/dev/sda3 +16G 8200 Swap partition
/dev/sda4 ... 8300 Root partition

# mount /dev/sda4 /mnt/gentoo
# mkdir /mnt/gentoo/boot (might exist)
# mount /dev/sda2 /mnt/gentoo/boot
# mkswap /dev/sda3

# cd /mnt/gentoo

# mount -t proc proc /mnt/gentoo/proc
# mount --rbind /sys /mnt/gentoo/sys
# mount --rbind /dev /mnt/gentoo/dev

# chroot /mnt/gentoo /bin/bash
# source /etc/profile


IMPORTANT: The Intel Centrino Ultimate-N 6300 (rev 35) REQUIRES all kernel wireless modules to be built as MODULES <M> so that firmware can be patched at boot time. On my system, I found that compiling "Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlwifi)" into the kernel prevents the interface from functioning.


1. Install:

These following 4 packages are all you need to enable wireless in frame buffer/cmd line:

# emerge -av net-wireless/wpa_supplicant
# emerge -av sys-apps/dbus
# emerge -av net-misc/dhcpcd
# emerge -av sys-kernel/linux-firmware

# rc-update add dbus default

Note: ( systemd-udevd should be loaded: 'ps -aux | less' to check)
Note: ( linux-firmware: /lib/firmware/iwlwifi-6000-4.ucode ) v9.176.4.1 or v9.221.4.1 works
Note: (/lib is a link to /lib64 on 64bit system)


2. Build Kernel (should be installed):

http://en.gentoo-wiki.com/wiki/Iwlwifi
https://gist.githubusercontent.com/buhman/7162560/raw/27ea1280f4087f6a052aaa51fdfa68ea9cb50ec1/wpa_cli

# cd /usr/src/linux
# make menuconfig

[*] Enable loadable module support

--> Network Support
----> Wireless
------> <M> cfg80211 - wireless configuration API
------> [*] cfg80211 wireless extensions compatibility
------> <M> Generic IEEE 802.11 Networking Stack (mac80211)

--> Device Drivers
----> Generic Driver Options
------> [*] Automount devtmpfs at /dev, after the kernel mounted the roots
------> [*] Include in-kernel firmware blobs in the kernel library
------> [*] Fallback user-helper invocation of firmware loading
----> Network Device Support
------> [*] Ethernet driver support (I selected <M> for all Intel cards JIC)
----> Wireless LAN
------> (I selected <M> on all Intel options in this section)
------> <M> Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlwifi) <- *** MOST IMPORTANT
----> <M> Userspace I/O drivers

Note: I read that some network encryption schemes require the " [*] Cryptographic API " modules for SHA, AES, etc. to be built to support the function. You might want to <M> the options under this branch if that is the case.

# make && make modules_install
# make install

# emerge sys-boot/grub
# grub2-instal /dev/sd-x
# grub2-mkconfig -o /boot/grub/grub.cfg
(to move new kernel into place and hook it up)

3. Create configuration files:

Note: *** I've found that having IPv6 enabled on the wireless interface breaks my wireless network. It is disabled below.

Create or modify the following two files:

# /etc/conf.d/net
modules=“wpa_supplicant”
config_wlp3s0=“dhcp”
wpa_cli_wlp3s0=“-G3600”
wpa_supplicant_wlp3s0=“-Dnl80211”
# *** disable IPv6 for this wireless card ***
enable_ipv6_wlp3s0=“false”
dhcpcd_wlp3s0=“-t 10”
modules_wlp3s0=“dhcpcd”
# end net


# /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/run/wpa_supplicant
# next line should be uncommented so only root can view/modify
# ctrl_interface_group=0
# might set next one to '0' so other programs do not change your config w/o you knowing
update_config=1
fast_reauth=1

# configure the first wireless network:
network={
ssid=“your SSID here”
psk=“your password here”
scan_ssid=1
# higher priority is first to connect
priority=2
}

# configure a second wireless network:
network={
ssid="second wireless network SSID here”
psk=“second wireless network password here”
scan_ssid=1
# higher priority is first to connect - this one connects before previous
priority=5
}
# add third, fourth, etc. as needed...
# end wpa_supplicant


4. Test:

After emerging, building kernel/modules, and editing these two files you can test by manually loading wpa_supplicant with the following and testing with wpa_cli:

# wpa_supplicant -Dnl80211 -iwlp3s0 -c/etc/wpa_supplicant/wpa_supplicant.conf -B -f/var/log/wpa_supplicant.log

Note: -D is driver. -i is interface. -c is config. -B is background. -f is logging.

https://wiki.archlinux.org/index.php/Wpa_supplicant
http://linux.die.net/man/5/wpa_supplicant.conf

# wpa_cli
> help


Ok, there you have it. Hours of surfing through the net looking for the correct settings and configurations. I hope this saves someone some time and frustration.

-S
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum