Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: 1
getting ip of

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 and the odd thing is that the netmask ( and gateway ( 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
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

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
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
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
First, check that your dhclient.conf file is present. It should look somewhat like this:
$ 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
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


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

All times are GMT -5. The time now is 11:11 AM.

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