LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-09-2004, 08:38 PM   #1
headsman
LQ Newbie
 
Registered: Feb 2004
Location: Quebec, Canada
Distribution: Mandrake 9.2
Posts: 8

Rep: Reputation: 0
Not getting an IP address with DHCP conf


Hi all,

I run Mandrake 9.2 on a laptop and PCMCIA card. I use it at home on a home network and on university network.

I usually only plug the network card and everything works. I get a IP address and never had any problems.

Lately, when I plug on university network, linux is not able to get an IP address but it still works at home. I tried the wizard, and some tips I found on this forum; but nothing to do.

Here is what the ifconfig eth0 command returns:
Lien encap:Ethernet HWaddr 00:04:E2:40:A6:14
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:244759 errors:57448 dropped:0 overruns:11 frame:57448
TX packets:0 errors:3287 dropped:0 overruns:0 carrier:6521
...

I think this is enought to see that there is no IP. I installed vmware 3.x with win98 and winxp and in both, internet is working! while not in linux. (I'm actually posting this in a vmware session.) So I just do not understand why this is not working.

Historically, I saw that when the network is not too busy this was working, but 3 weeks ago a was loosing my connection, and comming back after a while... again and again. Now this is just not working.

I just don't know where to search anymore. If someone has experience this or know something ''geek'' I could try... : ) this would be appreciated.

Thanks.
 
Old 02-09-2004, 09:15 PM   #2
minrich
Member
 
Registered: Aug 2003
Location: Isles of Man & Wight
Distribution: See signature
Posts: 548

Rep: Reputation: 40
headsman

Which way are you running Vmware (as a Win host or a linux host)? If as a win host with a linux guest I may be able to help...
 
Old 02-10-2004, 04:11 PM   #3
headsman
LQ Newbie
 
Registered: Feb 2004
Location: Quebec, Canada
Distribution: Mandrake 9.2
Posts: 8

Original Poster
Rep: Reputation: 0
My operating system is linux and I use rarely windows in vmware when I have absolutely no choices (like coding a small app for someone).

So if my english is right: my host is linux and Windows is guess inside vmware.
 
Old 02-10-2004, 10:56 PM   #4
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
is there any log about DHCP?
maybe your DHCP server is broken and send silly configuration ignored by Linux but accepted by Windoze.
 
Old 02-11-2004, 02:01 PM   #5
headsman
LQ Newbie
 
Registered: Feb 2004
Location: Quebec, Canada
Distribution: Mandrake 9.2
Posts: 8

Original Poster
Rep: Reputation: 0
I never tought to look at the syslog. Thuersday afternoon (tomorow) I'll be on the school network again, and will send more details, if I can. Now the only thing I can get from the syslog (this is all I know as possible dhcp log) is the following (snap shot):

Feb 9 18:26:03 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
Feb 9 18:26:09 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
Feb 9 18:26:21 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
Feb 9 18:26:35 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
Feb 9 18:26:49 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
Feb 9 18:27:04 localhost dhclient: No DHCPOFFERS received.
Feb 9 18:27:04 localhost dhclient: Trying recorded lease 192.168.2.14

And this last try is not good, since this IP is from my home network.

On another instance, when I tried manually 'ifup eth0' I got in the syslog:
Feb 9 18:21:46 localhost ifplugd(eth0)[3017]: client: Determining IP information for eth0.../sbin/ifup: line 433: 3098 Terminated $DHCP_CLIENT $DHCP_ARGS

It did not worked.

On another occasion I got something like the previous but:
DHCPDISCOVER on eth0 a couple times
DHCPOFFER from 132.211.1.10
DHCPREQUEST on eth0 2 times
DHCPDISCOVER on eth0 a couple more times
then the fatal No DHCPOFFERS...

I don't know how to give you more details, I'm new at linux since a couple months and networking is not my speciality anyway; and less than a kernel hacker : )

On my home network, it works good: DHCPDISCOVER, DHCPOFFER, DHCPREQUEST, DHCPACK... bound to 192.168.2.253

Thanks for your help; tell me anything I could do to give you more informations and I'll answer back tomorow afternoon.
 
Old 02-11-2004, 02:10 PM   #6
GIBson3
LQ Newbie
 
Registered: Feb 2004
Posts: 4

Rep: Reputation: 0
hehe well if it is any consilation, I'm having the same issue =)
 
Old 02-11-2004, 06:49 PM   #7
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
strange... according to that :
Code:
DHCPDISCOVER on eth0 a couple times
DHCPOFFER from 132.211.1.10
DHCPREQUEST on eth0 2 times
DHCPDISCOVER on eth0 a couple more times
then the fatal No DHCPOFFERS...]
the server never answer the DHCPREQUEST with a DHCPACK. A broken dhcp server maybe? I'm using slackware on this box, and it has an option flag (-r) I could use to "complie with RFC 1541 (obsolete)"
Take a look at it

Also, are you sure your network card isn't broken at school? Since DHCP use udp protocol, it is to feel bad when a network card start freaking out (or when a worm does too much pollution on network... take a look at it maybe)
 
Old 02-11-2004, 11:15 PM   #8
GIBson3
LQ Newbie
 
Registered: Feb 2004
Posts: 4

Rep: Reputation: 0
well in my case, the Network Card works fine under Windows, or it did until Yesterday =) all the Qindow's boxes (and two other linux boxes) are able to find my DHCP server. else where I've read about DHClient working fine with slightly older versions of the Kernel. Oh well I'm away for the next 4 days Hope someone comes across a better solution than to use an Older Kernel.

 
Old 02-12-2004, 04:38 PM   #9
headsman
LQ Newbie
 
Registered: Feb 2004
Location: Quebec, Canada
Distribution: Mandrake 9.2
Posts: 8

Original Poster
Rep: Reputation: 0
Ok, I'm currently posting this from my vmware session (winxp) under linux. The network works great. Under linux, I receive no answer to my DHCPREQUEST.

Same problem. But in the begining of the year, when this was working, the network was less loaded... either my network card address is banned (and I would not know why) or their DHCP server is broken; yet it works in vmware.

But I prefer not accepting such a boring conclusion to this problem. In fact I beleive the network card workes fine since there is no prob under vm(winXP). But I don't know enought about linux and networking and kernel to have any probable solutions.
 
Old 02-16-2004, 07:53 PM   #10
headsman
LQ Newbie
 
Registered: Feb 2004
Location: Quebec, Canada
Distribution: Mandrake 9.2
Posts: 8

Original Poster
Rep: Reputation: 0
This is still not working, but once I got data for 1 sec. Is there a way to increase the delay between each try of DHCPOFFER in order to give more time to the network to receive an IP address before sending another request? I think that it might be the problem, even if I know noting about all that... I might be wrong.

Thanks.
 
Old 02-16-2004, 08:50 PM   #11
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
with dhcpcd I think you can add the "-t" option to wait a certain time (-t 10 will wait 10 second a believe). I don't know about other dhcp clients.
Be sure to not use a value to high, remember this will stop your booting sequence a lot
 
Old 03-08-2004, 06:37 PM   #12
headsman
LQ Newbie
 
Registered: Feb 2004
Location: Quebec, Canada
Distribution: Mandrake 9.2
Posts: 8

Original Poster
Rep: Reputation: 0
I know what is my problem

There is no problems with linux.

In a Internet class I used a port scanner as the teacher was showing. My network card address has been put in the black list of DHCP offers, so the DHCP server is never sending me IP address. This is why it was still working in my VMWare app, because it emulates an other network card.

The network is being upgraded and now instead of being banned, we are simply kicked for a couple minutes (1 minutes). So everything is working good.

Thanks everybody for your help in this issue!
 
Old 03-08-2004, 06:44 PM   #13
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
hehehe nice
well your DHCP is prolly banning your MAC address.... but keep in mind you can spoof it using Linux.
try :
ifconfig eth0 down
ifconfig eth0 hw ether 10:10:10:10:10:10
ifconfig eth0 up

then call back the DHCP
 
Old 03-08-2004, 08:15 PM   #14
minrich
Member
 
Registered: Aug 2003
Location: Isles of Man & Wight
Distribution: See signature
Posts: 548

Rep: Reputation: 40
happy for you headsman. I am glad that VMware allowed you to keep posting to this thread!
 
Old 03-09-2004, 03:44 PM   #15
headsman
LQ Newbie
 
Registered: Feb 2004
Location: Quebec, Canada
Distribution: Mandrake 9.2
Posts: 8

Original Poster
Rep: Reputation: 0
Yeah, the MAC address, I just forgot the name of it.

wow, if I know that I could do that with Linux just 4 weeks ago!!! I will try that Thursday. This will solve my problem: the new network will be completed in 3 weeks, so meanwhile...

Thanks again! I'm learning everyday!
 
  


Reply


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
dhcp no ip address and netmask dont match route address pengy666 Linux - Wireless Networking 1 05-08-2005 10:33 AM
DHCP cannot get IP address friend3141 Suse/Novell 4 01-28-2005 10:27 PM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 11:33 AM
dhcp.conf or dhcpd.conf? rogerbennett Linux - Networking 3 09-03-2003 01:25 PM
IP address / DHCP supersport Linux - General 1 11-01-2001 07:30 PM


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

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