LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2010, 09:56 AM   #1
chaimblonder
LQ Newbie
 
Registered: Jul 2010
Posts: 9

Rep: Reputation: 1
getting ip of 0.0.0.0


hello. i use ubuntu 10.04 desktop edition 32 bit. i have a problem with my wireless connection. i get an ip address (DHCP) of 0.0.0.0 and the odd thing is that the netmask (255.0.0.0) and gateway (10.0.0.138) in fine. i have a simple siemens router.
if i set a manual ip everything works OK.
what can it be?

thank you

Last edited by chaimblonder; 09-20-2010 at 09:57 AM.
 
Old 09-20-2010, 10:03 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Is the DHCP server on the router configured correctly?
Any pointers in the logfiles from the router?

Kind regards
 
Old 09-20-2010, 10:21 AM   #3
chaimblonder
LQ Newbie
 
Registered: Jul 2010
Posts: 9

Original Poster
Rep: Reputation: 1
yes the router is configured correctly and no clues on the logs. everything worked fine until couple of hours ago. also, there is another laptop connected with wireless (Windows XP) and it works fine.

Last edited by chaimblonder; 09-20-2010 at 10:23 AM.
 
Old 09-20-2010, 12:21 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
First, check that your dhclient.conf file is present. It should look somewhat like this:
Code:
$ cat /etc/dhcp3/dhclient.conf | grep -v ^#

option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;

send host-name "<hostname>";
request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, domain-search, host-name,
        netbios-name-servers, netbios-scope, interface-mtu,
        rfc3442-classless-static-routes, ntp-servers;
If that looks correct, see if sudo dhclient wlan0 fixes the problem. (Note that "wlan0" should be replaced by your actual connection name. "wlan0" is typical for a wireless connection, but other name are often used.)

If that works, see if you can figure out why dhclient is not being started correctly when you boot.
 
Old 09-20-2010, 10:23 PM   #5
chaimblonder
LQ Newbie
 
Registered: Jul 2010
Posts: 9

Original Poster
Rep: Reputation: 1
thanks a lot. dhclient worked. i will try to figure out why it won't run correctly on startup. thank again
 
  


Reply



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:31 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
Open Source Consulting | Domain Registration