You are not logged in.
Hello.
I really have one problem after another ...
This time I can't get my wireless connection at my dormitory working properly. I can ping my gateway, but I am unable to ping any website. When I use a hostname (e.g. www.univie.ac.at) I get a "unknown host" error and when I use an IP address (e.g. 131.130.1.78 that's the ip address i get from www.hostip.com for www.univie.ac.at) the error "Destination Host unreachable" is reported. As I can ping my gateway I suppose WPA2 is working.
Information about my wireless network:
static
gateway: 192.168.1.1
dns1: 192.168.1.1
dns2: 192.168.1.5
chooseable IP: 192.168.1.x for x > 2 (I tried x=4 and x=7)
/etc/rc.conf
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="mobile"
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
#
# DHCP: Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
#eth0="dhcp"
INTERFACES=(!eth0)
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.1"
ROUTES=(!gateway)
# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
NETWORKS=(heim)
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network net-profiles @netfs @crond hal fam alsa slim)
/etc/networ.d/heim
CONNECTION="wireless"
DESCRIPTION="WLAN im Studentenheim"
INTERFACE=wlan0
HOSTNAME="mobile"
# Interface Settings (use IP="dhcp" for DHCP)
IP="static"
IFOPTS="192.168.1.4 netmask 255.255.255.0 broadcast 192.168.1.255"
GATEWAY="192.168.1.1"
# DHCP Example
#IP=dhcp
#DHCP_TIMEOUT=20 # Default is 10.
#DHCP_OPTIONS="" # Extra arguments for dhcpcd
# DNS Settings (optional)
DOMAIN=localdomain
DNS1=192.168.1.1
DNS2=192.168.1.5
SEARCH=
# Standard Wireless Settings
ESSID="Faine Kueche"
SECURITY="wpa-config" # One of wep, wpa, wpa-config, none
# Scans to see if network is available before connecting (reccomended)
SCAN="YES"
# Time to wait to connect to a network. Default 15.
TIMEOUT=15
# Pass *custom* options to iwconfig. Usually not needed (optional)
IWOPTS="essid $ESSID"
# Any extra arguments for wpa_supplicant
WPA_OPTS="-Dwext"
# For SECURITY='wpa-config' only - filename of a wpa-supplicant config
WPA_CONF="/etc/wpa_supplicant.conf"
/etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
eapol_version=1
ap_scan=1
fast_reauth=1
#My dormitory network
network={
priority=1
ssid="Faine Kueche"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
#psk=<censored>
psk=<censored>
}
#The following network is NOT my dormitory network, it is my working university network
network={
priority=0
ssid="eduroam"
proto=WPA
key_mgmt=WPA-EAP
pairwise=TKIP CCMP
group=TKIP CCMP
eap=PEAP MSCHAPV2
phase2="auth=MSCHAPV2"
identity=<censored>
password=<censored>
}
/etc/hosts
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 mobile.localdomain mobile
# End of file
/etc/resolv.conf
# Generated by dhcpcd from wlan0
# /etc/resolv.conf.head can replace this line
search univie.ac.at
nameserver 131.130.1.11
nameserver 131.130.1.12
# /etc/resolv.conf.tail can replace this line
#The nameservers for my dormitory network
nameserver 192.168.1.1
nameserver 192.168.1.5
I have a D-Link DWL-G630 (RaLink RT2561/RT61 rev B 802.11g) with the rt2x00-rt61-fw and the drivers are
[root@mobile ~]# lsmod | grep rt
rt61pci 20224 0
crc_itu_t 3840 1 rt61pci
rt2x00pci 8192 1 rt61pci
rt2x00lib 27136 2 rt61pci,rt2x00pci
rfkill 10008 1 rt2x00lib
led_class 5508 1 rt2x00lib
mac80211 158876 2 rt2x00pci,rt2x00lib
cfg80211 25224 2 rt2x00lib,mac80211
eeprom_93cx6 3840 1 rt61pci
parport_pc 36804 1
parport 33004 3 ppdev,lp,parport_pc
iTCO_vendor_support 4996 1 iTCO_wdt
agpgart 30804 2 drm,intel_agp
rtc_cmos 11424 0
rtc_core 17564 1 rtc_cmos
rtc_lib 4480 1 rtc_core
I am glad to read any answers.
Greetings,
hauntergeist
Last edited by hauntergeist (2008-10-25 08:06:54)
Offline
I am now in my dormitory and .... I managed to ping a website!!!
But I dont know why it works! I booted Arch as usual, my network profile "heim" started successfully and then I tried to ping the gateway first (successfully) and then any other website (failed). Then I opened firefox and tried to access the router 192.168.1.1 (I know that it is useless since I dont have the password etc., but I was frustrated) and suddenly - after I tried some passwords - I got to a new login page, you know, not just a box with username and password appears, but a real login-website (from the router). And then I tried to ping any website and it worked!
EDIT: While I wrote this post, I lost my connection, i.e. I reached the gateway but not a website. And suddenly ... I gained access to the Internet again ... I dont understand it.
I looked at route and got
[root@mobile ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
default vood.lan 0.0.0.0 UG 0 0 0 wlan0
instead of the usual output
[root@mobile ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
---some delay---
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
Here the output of ifconfig and iwconfig.
ifconfig wlan0
[root@mobile ~]# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:1E:58:A2:56:80
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21e:58ff:fea2:5680/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:575 errors:0 dropped:0 overruns:0 frame:0
TX packets:609 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:221383 (216.1 Kb) TX bytes:138414 (135.1 Kb)
and iwconifg wlan0
[root@mobile ~]# iwconfig wlan0
wlan0 IEEE 802.11bg ESSID:"Faine Kueche"
Mode:Managed Frequency:2.462 GHz Access Point: 00:1C:10:88:73:08
Bit Rate=1 Mb/s Tx-Power=14 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:<censored> [2] Security mode:open
Power Management:off
Link Quality=72/100 Signal level:-48 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
Offline
Sounds like a DNS problem.
The
---some delay---
Is route attempting to do a reverse DNS lookup on your gateway. And by returning just the ip (192.168.1.1) it's failed.
You can see when it worked, "vood.lan" - it managed to get a name.
If you keep having problems, try changing your DNS config around a bit.
James
Offline
But what should or can I change about my DNS config? The administrator of the router gave me 192.168.1.1 as the default nameserver and 192.168.1.5 as the alternative one and I already entered them in /etc/resolv.conf respectively in the network profile.
Offline
maybe it has s.th to do with this:
http://wiki.mandriva.com/en/2009.0_Erra … timestamps
Offline
Wow ... it helped.
I cant say it for sure. To test it I would have to restart my notebooke several times, etc. But what I can say is that I started the notebook, opened firefox and got "server bla not found ...". Then I entered sysctl -w net.ipv4.tcp_timestamps=0, reloaded the site and it worked.
I'll wait to mark this thread as solved (it may be just coincidence, that the config change and internet availability happened simultaneously).
Thank you, both slazZ and iphitus, very much for your help. When I now have persistent internet, I am freaking out *wohoo*
Greetings,
hauntergeist
Offline
Ok, i am not freaking out as after one and a half hour later my internet connection broke down again. I think the sysctl-thing was not the solution.
Offline
Hy hauntergeist,
did you solve the problem right now? Because i have the same issue...
I figured out that this problem only occurs when netcfg connects the net profile during the boot.
If you disconnect your profile and afterwards connect it again, it will work flawlessly!
I played around with my profile and add some quirks or disabled the dhclient, but this had no effect.
I run arch (x86) on a Samsung laptop with an intel 4965AGN network chipset.
The problem occurs the first time after the kernel update from 2.6.26 to 2.6.27...
Has anybody a hint??
GreeTz, WeeZel
Offline
Although I can't help you with your problem I have a hint:
/etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel
ctrl_interface got a new structure some time ago and should now be changed to this for configuration of wlan by wheel group members:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
Offline
Thanks for your reply, inkaine!
I changed the line in the wpa_supplicant.conf, but it does not work!
The issue, after a reboot, is the same!
GreeTz, WeeZel
Offline
maybe try "sudo route add default gw (ipadresseofgateway)", dunno if it will help but you could give it a try!
Offline
@Weezel
I solved the problem, but you won't like the answer. The one who is responsible for the internet connection of my dormitory encountered some errors of the internet connection and changed the router. Since then everything works fine. So for me it was apparently a hardware issue. Do not know if this applies to your situation. Maybe you can try another router from a friend of yours or so ...
Offline