Wirless Sometimes doesn't connect

Greetings all

Have an issue with my wireless.

It sometimes doesn’t connect to my wireless. And sometimes when it does it gives me an invalid IP address.

I have a lenovo SL400 Laptop. Intel 802.11agn wireless is my adaptor. And I have OpenSuse 11.4 with gnome.

I works fine if I give it a static IP Address but that will create an issue with other computers on the network.

Is my desktop environment (GNOME) or is my Wireless adpator not compatible with opensuse.

Any Ideas?

Post the result of

/sbin/lspci -nnk

This will tell us exactly what device you have. Put the output in code tags please.

LAN IP Addresses shouldn’t really make any difference, unless you have other settings misconfigured in the router.
For example, all my devices connect to my access point and each has a single specified LAN IP by reservation based on the device MAC
But I can just as easily switch that off and allow access by DHCP to a LAN range, but I loose individual control that way.

Are you using “ifup” or are you using NetworkManager?

The result is:

00:00.0 Host bridge [0600]: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub [8086:2a40] (rev 07)
Subsystem: Lenovo Device [17aa:20e0]
00:01.0 PCI bridge [0604]: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port [8086:2a41] (rev 07)
Kernel driver in use: pcieport
00:1a.0 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 [8086:2937] (rev 03)
Subsystem: Lenovo Device [17aa:20f0]
Kernel driver in use: uhci_hcd
00:1a.1 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 [8086:2938] (rev 03)
Subsystem: Lenovo Device [17aa:20f0]
Kernel driver in use: uhci_hcd
00:1a.2 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 [8086:2939] (rev 03)
Subsystem: Lenovo Device [17aa:20f0]
Kernel driver in use: uhci_hcd
00:1a.7 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 [8086:293c] (rev 03)
Subsystem: Lenovo Device [17aa:20f1]
Kernel driver in use: ehci_hcd
00:1b.0 Audio device [0403]: Intel Corporation 82801I (ICH9 Family) HD Audio Controller [8086:293e] (rev 03)
Subsystem: Lenovo Device [17aa:20f2]
Kernel driver in use: HDA Intel
00:1c.0 PCI bridge [0604]: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 [8086:2940] (rev 03)
Kernel driver in use: pcieport
00:1c.1 PCI bridge [0604]: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 [8086:2942] (rev 03)
Kernel driver in use: pcieport
00:1c.2 PCI bridge [0604]: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 [8086:2944] (rev 03)
Kernel driver in use: pcieport
00:1c.3 PCI bridge [0604]: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 [8086:2946] (rev 03)
Kernel driver in use: pcieport
00:1d.0 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 [8086:2934] (rev 03)
Subsystem: Lenovo Device [17aa:20f0]
Kernel driver in use: uhci_hcd
00:1d.1 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 [8086:2935] (rev 03)
Subsystem: Lenovo Device [17aa:20f0]
Kernel driver in use: uhci_hcd
00:1d.2 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 [8086:2936] (rev 03)
Subsystem: Lenovo Device [17aa:20f0]
Kernel driver in use: uhci_hcd
00:1d.7 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 [8086:293a] (rev 03)
Subsystem: Lenovo Device [17aa:20f1]
Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev 93)
00:1f.0 ISA bridge [0601]: Intel Corporation ICH9M LPC Interface Controller [8086:2919] (rev 03)
Subsystem: Lenovo Device [17aa:20f6]
00:1f.2 SATA controller [0106]: Intel Corporation ICH9M/M-E SATA AHCI Controller [8086:2929] (rev 03)
Subsystem: Lenovo Device [17aa:20f8]
Kernel driver in use: ahci
01:00.0 VGA compatible controller [0300]: nVidia Corporation G98 [GeForce 9300M GS] [10de:06e9] (rev a1)
Subsystem: Lenovo Device [17aa:2107]
Kernel driver in use: nouveau
03:00.0 Network controller [0280]: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection [8086:4237]
Subsystem: Intel Corporation WiFi Link 5100 AGN [8086:1211]
Kernel driver in use: iwlagn
0c:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 02)
Subsystem: Lenovo Device [17aa:2108]
Kernel driver in use: r8169
0d:00.0 FireWire (IEEE 1394) [0c00]: Ricoh Co Ltd R5C832 IEEE 1394 Controller [1180:0832] (rev 05)
Subsystem: Lenovo Device [17aa:2109]
Kernel driver in use: firewire_ohci
0d:00.1 SD Host controller [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter [1180:0822] (rev 22)
Subsystem: Lenovo Device [17aa:210a]
Kernel driver in use: sdhci-pci
0d:00.2 System peripheral [0880]: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter [1180:0592] (rev 12)
Subsystem: Lenovo Device [17aa:210c]
0d:00.3 System peripheral [0880]: Ricoh Co Ltd xD-Picture Card Controller [1180:0852] (rev 12)
Subsystem: Lenovo Device [17aa:210d]
Kernel driver in use: r852

I am using something called Network Connections that came preinstalled. I don’t know whether that is Network Manager.

Your device:

03:00.0 Network controller [0280]: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection [8086:4237]
Subsystem: Intel Corporation WiFi Link 5100 AGN [8086:1211]
Kernel driver in use: iwlagn

Is OK. With the correct driver in place.

If you can explain this comment:

It works fine if I give it a static IP Address but that will create an issue with other computers on the network.
Perhaps we will better understand your situation.

I have no problems with the wireless if I give a computer a static IP address. But by doing so can create IP address conflicts with my family’s computers.

That’s really not explaining yourself
Do you mean a LAN IP?

Normally, the WiFi router has a range of IP addresses that it will use with DHCP. However, the full subnet is typically larger.

For example, one of my routers uses a subnet 192.168.1.* (192.168.1.1 to 192.168.1.254). It only gives out IP addresses 192.168.1.1 to 192.168.1.50.

The trick with a static IP, is to assign an IP that is outside that DHCP range, but still in the subnet. When I was using that router, I assigned my desktop the address 192.168.1.100.

My current router allows me to reserve IP addresses for a particular MAC address, which is an even easier solution.

In an earlier post in this thread, I asked if you were using “ifup” or “networkmanager”. The reason I asked, is because “ifup” typically used “dhcpcd” for DHCP queries, while “networkmanager” uses “dhclient”. In my experience, it is best to use “dhclient” with wireless.

Thanks Nrickert

I shall give that a try and see how I go. I have a feeling that my router doesn’t work well with linux. When I had Windows 7 installed, it worked with no problems.

caf4926 - Yes I meant LAN IP. I am also a newbie.

I have a feeling that my router doesn’t work well with linux
Extremely unlikely

What router is it?

Its a NetComm 11n Wireless ADSL2+ Router

I wanted to try and look at the router
Routers: NetComm
But couldn’t decide if yours is in the list

NetComm 11n Wireless ADSL2+

Its here:

NB6Plus4W Rev2: NetComm

OK
So it’s OS independent. Which means it’ll work no problem.
I downloaded the manual.

I suggest you use a set range and assign a specific IP to each MAC

I shall give that I go the next time it plays up.