You are not logged in.

#1 2013-10-11 09:35:23

Zagorax
Member
Registered: 2013-10-11
Posts: 5

Debug help: wifi connected but no connection available

Hi,

I've just installed arch on a computer and followed many wiki guides, but still unable to get WiFi working properly. My final aim is to share WiFI connection over ethernet. Everything is already set up (dnsmasq, ip forwarding and so on).

I've two network interfaces, eth0 and wlan0. Eth0 is configured via systemd, while wlan0 is managed via wicd.

# ifconfig wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 131.114.40.180  netmask 255.255.252.0  broadcast 131.114.43.255
        ether 14:d6:4d:48:b0:cd  txqueuelen 1000  (Ethernet)
        RX packets 29289  bytes 1803534 (1.7 MiB)
        RX errors 0  dropped 3323  overruns 0  frame 0
        TX packets 188  bytes 34608 (33.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

As you can see, wlan0 is correctly connected to its access point (note: unconventional ip address and netmask are because I'm using university connection). Default gateway is 131.114.40.1 and I can correctly ping it.

Nameservers are correctly set up by Wicd:

# cat /etc/resolv.conf 
# Generated by resolvconf
nameserver 131.114.21.25
nameserver 131.114.21.15

But nameservers are not the problem, since I'm not even able to ping anything but my local network even by ip address. And connection is realiable, since I'm writing from another computer connected to the same network.

Could you please help me to find the problem?

Thank you in advance.

Offline

#2 2013-10-11 15:42:53

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,354

Re: Debug help: wifi connected but no connection available

If I understand, you want to share your Wireless connection over the Wired Connection.  For now, the wired connection is not relevant.

Please post the output of ip route
When you say you cannot ping outside of your local network, does that mean you can see other machines on 131.114.4x.xxx  netmask 255.255.252.0  ??


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

#3 2013-10-11 16:08:10

Zagorax
Member
Registered: 2013-10-11
Posts: 5

Re: Debug help: wifi connected but no connection available

Here is the output of ip route:

default via 10.42.0.1 dev eth0 
default via 131.114.40.1 dev wlan0  metric 305 
10.42.0.0/24 dev eth0  proto kernel  scope link  src 10.42.0.1 
131.114.40.0/22 dev wlan0  proto kernel  scope link  src 131.114.40.180  metric 305 
131.114.40.180 via 127.0.0.1 dev lo  metric 305 

To be honest, I'm able to ping my gateway, i.e. 131.114.40.1, but every other address is unreachable, which is quite strange since many other people are surely using the same connection. So, I can't properly confirm that I can ping my network.

Offline

#4 2013-10-11 17:18:27

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,354

Re: Debug help: wifi connected but no connection available

Okay, it looks like you've two default routes.  Your wired network is 10.42.x.x and your system is trying to follow the first route to the Internet.  Unfortunately, that is a dead end.

Two things you can do.  First, play with ip route delete to get rid of the default via 10.42.0.1 dev eth0
I am guessing that the command would be ip route delete default via 10.42.0.1 dev eth0 But I am probably wrong smile  Read man ip-route

If that works, and you still have the default via 113.114.x.x, you should be good to go.
Then, to make it permanent, go to your netcfg config for eth0 and remove the default gateway.


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

#5 2013-10-13 08:30:20

Zagorax
Member
Registered: 2013-10-11
Posts: 5

Re: Debug help: wifi connected but no connection available

Thanks. That was the problem. smile

Offline

Board footer

Powered by FluxBB