LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-21-2004, 04:01 PM   #1
buddha joe
LQ Newbie
 
Registered: Apr 2004
Location: Richmond, VA
Distribution: SUSE 8.2 Pro
Posts: 14

Rep: Reputation: 0
Mandrake 10 Download and DHCP


I have a DHCP server running on another box that is also updating DNS (also on that box).

Recently one of my Mandrake 10 boxes stopped registering the clients host name with the server. the other clients on my network register with the server fine.

I brought eth0 down (ifconfig eth0 down) removed the lease form the server and the client and restarted eth0 (ifconfig eth0 up). Still same problem.

I then used Mandrakes configuration tools to remove the interface and re-add it. Still the same problem. The lease shows up on the server but with out the client name.

I removed the interface again, The lease from the client and the server, and reinstalled the DHCP client. I then re-added the interface and reconfigured it. Same issue. Not reporting the clients host name to the server.

I have gone through the same steps above in different orders..adding reboots to the process etc.. but I seem to be going in circles.

One thing I can't remember though is the name of the file that the interface config is stored in.

I know resolv.conf is for DNS, hosts (local host table), nsswitch.conf for NIS (which I am not using), I thought it was net.conf for the interface configuration (dhcp vs static etc..) but I can't seem to locate that file (find / -type f -name '*net*.*conf*').

Maybe I have the name wrong. any ideas would be helpful.
 
Old 07-22-2004, 03:18 AM   #2
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
/etc/sysconfig/network-scripts/*
 
Old 07-22-2004, 03:09 PM   #3
buddha joe
LQ Newbie
 
Registered: Apr 2004
Location: Richmond, VA
Distribution: SUSE 8.2 Pro
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks osvaldomarques

I checked those files for which one conatined my machines hostname by doing "grep -i hostname *" and found that the DHCP Hostname was being stored in a file named ifcfg-eth0, and that this file also tells the system that it is to use DHCP. So I guess now the question is why is the DHCP client not reporting this information to the server?

Any ideas?
 
Old 07-22-2004, 04:05 PM   #4
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi,
If you find dhcp in these files, you have a dhcp client. Instead of give a number compatible with /etc/hosts, the system will ask a server for one in the startup.Here is my ifcfg-eth0
Code:
DEVICE="eth0"
ONBOOT="yes"
BOOTPROTO="none"
IPADDR="91.0.0.10"
NETMASK="255.0.0.0"
HOSTNAME=dishost
DOMAIN=disdomain
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"
 
Old 07-23-2004, 04:56 PM   #5
buddha joe
LQ Newbie
 
Registered: Apr 2004
Location: Richmond, VA
Distribution: SUSE 8.2 Pro
Posts: 14

Original Poster
Rep: Reputation: 0
Topic Review (Newest First) osvaldomarques

IF I am reading your cfg correctly, you have a static IP.

Here is what my cfg reads.

Code:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
MII_NOT_SUPPORTED=no
WIRELESS_ENC_KEY=""
DHCP_HOSTNAME=my-box
NEEDHOSTNAME=yes
Now if I am reading this correctly the system should be telling the DHCP server that the machine name it would like to use is my-box and that the DHCP server should be appending what ever I have the domain suffix set to in this case lets say home.lan, so the fully qualified domain name that should be getting sent to the DNS server would be my-box.home.lan.

The problem is that the DHCP server does not appear to be recieving the DHCP_HOSTNAME for what ever reason.. That's my confusion. I thought it might have had something to do with the original lease the machine had obtained but as far as I can tell I removed the lease from /var/lib/dhcp and from the servers dhcpd.leases ( and restarted the DHCP server) before tryng to aquire a new lease.
 
Old 07-23-2004, 06:46 PM   #6
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
What dns server do you use? In the leases file you see the name of "my-box" after acquiring a lease? Did you look any exception in your "/var/log/messages" in both the server and the client machine?
 
Old 07-24-2004, 04:38 PM   #7
buddha joe
LQ Newbie
 
Registered: Apr 2004
Location: Richmond, VA
Distribution: SUSE 8.2 Pro
Posts: 14

Original Poster
Rep: Reputation: 0
osvaldomarques

<<What dns server do you use?>>

The server is an SME 6.0.1 server from contribs.org. It uses tinydns.


<<In the leases file you see the name of "my-box" after acquiring a lease?>>

For all other (Linux and Windows) clients but this one yes, I see the host name in the dhcps.leases file. The thing is that at one point the host name for this client showed up as well. It just stopped reporting it one day.


<<Did you look any exception in your "/var/log/messages" in both the server and the client machine?>>

"DAWN BREAKS ON MARBLE HEAD!!!"

Imagine that.. Me check the log files.... No like an idiot I haven't looked at them yet.. I'll do that now.
 
Old 07-24-2004, 06:18 PM   #8
buddha joe
LQ Newbie
 
Registered: Apr 2004
Location: Richmond, VA
Distribution: SUSE 8.2 Pro
Posts: 14

Original Poster
Rep: Reputation: 0
Resolution !!!

osvaldomarques you suggested looking at the ever so mystical messages log file. In it I found that eventually the system started reporting an error on line 1 of dhclient-eth0.conf. The log stated that there was a missing semi-colon. I added the semi-colon to the end of line 1 and still no joy.

What I ended up doing was removing the interface through the control panel. I then went and renamed dhclient-eth0.conf to old-dhclient-eth0.conf and once again I removed the lease from the workstation and the server. I then restarted the machine (probably unnecessary but it is an old windows habit) and went back to the control panel to add the network interface again. Checked the server and everything appears to be working properly now.

Thanks for the kick in the brain osvaldomarques
 
Old 07-24-2004, 10:02 PM   #9
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi Buddha joe,
Every problem is a challenge and an opportunity to learn more. I would suggest you compare both files now to see if there is a difference.

Have a nice week end!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
ADSL DHCP A-OK, but Mandrake 10.1 to be DHCP for other subnet is a problem turnbui Linux - Networking 2 08-20-2005 09:34 AM
Mandrake 10.01 download siawash Linux - Distributions 11 06-05-2005 09:04 AM
After you download Mandrake 10.0.... kamkaz Linux - Newbie 7 05-30-2004 03:12 AM
DHCP server Download Shals Linux - Networking 7 09-01-2003 01:25 AM
Mandrake 9.1 DHCP InSane103 Linux - Networking 2 07-09-2003 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:35 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