LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 05-25-2007, 11:50 PM   #1
frznchckn
Member
 
Registered: Jun 2006
Location: CA
Distribution: Ubuntu, CentOS, Scientific Linux
Posts: 97

Rep: Reputation: 15
Unhappy Unable to connect to internet via wireless OR wired connection


I'm running Ubuntu 7.04 on a Dell Inspiron 5100. I'm connected to a Linksys Wireless(ed) Router via ethernet. The laptop *thinks* it's connected, because when I disconnect the ethernet cable a little popup on Ubuntu's status bar notifies me of the disconnection; however, my laptop does NOT show up on my router's DHCP table. It's like the laptop is never requesting one? I'm not sure.
 
Old 05-26-2007, 04:39 AM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Try to run, from a terminal emulator, this command:
Code:
dhclient eth0
if eth0 is not your ethernet device (it's usually eth0 for wired, eth1 or wifi0 for wireless, but may be different); I'm fairly sure Ubuntu uses dhclient and not dhcpcd, but you can try both. Probably you need to be root, so use sudo if needed.

If that brings you an ip address etc. then the problem is that dhcp request is not made. If that doesn't work, then it's something with your NIC not working all right -- maybe drivers?
 
Old 05-26-2007, 05:54 AM   #3
OttifantSir
LQ Newbie
 
Registered: May 2007
Location: Norway
Distribution: Would like to have Feisty Fawn installed, but have some Windows programs I paid for.
Posts: 10

Rep: Reputation: 0
Although I don't know how to set a static IP for your computer in Ubuntu (used a USB port to connect an old laptop, new laptop is still running XP), this may also be a solution. It also gives you better control over certain applications. Like me: I use a few P2P-programs, and they don't work well with uPnP, so I had to set a static IP-adress for my computer. Just be sure to set two IP-adresses; one for WiFi, and one for Ethernet, as ONE IP-adress on both may cause a "crash" in the router.

I imagine this is no worse in Ubuntu than in Windows. But check out the IP-adresses for subnet mask (generally 255.255.255.x) and standard gateway (usually your router's IP-adress). You also need to get the numbers for DNS-server. This is two IP-adresses that connects to your ISP.

When this is done, you choose a static IP. Since it is a private IP, known only to the router, I can tell you that mine are 192.168.0.146 (WiFi) and 192.168.0.147 (Ethernet). With a static (private) IP, you can also forward ports for programs, giving them a sure way through your router, should the need arise.

As I haven't had your problem, I wouldn't know if b0uncer's suggestion is the correct one.

I can tell you that if you set a static IP, no DHCP request is made to the router, as it is always the same. (You may have to disable DHCP in the router)

Well, that's my two (OK, four) cents on the matter.
 
Old 05-26-2007, 12:44 PM   #4
frznchckn
Member
 
Registered: Jun 2006
Location: CA
Distribution: Ubuntu, CentOS, Scientific Linux
Posts: 97

Original Poster
Rep: Reputation: 15
Wink

Thank you for the responses.

$ dhclient eth0 (eth0 is my wired connection)

after it seemed to loop through possibilities, it returned
No DHCPOFFERS received
No working leases in persistent database - sleeping.



Ok weird...

I thought I'd try dhclient on my wireless after entering the ssid & key,
After entering that, the wired connection started to work. There was a good 5 min between these attempts so the wired connect did have enough time. Definitely weird, I may be back when my lease dhcp lease expires!

Thanks again for the help!
 
Old 06-18-2008, 10:54 PM   #5
crusher2crush
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
Unhappy Me Too Unable To Connect To Internet

Frids Plz Help! I Have Installed Ubuntu 8.04 Lts Desktop Edition In The "f" Drive Of Windows...hence Both Os Runs For Me! But Im Unable To Connect To The Internet....plz Help...mine's Is A Airtel Broadband Adsl2+ Modem
 
Old 06-19-2008, 02:12 PM   #6
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
This thread is over a year old. Please start a new one if you have an actual question.
 
  


Reply

Tags
default, dhcp, dns, gateway, ip, static, subnet, wifi


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FC5 is unable to connect to internet via wired modem/router zener Fedora 3 11-07-2006 06:28 AM
Connect to internet Wired Patie Linux - Laptop and Netbook 2 01-27-2006 12:35 PM
unable to connect to internet with ADSL CONNECTION ashwin_cse Linux - Networking 2 11-13-2005 06:48 AM
Routing between a wired ethernet (internet connection) and a wireless card (home net) ner0 Linux - Wireless Networking 8 11-29-2004 02:12 AM
Cannot connect to internet via wired adapter psycovic23 Linux - Networking 1 06-05-2004 10:17 AM


All times are GMT -5. The time now is 04:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration