0

I have Ubuntu Server 13.10 and I used it earlier to connect to many access points

I used ifconfig, iwconfig and /etc/network/interfaces file to do that

Now, the WiFi adapter is de-associating from the access point of my interest, there are others in range

I was wondering where is the Network Manager or if the old settings for other APs are still stored and the adapter is trying to associate with them based on the highest RSSI

If they are still stored somewhere, how to delete them

Thanks


Update 1:

I installed the network-manager package

Now, I have this directory /etc/NetworkManager

Is it possible to use it to find the stored wifi settings?


Update 2:

This is what I use in the interfaces file

auto wlan0

iface wlan0 inet manual

wireless-essid ASUS-2.4

wireless-key 1111111111

wireless-mode Managed

loo3y35
  • 511
  • 4
  • 9
  • 19
  • Since you are manually configuring anyway, maybe you want network manager to ignore the card: http://askubuntu.com/questions/21914/how-can-i-make-networkmanager-ignore-my-wireless-card – user7134 Jan 04 '15 at 07:35
  • @user7134 I don't have the /etc/NetworkManager directory in my system – loo3y35 Jan 04 '15 at 08:00
  • @user7134 Please read the update – loo3y35 Jan 04 '15 at 08:14
  • Are there several networks nearby with the same name, also known as SSID? If so, removing old networks from Network Manager will not help you. It is better to get either NM or /etc/network/interfaces to bind to only your preferred network. Find out with: sudo iwlist wlan0 scan – chili555 Jan 04 '15 at 14:18
  • @chili555 There are no APs in the area with the same name, I added how I tell Ubuntu to associate with the APs in Update 2. However, an old AP is in range and I don't want my computer to jump between them. – loo3y35 Jan 07 '15 at 10:28

1 Answers1

0

Your /etc/network/interfaces file uses the method 'manual' (I think you mean static) but declares no static address and other details. It also implies that your network is encrypted with WEP. WEP is extremely insecure and can usually be cracked in minutes. I strongly recommend you change the encryption in the router to WPA2-AES and then set up /etc/network/interfaces like this:

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet static
address 192.168.1.150
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1 8.8.8.8
wpa-essid ASUS-2.4
wpa-psk 222222222222

Of course, substitute your details here. Restart the interface:

sudo ifdown wlan0 && sudo ifup -v wlan0

Now is it stable?

chili555
  • 60,188
  • Thanks for your recommendations I'm totally aware of them; I'm using WEP because I don't wanna cause overhead on my slow computer and manual because this interface is part of a bonding interface. – loo3y35 Jan 07 '15 at 20:56
  • Is there a way to delete the old settings? – loo3y35 Jan 07 '15 at 20:57
  • In a server, in which Network Manager is not installed, and for which there are no DHCP leases, I am unaware of any place old settings are stored. I wonder if it is the wireless driver that's dropping. – chili555 Jan 07 '15 at 21:25