LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 10-21-2004, 08:30 PM   #1
Diademed
Member
 
Registered: Jul 2004
Distribution: Slackware 10.2
Posts: 159

Rep: Reputation: 30
XP Box won't take DHCP information or an IP from Linux gateway


My XP machine doesn't seem to want to take a DHCP lease from my linux gateway/firewall.... It worked for approx 1 day, almost to the hour, and then stopped.

This is sort of a clarification from this post:
http://www.linuxquestions.org/questi...hreadid=239953


Is there some reason my XP machine won't connect?

Apologies for the double post if it's considered thus, I'm looking at it now from a different angle.

When I disconnect it from the plug on the wall, and plug it into the linux box, it gets a funny IP, certainly not the 192.168.x.x it should, and refuses to connect to the lgateway. Request timed out, or DHCP server not available.
 
Old 10-22-2004, 02:40 PM   #2
adamwenner
Member
 
Registered: Aug 2003
Distribution: windows xp home, windows 98, red hat 9, fedora core 3, redhat enterprise linux, win2000 pro/server
Posts: 217

Rep: Reputation: 32
there is some special code you have to put in the dhcp conf file, but i forgot where i found it and am working though the same problem

do a google search
 
Old 10-22-2004, 05:47 PM   #3
Diademed
Member
 
Registered: Jul 2004
Distribution: Slackware 10.2
Posts: 159

Original Poster
Rep: Reputation: 30
Code:
2:/etc# cat dhcpd.conf
#dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')

# Global options
default-lease-time 3600;        # 24h
max-lease-time 86400;           # 24h

subnet 192.168.1.0 netmask 255.255.255.0 {

        range 192.168.1.10 192.168.1.150;    #obviously the range of ips to use

        option subnet-mask 255.255.255.0;     #subnet mask to give to dhcp client
        option broadcast-address 192.168.1.255;    #broadcast address to give client

        option routers 192.168.1.1;        #this is your router (eth1 if you configure it like above)
         option domain-name-servers 128.95.120.1;       #uncomment this and add your isp's dns server
        #option domain-name-servers 192.168.1.1;       #unless your like me and have your own or have a second one
        option domain-name "glacier.ice";         #this is the domainname that will be given out
}
ddns-update-style none;

This is what is in my dhcp right now. fairly close anyway. you should try this and see how it works out for you.
 
  


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
VPN gateway with linux BOX jobbe314 Linux - Networking 5 08-02-2005 09:43 PM
Linux box as a gateway/router dooda5555 Linux - Networking 2 04-29-2005 01:06 PM
Linux DHCP information for DNS tisource Linux - Networking 5 10-31-2004 06:47 PM
Hwo do I log as much information as possible about connections made to Linux Box? jdruin Linux - Security 6 11-10-2003 01:12 PM
linux gateway and DHCP weazy Linux - Networking 3 03-19-2003 04:30 PM


All times are GMT -5. The time now is 10:48 PM.

Main Menu
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