You are not logged in.
Hello everyone!
I just installed Arch Linux on my Netbook and configured my internet connection. First everything ran very well but then I tried to establish an internet connection from my room (2 floors above the router). I just wasn't able to get an IP!
I searched for a solution and found out that maybe dhcpcd causes the problem so I decided to install NetworkManager which uses dhclient ( also it's easier to use than running 'wifi-menu' everytime I want to connect to a new network ).
But there I get the exact same problem.
I used elementary os on this Netbook before and everything worked fine. I got an IP adress everytime and it didn't even take long to get it as it is now. Elementary OS uses NetworkManger too. Does anyone have an idea what I could've done wrong?
I just find an dhclient.conf.example in /etc/ and no dhclient.conf
The content of my /etc/NetworkManger/NetworkManager.conf is:
[main]
plugins=keyfile
Thanks in advance!
TheRatze94
Last edited by TheRatze94 (2013-02-12 12:02:14)
Offline
If the problem appears only when you are far from the router, I would say this is an hardware problem. I know there exists some antenna for wireless but I couldn't say more.
Offline
My suggestion is to use a live cd for Elementary OS and look at the dhclient.conf, then translate it to your system so that you are using the same settings. Alternately, have a look at the dhclient.conf man page and test out various configuration options and see what works for you:
I laugh, yet the joke is on me
Offline
Yes, as the sad clown has already indicated, it would help if we/you knew what the differences were between the settings of the two operating systems you are attempting to connect with. If no differences are present (that is, elementary os uses defaults), you may be looking at differences in the module being used for your wireless card. What is your wireless chipset, as I used to have a Realtek, and besides it rather sucking on Linux in general, it did seem to work slightly better on various live media than it did with Arch and the in-tree kernel module.
Offline
It would help if you could either change your subject line or re-explain your problem as the issue of distance doesn't seem to come up in the explanation you give and I'm not at all clear if you have 2 problems, 1 problem or some unknown number of problems.
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
Use something like wicd, and if the router you are connecting to is <50% link you aren't going to get it. You need another router or a booster/extender.
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
Hang on, could Arch be using a built-in driver and Elementary a proprietory one?
Offline
Thanks for the replies!
@nomorewindows: I tried wicd before and had the same problem. Also elementary os had no problem with a 50% signal.
@all :
Arch and elementary os load exactly the same kernel module:
iwlwifi
The dhclient.conf (which doesn't exist on my system) looks like that:
# Configuration file for /sbin/dhclient, which is included in Debian's
# dhcp3-client package.
#
# This is a sample configuration file for dhclient. See dhclient.conf's
# man page for more information about the syntax of this file
# and a more comprehensive list of the parameters understood by
# dhclient.
#
# Normally, if the DHCP server provides reasonable information and does
# not leave anything out (like the domain name, for example), then
# few changes must be made to this file, if any.
#
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
send host-name "<hostname>";
#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
#send dhcp-lease-time 3600;
#supersede domain-name "fugue.com home.vix.com";
#prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers,
dhcp6.domain-search, dhcp6.fqdn,
dhcp6.name-servers, dhcp6.sntp-servers;
#require subnet-mask, domain-name-servers;
#timeout 60;
#retry 60;
#reboot 10;
#select-timeout 5;
#initial-interval 2;
#script "/etc/dhcp3/dhclient-script";
#media "-link0 -link1 -link2", "link0 link1";
#reject 192.33.137.209;
#alias {
# interface "eth0";
# fixed-address 192.5.5.213;
# option subnet-mask 255.255.255.255;
#}
#lease {
# interface "eth0";
# fixed-address 192.33.137.200;
# medium "link0 link1";
# option host-name "andare.swiftmedia.com";
# option subnet-mask 255.255.255.0;
# option broadcast-address 192.33.137.255;
# option routers 192.33.137.250;
# option domain-name-servers 127.0.0.1;
# renew 2 2000/1/12 00:00:01;
# rebind 2 2000/1/12 00:00:01;
# expire 2 2000/1/12 00:00:01;
#}
Also the NetworkManager.conf is different to my system (my NetworkManager.conf is in the first post):
[main]
plugins=ifupdown,keyfile
dns=dnsmasq
[ifupdown]
managed=false
There are more plugins loaded. Could that be the reason?
Last edited by TheRatze94 (2013-02-06 19:47:17)
Offline
What kernel and what firmware is it loading? Even though it uses iwlwifi things may not be quite the same.
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
Sorry for the late reply...
The kernel version is:
uname -a
Linux elementary 3.2.0-32-generic-pae #51-Ubuntu SMP Wed Sep 26 21:54:23 UTC 2012 i686 i686 i386 GNU/Linux
The firmware version is:
sudo dmidecode -s bios-version
V3.09(DDR3)
Offline
Any other differences? Do you have Bluetooth? Is it enabled in Arch bit not elementary?
Also, you say you used elementary "Before" without problem. Is that 5 minutes before, or 5 days before? Could there be a new router, wireless phone, large metal appliance, etc.. on the intervening floor?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Sorry for the late reply...
The kernel version is:
uname -a Linux elementary 3.2.0-32-generic-pae #51-Ubuntu SMP Wed Sep 26 21:54:23 UTC 2012 i686 i686 i386 GNU/Linux
The firmware version is:
sudo dmidecode -s bios-version V3.09(DDR3)
What is the Arch kernel version?
What is the firmware for the wireless device (dmesg)?
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
have you tried to increase transmit power?
txpower
For cards supporting multiple transmit powers, sets the transmit power in dBm. If W is the power in Watt, the power in dBm is P = 30 + 10.log(W). If the value is postfixed by mW, it will be automatically converted to dBm.
In addition, on and off enable and disable the radio, and auto and fixed enable and disable power control (if those features are available).
Examples :
iwconfig eth0 txpower 15
iwconfig eth0 txpower 30mW
iwconfig eth0 txpower auto
iwconfig eth0 txpower off
are you able to transfer data with manual set IP's? Have you captured the traffic and see that the DHCP server sends DHCP offers?
edit:/ the guy below is right. but use -i flag in grep for case insensitiv hits ;-)
Last edited by debijan (2013-02-10 21:20:49)
Offline
Tweaking txpower single-sidedly does not usually do any good, but leads to connection quality problems.
Maybe there are other wifis disturbing now on the channel (like ewaller asks), which were not around when you used elementary?
Maybe its related to IPv6 in your router. Try setting networkmanager to "ignore IPv6".
What does "journalctl -b |grep dhcp" show after it fails to connect?
Offline
@ewaller My Netbook hasn't got Bluetooth. With before i mean that it worked the last 1,5 years. I didn't notice a new router or any other changes.
@nomorewindows The Arch Kernel Version is:
uname -a
Linux ratze-netbook 3.7.5-1-ARCH #1 SMP PREEMPT Mon Jan 28 10:38:12 CET 2013 i686 GNU/Linux
The firmware for the wireless device on Arch is:
dmesg |grep 'firm'
[ 8.752703] iwlwifi 0000:02:00.0: loaded firmware version 39.31.5.1 build 35138
@Strike0 I already disabled IPv6. The output of "journalctl -b|grep -i dhcp":
sudo journalctl -b |grep -i dhcp
Feb 11 11:38:06 ratze-netbook NetworkManager[263]: <info> Activation (wlp2s0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Feb 11 11:38:07 ratze-netbook dhclient[281]: Internet Systems Consortium DHCP Client 4.2.4-P2
Feb 11 11:38:07 ratze-netbook dhclient[281]: For info, please visit https://www.isc.org/software/dhcp/
Feb 11 11:38:07 ratze-netbook NetworkManager[263]: <info> (wlp2s0): DHCPv4 state changed nbi -> preinit
Feb 11 11:38:07 ratze-netbook dhclient[281]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 11:38:14 ratze-netbook dhclient[281]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 11:38:23 ratze-netbook dhclient[281]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 4
Feb 11 11:38:27 ratze-netbook dhclient[281]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 7
Feb 11 11:38:34 ratze-netbook dhclient[281]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 13
Feb 11 11:38:47 ratze-netbook dhclient[281]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 16
Feb 11 11:38:52 ratze-netbook NetworkManager[263]: <warn> (wlp2s0): DHCPv4 request timed out.
Feb 11 11:38:52 ratze-netbook NetworkManager[263]: <info> (wlp2s0): canceled DHCP transaction, DHCP client pid 281
Feb 11 11:38:55 ratze-netbook NetworkManager[263]: <info> Activation (wlp2s0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Feb 11 11:38:55 ratze-netbook dhclient[338]: Internet Systems Consortium DHCP Client 4.2.4-P2
Feb 11 11:38:55 ratze-netbook dhclient[338]: For info, please visit https://www.isc.org/software/dhcp/
Feb 11 11:38:55 ratze-netbook NetworkManager[263]: <info> (wlp2s0): DHCPv4 state changed nbi -> preinit
Feb 11 11:38:55 ratze-netbook dhclient[338]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 11:39:01 ratze-netbook dhclient[338]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 11:39:11 ratze-netbook dhclient[338]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 4
Feb 11 11:39:15 ratze-netbook dhclient[338]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 5
Feb 11 11:39:15 ratze-netbook dhclient[338]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 11:39:15 ratze-netbook dhclient[338]: DHCPOFFER from 192.168.2.1
Feb 11 11:39:15 ratze-netbook dhclient[338]: DHCPACK from 192.168.2.1
Feb 11 11:39:15 ratze-netbook NetworkManager[263]: <info> (wlp2s0): DHCPv4 state changed preinit -> bound
Feb 11 11:54:00 ratze-netbook NetworkManager[263]: <info> (wlp2s0): canceled DHCP transaction, DHCP client pid 338
Feb 11 12:00:03 ratze-netbook NetworkManager[263]: <info> Activation (wlp2s0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Feb 11 12:00:03 ratze-netbook dhclient[597]: Internet Systems Consortium DHCP Client 4.2.4-P2
Feb 11 12:00:03 ratze-netbook dhclient[597]: For info, please visit https://www.isc.org/software/dhcp/
Feb 11 12:00:03 ratze-netbook NetworkManager[263]: <info> (wlp2s0): DHCPv4 state changed nbi -> preinit
Feb 11 12:00:03 ratze-netbook dhclient[597]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 12:00:03 ratze-netbook dhclient[597]: DHCPNAK from 192.168.2.1
Feb 11 12:00:03 ratze-netbook NetworkManager[263]: <info> (wlp2s0): DHCPv4 state changed preinit -> expire
Feb 11 12:00:03 ratze-netbook dhclient[597]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 8
Feb 11 12:00:03 ratze-netbook NetworkManager[263]: <info> (wlp2s0): DHCPv4 state changed expire -> preinit
Feb 11 12:00:05 ratze-netbook dhclient[597]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 12:00:05 ratze-netbook dhclient[597]: DHCPOFFER from 192.168.2.1
Feb 11 12:00:06 ratze-netbook dhclient[597]: DHCPACK from 192.168.2.1
Feb 11 12:00:06 ratze-netbook NetworkManager[263]: <info> (wlp2s0): DHCPv4 state changed preinit -> bound
Feb 11 12:05:32 ratze-netbook NetworkManager[263]: <info> (wlp2s0): canceled DHCP transaction, DHCP client pid 597
Feb 11 12:05:37 ratze-netbook NetworkManager[263]: <info> Activation (wlp2s0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Feb 11 12:05:37 ratze-netbook dhclient[639]: Internet Systems Consortium DHCP Client 4.2.4-P2
Feb 11 12:05:37 ratze-netbook dhclient[639]: For info, please visit https://www.isc.org/software/dhcp/
Feb 11 12:05:37 ratze-netbook NetworkManager[263]: <info> (wlp2s0): DHCPv4 state changed nbi -> preinit
Feb 11 12:05:37 ratze-netbook dhclient[639]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 12:05:44 ratze-netbook dhclient[639]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 12:05:54 ratze-netbook dhclient[639]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 8
Feb 11 12:06:02 ratze-netbook dhclient[639]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 9
Feb 11 12:06:11 ratze-netbook dhclient[639]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 14
Feb 11 12:06:22 ratze-netbook NetworkManager[263]: <warn> (wlp2s0): DHCPv4 request timed out.
Feb 11 12:06:22 ratze-netbook NetworkManager[263]: <info> (wlp2s0): canceled DHCP transaction, DHCP client pid 639
Feb 11 12:06:25 ratze-netbook NetworkManager[263]: <info> Activation (wlp2s0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Feb 11 12:06:25 ratze-netbook dhclient[645]: Internet Systems Consortium DHCP Client 4.2.4-P2
Feb 11 12:06:25 ratze-netbook dhclient[645]: For info, please visit https://www.isc.org/software/dhcp/
Feb 11 12:06:25 ratze-netbook NetworkManager[263]: <info> (wlp2s0): DHCPv4 state changed nbi -> preinit
Feb 11 12:06:25 ratze-netbook dhclient[645]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 12:06:32 ratze-netbook dhclient[645]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 12:06:45 ratze-netbook dhclient[645]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 6
Feb 11 12:06:51 ratze-netbook dhclient[645]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 12
Feb 11 12:07:03 ratze-netbook dhclient[645]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 15
Feb 11 12:07:11 ratze-netbook NetworkManager[263]: <warn> (wlp2s0): DHCPv4 request timed out.
Feb 11 12:07:11 ratze-netbook NetworkManager[263]: <info> (wlp2s0): canceled DHCP transaction, DHCP client pid 645
Feb 11 12:12:39 ratze-netbook NetworkManager[263]: <info> Activation (wlp2s0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Feb 11 12:12:39 ratze-netbook dhclient[663]: Internet Systems Consortium DHCP Client 4.2.4-P2
Feb 11 12:12:39 ratze-netbook dhclient[663]: For info, please visit https://www.isc.org/software/dhcp/
Feb 11 12:12:39 ratze-netbook NetworkManager[263]: <info> (wlp2s0): DHCPv4 state changed nbi -> preinit
Feb 11 12:12:39 ratze-netbook dhclient[663]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 12:12:44 ratze-netbook dhclient[663]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 12:12:57 ratze-netbook dhclient[663]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 6
Feb 11 12:13:03 ratze-netbook dhclient[663]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 6
Feb 11 12:13:09 ratze-netbook dhclient[663]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 16
Feb 11 12:13:25 ratze-netbook NetworkManager[263]: <warn> (wlp2s0): DHCPv4 request timed out.
Feb 11 12:13:25 ratze-netbook NetworkManager[263]: <info> (wlp2s0): canceled DHCP transaction, DHCP client pid 663
Feb 11 12:13:28 ratze-netbook NetworkManager[263]: <info> Activation (wlp2s0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Feb 11 12:13:28 ratze-netbook dhclient[669]: Internet Systems Consortium DHCP Client 4.2.4-P2
Feb 11 12:13:28 ratze-netbook dhclient[669]: For info, please visit https://www.isc.org/software/dhcp/
Feb 11 12:13:28 ratze-netbook NetworkManager[263]: <info> (wlp2s0): DHCPv4 state changed nbi -> preinit
Feb 11 12:13:28 ratze-netbook dhclient[669]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 12:13:32 ratze-netbook dhclient[669]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 12:13:37 ratze-netbook dhclient[669]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 12:13:49 ratze-netbook dhclient[669]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 6
Feb 11 12:13:55 ratze-netbook dhclient[669]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 11
Feb 11 12:14:06 ratze-netbook dhclient[669]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 19
Feb 11 12:14:14 ratze-netbook NetworkManager[263]: <warn> (wlp2s0): DHCPv4 request timed out.
Feb 11 12:14:14 ratze-netbook NetworkManager[263]: <info> (wlp2s0): canceled DHCP transaction, DHCP client pid 669
Feb 11 12:14:17 ratze-netbook NetworkManager[263]: <info> Activation (wlp2s0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Feb 11 12:14:17 ratze-netbook dhclient[674]: Internet Systems Consortium DHCP Client 4.2.4-P2
Feb 11 12:14:17 ratze-netbook dhclient[674]: For info, please visit https://www.isc.org/software/dhcp/
Feb 11 12:14:17 ratze-netbook NetworkManager[263]: <info> (wlp2s0): DHCPv4 state changed nbi -> preinit
Feb 11 12:14:17 ratze-netbook dhclient[674]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 12:14:21 ratze-netbook dhclient[674]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 12:14:31 ratze-netbook dhclient[674]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 3
Feb 11 12:14:34 ratze-netbook dhclient[674]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 3
Feb 11 12:14:37 ratze-netbook dhclient[674]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 3
Feb 11 12:14:40 ratze-netbook dhclient[674]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 3
Feb 11 12:14:43 ratze-netbook dhclient[674]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 7
Feb 11 12:14:43 ratze-netbook dhclient[674]: DHCPREQUEST on wlp2s0 to 255.255.255.255 port 67
Feb 11 12:14:43 ratze-netbook dhclient[674]: DHCPOFFER from 192.168.2.1
Feb 11 12:14:43 ratze-netbook dhclient[674]: DHCPACK from 192.168.2.1
Feb 11 12:14:43 ratze-netbook NetworkManager[263]: <info> (wlp2s0): DHCPv4 state changed preinit -> bound
Feb 11 12:15:32 ratze-netbook NetworkManager[263]: <info> (wlp2s0): canceled DHCP transaction, DHCP client pid 674
I hope that could help
Offline
I looked at the elementary os jupiter image and found out that it loads iwlagn.
I tried to load the module in Arch Linux but it isn't available.
Offline
iwlwifi is the successor of iwlagn from kernel 3.2 onwards.
As I read that log it looks like confirming the signal problem. If you look at the last four lines, an IP gets offered from the router, acknowledged, bound, but then it breaks off. Same at 12:05
Try what happens, if you disable wifi-n and bluetooth
modprobe iwlwifi 11n_disable=1 bt_coex_active=0
Offline
Thank you Strike0!
Now i get an ip instantly
For those who have the same problem:
I created a file in /etc/modprobe.d/ :
$ sudo nano wifi.conf
options iwlwifi 11n_disable=1 bt_coex_active=0
Thanks again to everyone!
Offline
wow... congrats :-)
can somebody explain why 802.11n is the problem is here?
because the notebook has no bluetooth :-/
Last edited by debijan (2013-02-13 00:06:37)
Offline
If I am not mistaken, the system had been trying to connect on N, presumably in the 5 GHz band. Disabling N forced the use of G down at 2.5 GHz. There is less attenuation at the 'lower' frequency.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Just to clarify, 11n does not imply 5GHz. You can happily use 2.5GHz band with both 11g and 11n.
Having said that, you never mentioned you card, or signal strength in dBm.
For instance, for intel 5101agn iwlwifi sucks big time (I can vaguely remember iwlagn to work even in 11n mode albeit the card temp was ~80C). In linux using 11n mode I am only able to get ~200KiB/s download speed, while in 11g mode -- 2MiB/s. The same card in win7 achieves 5MiB/s speeds over 11n.
Finally, with the above card, signal strength ~ -75 dBm is enough for a proper operation.
Last edited by Leonid.I (2013-02-13 18:14:31)
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline