Showing posts with label network. Show all posts
Showing posts with label network. Show all posts

Thursday, January 5, 2012

Network Manager hangs "waiting for authorisation"

The symptoms: a wireless network connection that normally connects without problems sometimes, maybe after suspension, hangs with the status "waiting for authorisation". There is no window asking for a password anywhere (the network manager should anyway have the password). This seems like a bug. Two home made solutions:

  • Reboot your router
    It just works.

  •  

  • New Connection
    This seems to be a working permanent solution. It involves re-creating the connection as public connection. Maybe not all steps are necessary. In Network manager:
    Manage Connections: Delete the existing broken connection. Really delete it, do not just edit it.
    Manage Connections: Add ("Add..." button) and then fill in a new connection name and the correct SSID and password as required;
    Select "Connect automatically" and "System connection";
    Restart the router (it was necessary here!).
    In a terminal use the following command:
    sudo iwlist wlan0 scanning essid
    (where SSID is the SSID of your network and wlan0 is the interface for the scan. See this post)
    The wireless network is found and connected automatically.

Note: using Kubuntu with kernel 3.0.0 but according to google's world there are people using other distros (SuSe, Ubuntu) reporting the same problem.

List devices in local network (IP range)

A not so frequent task is to list all active devices in a local network (to find their IP addresses). Typically this is done by writing anew a tiny shell script to ping all IP addresses in the network range or a list.

A command that can be used for this purpose with advantages is nmap (a port scanner). Type nmap to see the list of options.

Examples:

Ping every host in a range of IPs (in this case from 192.168.1.1 to 192.168.1.200):

nmap -sP 10.1.1.1-200

Scan available ports/services in a range of IPs:

nmap 192.168.1.1-255

Option -O helps identifying the brand of each active device. It looks up which OS could be running on each IP and in addition looks up the vendor of that network interface, which could be the most useful information if you are looking for the IP of a specific device:

sudo nmap -O 192.168.1.1-255

[...]
MAC Address: 00:21:29:C6:27:24 (Cisco-Linksys)
Device type: general purpose
Running: Linux 2.4.X
OS details: Linux 2.4.18 - 2.4.37 (likely embedded)
Network Distance: 1 hop
[...]

Hope this post saves time.

Wednesday, November 2, 2011

Problem connecting to hidden networks

A laptop running kubuntu was unable to connect to wireless hidden networks after an upgrade. After a search for solutions to overcome this bug I found a simple one here. In the network management go to Manage Connections and in the wireless tab add a connection with the details of your hidden network (use the opportunity to delete all the other or cleanup), apply and close. In a terminal call iwlist as root:
sudo iwlist wlan0 scanning essid BITOQUE
Where in this example BITOQUE was the SSID of the network I wanted to connect to. After that you just click network manager and tell it to use the connection just created.