LinuxQuestions.org
Help answer threads with 0 replies.
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 10-12-2001, 01:51 AM   #1
KevinMarc
LQ Newbie
 
Registered: Oct 2001
Posts: 2

Rep: Reputation: 0
Question Need help with DHCP


Hi all,

I'm new to linux and i've installed redhat 7.1. I've been following a dhcp howto and have not had any luck. I'm trying to use my linux box (connected to road runner eth0) as a router. The box is hooked to a netgear switch on eth1. Dhcp seems to start fine and when I hook up my win2k machine to the switch, the /var/log/messages says that dhcp is listening and sending on eth1 and there was a dhcp reqest and dhcp awk. I can ping eth1 from my win2k and vice versa. I can't use http however. Is there something I'm missing?

Please help,

Thanks
 
Old 10-12-2001, 02:06 PM   #2
warath
Member
 
Registered: Oct 2001
Location: Ontario, Canada
Distribution: Redhat 9
Posts: 43

Rep: Reputation: 15
Do you have the correct _routing_ information in the _iptables_ ??

Does your win2k machine get an ip address from your linux machine?
(get a command prompt and type
> ipconfig /renew
to see if it can get an ip from your linux machine.

Also, make sure that in your dhcpd.conf file you have all the option

option domain-name-servers x.x.x.x;
option domain-name "yourdomin.com";
 
Old 10-12-2001, 04:15 PM   #3
KevinMarc
LQ Newbie
 
Registered: Oct 2001
Posts: 2

Original Poster
Rep: Reputation: 0
I didn't know that I had to setup iptables. Where can I get info on this. That wasn't mentioned in the howto's. I beleive my windows does get an ip address from my linux box but I will try your suggestion. Also I did have the dns option in the dhcp.conf file using the isp's DNS. I don't have DNS setup yet.

Thanks.
 
Old 10-12-2001, 06:02 PM   #4
warath
Member
 
Registered: Oct 2001
Location: Ontario, Canada
Distribution: Redhat 9
Posts: 43

Rep: Reputation: 15
Go here for a great site on how to use, and sample scripts for, iptables.

http://www.linuxguruz.org/iptables/
 
Old 10-17-2001, 12:20 AM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Once you get NAT working you can play around with some of these dhcp options


[david@ccxxxxxx-x xinetd.d]$ cat /etc/dhcpd.conf


authoritative;
default-lease-time 32400;
max-lease-time 64800;

subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.2 10.0.0.45;
option routers 10.0.0.1;
option broadcast-address 10.0.0.255;
option subnet-mask 255.255.255.0;
option domain-name "HOME";
option netbios-dd-server 10.0.0.1;
option netbios-node-type 8;
option netbios-name-servers 10.0.0.1;

}

put dhcpd eth1 in your startup scripts if eth1 is your lan interface
 
  


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 problems - multiple DHCP servers sat86 Linux - Networking 4 10-02-2005 06:43 AM
ADSL DHCP A-OK, but Mandrake 10.1 to be DHCP for other subnet is a problem turnbui Linux - Networking 2 08-20-2005 10:34 AM
dhcp client not getting IP from dhcp server jkmartha Linux - Networking 2 06-17-2005 09:12 AM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 06:18 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 12:24 PM

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

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