LinuxQuestions.org
Visit Jeremy's Blog.
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 04-13-2004, 12:59 PM   #1
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Rep: Reputation: 17
DHCP and windows XP


Hi, I am runnig SuSE Linux Pro with an installed and running DHCP and DNS server.

My problem, Windows XP cannot retrieve an IP address from my Linux DHCP Server. It always says that it can't find the server. I have it set to autoconfigure with DHCP and DNS enabled.

when i start linux on the same computer running on the same distro, it retrieves the IP from the server with no problem. I can use a regular hub and get the IP address from the server.

The only way Windows XP can connect to my server is if i wire it to a router with the DHCP server acting as the ISP for the router. I want to have connect to the server through a hub and not a router.


Is it possible to have windows XP receive an IP address from a linux DHCP server without having to go through the router?
 
Old 04-13-2004, 09:35 PM   #2
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Rep: Reputation: 46
If I understood well, here you go:

"My problem, Windows XP cannot retrieve an IP address from my Linux DHCP Server. It always says that it can't find the server. I have it set to autoconfigure with DHCP and DNS enabled."

I would set the network to use static IP's if it's only two computers, the suse and the xp. It's one less daemon running, no dns server, no hassle. In suse use yast2 to set the eth1 as a static ip 192.168.0.1 and in xp go to the control panel and set the tcp/ip properties to use static 192.168.0.2. Set default gateway to 192.168.0.1, the suse box.

"when i start linux on the same computer running on the same distro, it retrieves the IP from the server with no problem. I can use a regular hub and get the IP address from the server."

But when suse gets IP it is using the dhcp client. When xp asks for an IP to suse, it's the dhcp server, running. Two different daemons.

"The only way Windows XP can connect to my server is if i wire it to a router with the DHCP server acting as the ISP for the router. I want to have connect to the server through a hub and not a router."

If the computer is a linux box, you can have routing feature enabled. You don't need a standalone router. I don't feel I got it well....

"Is it possible to have windows XP receive an IP address from a linux DHCP server without having to go through the router?"

Yes, just enable routing through the linux box. with suse Yast2 can make it easily.

Tell me, how many computers is there on your network? I'm assuming two.
 
Old 04-15-2004, 02:41 PM   #3
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Original Poster
Rep: Reputation: 17
Alright i figured out a temporary solution, with my dhcp and external router working together.

I took the DHCP plug out of the ISP port on the router, and placed it on a reqular port on the same router. I then configured the router to act as a DHCP server (now i have two DHCP servers) providing IP addresses to all connected computers on the router. Some how my Linux DHCP server becomes the main server and provides IP addresses to requesting hosts.


So now when i do IPCONFIG on Windows it shows the IP address of the DHCP, DNS servers, and the DNS suffix that is coming from my linux box.

Its kind of good this way because if something happens to Linux(shuts down, etc.) my router will automatically takeover and provide IP addresses to requesting hosts. (now im thinking of having an internet connection split between the router and the linux box so the computers on my network can connect to the internet even if something happens. )


Thanks "bruno boys" for the info. By the way im running 4 computers.
1 Win98/Linux,
2 WinXP/Linux,
1 Linux acting as server.

Last edited by NetAX; 04-15-2004 at 02:47 PM.
 
Old 04-16-2004, 01:21 AM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Why setup a DHCP server when your router includes one?
 
Old 04-16-2004, 05:25 PM   #5
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Original Poster
Rep: Reputation: 17
MS3FGX, i had originally planed to setup a DHCP server before i got my router. The only reason i got the router was beacuse it provided wireless access to my network. Right now im testing to see what happens when i turn the DHCP service on the router off.
 
  


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
dhcp in linux vs windows salahuddin_66 Linux - Networking 2 03-31-2005 10:05 AM
DHCP only works after previous boot in Windows amosml Linux - Networking 4 12-31-2004 05:59 AM
How do I share files on a Windows DHCP network? yzrider210 Linux - Networking 2 12-13-2003 03:29 PM
DHCP, switching from Windows to Linux netghost Linux - Newbie 3 02-14-2003 04:02 PM
Accessing DHCP from Windows 2000 Danilda Linux - Newbie 2 12-05-2001 09:47 PM

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

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