Results 1 to 6 of 6

Thread: Wireless working on server until I changed router.

  1. #1
    Join Date
    Sep 2012
    Beans
    3

    Wireless working on server until I changed router.

    I am running Ubuntu Server 12.04, and have what I think is an odd problem.

    I had my server configured to wirelessly access my BT Home Hub and all was working fine, and all was fine until BT sent me a new HomeHub 3 router. I changed the SSID and the key on all my devices (Mint laptop, Android Fone, macbook, print server etc etc) and all worked fine. Except for the Server. When I disable wireless security it connect OK, so the problem must be there somewhere.

    Here's how It's configured in /etc/network/interfaces:
    Code:
    auto wlan0
    iface wlan0 inet dhcp
    wireless-essid XXXXXXXXX
    wireless-key   xxxxxxxxx
    wireless-channel 11
    wireless-mode managed
    I'm guessing there's something wrong with the key as it connects fine without it.

    Security is set to WPA & WPA2 as default on the router. Do I need to add something into the interfaces file to explicitly tell it the security method, or is something else going wrong?

    Grateful for any pointers

    MiF

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: Wireless working on server until I changed router.

    Do I need to add something into the interfaces file to explicitly tell it the security method
    Yep. Your interfaces file tells the system you want WEP, not WPA. Please try this:
    Code:
    auto wlan0
    iface wlan0 inet dhcp
    wpa-essid XXXXXXXXX
    wpa-psk xxxxxxxxx
    Even better, since it's a server and you want to know its IP, use:
    Code:
    auto wlan0
    iface wlan0 inet static
    address 192.168.1.108 <--an address outside the DHCP range in the router
    netmask 255.255.255.0
    gateway 192.168.1.1
    wpa-essid XXXXXXXXX
    wpa-psk xxxxxxxxx
    Of course, substitute your details here.

    You don't need the managed and channel declaration; the router will negotiate those details.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

  3. #3
    Join Date
    Sep 2012
    Beans
    3

    Re: Wireless working on server until I changed router.

    Ah, OK. Thanks for the pointer. I have made the first changes you recommended for speed which hasn't solved the problem - However, I booted the server into Ubuntu 10.04 Desktop edition and that also couldn't connect to the router, which suggests to my mind that the problem is with the wireless card.

    Is it possible that is just doesn't support WPA/WPA2 ?

    The card is a Broadcom BCM4318 (I know there are issues around the B43 cards, but I believe this has been resolved, as I have been able to connect to the other router)

  4. #4
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: Wireless working on server until I changed router.

    The card is a Broadcom BCM4318
    Tell us more:
    Code:
    lspci -nn | grep 0280
    You will probably have better luck with the router set to WPA2 only, not WPA and WPA2 mixed (up) mode.

    Let's also see:
    Code:
    sudo iwlist wlan0 auth
    I have made the first changes you recommended for speed which hasn't solved the problem
    Any clues here?
    Code:
    sudo ifdown wlan0 && sudo ifup -vv wlan0
    EDIT: You might try wpa-ssid instead of wpa-essid. Sorry; it's getting late and I need a beverage!
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

  5. #5
    Join Date
    Sep 2012
    Beans
    3

    Re: Wireless working on server until I changed router.

    EDIT: You might try wpa-ssid instead of wpa-essid.
    That worked! Many thanks.

    Sorry; it's getting late and I need a beverage!
    It's getting late here too: I just walked up to our local shop for a bottle of wine AND THEY CLOSED 5 MINUTES EARLY! WHA????

    Thanks again for the help, it's much appreciated

  6. #6
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: Wireless working on server until I changed router.

    Quote Originally Posted by makeitfolky View Post
    That worked! Many thanks.



    It's getting late here too: I just walked up to our local shop for a bottle of wine AND THEY CLOSED 5 MINUTES EARLY! WHA????

    Thanks again for the help, it's much appreciated
    I just poured myself a nice Beaujolais-Villages.

    Three suggestions: first, institute static IP. Second, learn about namebench in the Ubuntu repositories and fine-tune your DNS nameserver. Put the tweaked nameservers in place like this:
    Code:
    auto wlan0
    iface wlan0 inet static
    address 192.168.1.108 
    netmask 255.255.255.0
    gateway 192.168.1.1
    wpa-ssid XXXXXXXXX
    wpa-psk xxxxxxxxx
    dns-nameservers 8.8.8.8 69.158.for.example
    Last, use thread tools at the top to mark Solved.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •