Unless all entries but lo related ones are commented out from /etc/network/interfaces network manager does not show a wifi icon and therefore does not allow you to connect to wpa encryted networks

Bug #129160 reported by ahirreddy
10
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

This is a very serious bug that is very difficult to explain. I could not connect to a wpa encrypted network on feisty because in the network manager under the wireless connection settings only wep was available. The icon appeared as two monitors, and I could not select a wifi network from there. I had to enter manual configuration by right clicking the icon or entering the system menu. Only wep was availble as a security method. I knew from earlier that wpa was a part of feisty. After sometime I stumbled across a guide that was to enable wpa support in older versions of ubuntu. Here it is:

sudo apt-get install wpasupplicant
sudo apt-get install network-manager-gnome network-manager
sudo gedit /etc/network/interfaces
Comment out everything other than “lo” entries in that file and save the file
Create a file called /etc/default/wpasupplicant, add entry ENABLED=0 and save the file
sudo touch /etc/default/wpasupplicant
Reboot your system or use the following command
sudo /etc/init.d/dbus restart

The packages were already installed but the interfaces file thing was new to me. After commenting out anything that did not have to do with lo and following the rest steps it worked. Instead of the network manager icon appearing as two monitors, it appeared as wifi bars. Although I could select networks directly from the applet, I could not connect to wpa through the applet. Manual configuration remained the same as well with only wep as a choice. A work around is clicking the applet icon and connecting to "another wireless network". I typed in the ssid, and select wpa personal as the encrytion and it worked perfectly.

This seems to be purely a bug in the network manager applet, and for someone like me who's not a novice it proved to be very difficult. I hoped this was helpful to anyone who had the same problem as I did.

Revision history for this message
Alexander Sack (asac) wrote :

Hi,

which wifi chipset/driver are you using?

When you keep interfaces file unmodified, maybe you can switch to wireless network through the applet?

 - Alexander

Changed in network-manager:
status: New → Incomplete
Revision history for this message
Philippe Haution (philippe-haution) wrote :

Hello,

I encountered the same bug on Feisty with my Intel(R) PRO/Wireless 3945 card and WAP encrypted network.
Only WEP keys could be entered through the network manager interface. Commenting out everything unrelated to "lo" in /etc/network/interfaces, adding the /etc/default/wpasupplicant as suggested and switching the SSID broadcast on did the trick.

Maybe this last point is related to this bug :
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/50214
or the third point of this post :
https://help.ubuntu.com/community/WifiDocs/NetworkManager#head-d34a5c8e736bbaaa2f9447b3934c46a00577a6dc

Many thanks for the workaround anyway.

Philippe

Revision history for this message
tigrou40 (tigrou40) wrote :

Hello,

I also had to comment everything out in order to get WPA connection to work.

My problem is that I am using a Virtualbox machine (Ubuntu as a Host - Windows as a Guest) and I want to use the host interface networking.
It implies to create a bridge in "/etc/network/interfaces" and a virtual interface.

Since I have to disable everything to get my WiFi working, it is very annoying because I have to modify my "/etc/network/interfaces" and reboot each time I need to start my Virtual Machine !

My card is a ipw2200 on a 7.04 Feisty using Network-Manager.

The added lines in "/etc/network/interfaces" :

auto tap0
iface tap0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user vboxuser

auto br0
iface br0 inet dhcp
bridge_ports all tap0

Revision history for this message
tigrou40 (tigrou40) wrote :

This is not a serious bug but really unconvinient to all new users and also people who want to use bridged connections with VM... (Confirmed for Feisty)

Changed in network-manager:
status: Incomplete → Confirmed
Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 129160] Re: Unless all entries but lo related ones are commented out from /etc/network/interfaces network manager does not show a wifi icon and therefore does not allow you to connect to wpa encryted networks

On Thu, Aug 16, 2007 at 11:17:11AM -0000, tigrou40 wrote:
> Hello,
>
> I also had to comment everything out in order to get WPA connection to
> work.
>
> My problem is that I am using a Virtualbox machine (Ubuntu as a Host - Windows as a Guest) and I want to use the host interface networking.
> It implies to create a bridge in "/etc/network/interfaces" and a virtual interface.
>
> Since I have to disable everything to get my WiFi working, it is very
> annoying because I have to modify my "/etc/network/interfaces" and
> reboot each time I need to start my Virtual Machine !
>
> My card is a ipw2200 on a 7.04 Feisty using Network-Manager.
>
> The added lines in "/etc/network/interfaces" :
>
> auto tap0
> iface tap0 inet manual
> up ifconfig $IFACE 0.0.0.0 up
> down ifconfig $IFACE down
> tunctl_user vboxuser
>
> auto br0
> iface br0 inet dhcp
> bridge_ports all tap0

this is not a bug ... interfaces that have configuration options are
not managed by network-manager for obvious reasons.

 - Alexander

Changed in network-manager:
status: Confirmed → Won't Fix
Revision history for this message
Philippe Haution (philippe-haution) wrote :

Hello,

Would you please explain a little more why you finally considered it was not a bug that network-manager could not be used to connect to a WPA-protected Wifi network ?

You can find references on the web like this one :
http://ubuntuguide.org/wiki/Ubuntu:Feisty/Networking#How_to_get_ipw2200_and_WPA_to_work
claiming network-manager is the tool to use for Wifi and WPA.

What is the proper way then ?

Philippe

Revision history for this message
Alexander Sack (asac) wrote :

On Tue, Aug 28, 2007 at 08:12:48AM -0000, Philippe Haution wrote:
> Hello,
>
> Would you please explain a little more why you finally considered it was
> not a bug that network-manager could not be used to connect to a WPA-
> protected Wifi network ?
>
> You can find references on the web like this one :
> http://ubuntuguide.org/wiki/Ubuntu:Feisty/Networking#How_to_get_ipw2200_and_WPA_to_work
> claiming network-manager is the tool to use for Wifi and WPA.
>
> What is the proper way then ?

As soon as you start to edit interfaces manually you are left alone.

Try to set the interface in network manager to roaming mode again and
see if those options go away ... otherwise just remove all lines
associated with that interface from your /etc/network/interfaces file.

This is probably the best way to put those interfaces under the
control of network-manager.

Hope that helped,

Thanks,

 - Alexander

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.