Results 1 to 3 of 3

Thread: Can't connect to Internet

  1. #1
    Join Date
    Mar 2006
    Location
    New Zealand
    Beans
    153
    Distro
    Ubuntu 10.04 Lucid Lynx

    Can't connect to Internet

    I've got Ubuntu 7.10 on my acer laptop. It recognises all of my network cards fine but I can't figure out how to get it to work with my d-link router. The router is set up to give DHCP but Ubuntu still can't connect to the net. Please help!
    Linux user #413407
    Worlds Worst Disasters: Hiroshima 45, Chernobell 86, Windows 98....

  2. #2
    Join Date
    Oct 2007
    Location
    Illinois
    Beans
    40
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Can't connect to Internet

    First, check for the little things like if you have an on/off button for the wireless card. After that, I personally use a shell script to connect which is:

    int='eth1'
    ip='192.168.1.111'
    gate='192.168.1.1'
    essid='networkname'
    killall NetworkManager
    ifconfig $int down
    killall dhclient
    dhclient -r $int
    iwconfig $int essid $essid
    iwconfig $int mode Managed
    ifconfig $int $ip netmask 255.255.255.0 up
    route add default gw $gate

    Substitute your network's name for networkname and your interface (iwconfig in terminal to find out) for eth1. I like my ip to be .111, but use whatever you want. You need to run it as root. If you want to undo the changes, type "sudo NetworkManager". The script shuts down dhcp and the automatic network configuaration and does it 'manually' instead.
    Last edited by Matthewslf; June 30th, 2008 at 04:51 AM.
    Could God write a piece of code so unusable that even He couldn't even use it. No, but find out how at http://www.microsoft.com/careers/

    Fear the Penguin

  3. #3
    Join Date
    Mar 2006
    Location
    New Zealand
    Beans
    153
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Can't connect to Internet

    it didn't work. I don't know exactly why. Also even when I try just connecting via ethernet cable to the router I still can't conect to the internet.
    Linux user #413407
    Worlds Worst Disasters: Hiroshima 45, Chernobell 86, Windows 98....

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
  •