LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-15-2002, 11:28 AM   #1
d3funct
Member
 
Registered: Jun 2001
Location: Centralia, WA
Posts: 274

Rep: Reputation: 31
DHCP and ATT Broadband Internet


I'm connected to the internet using AT&T Broadband internet on ETH1 and my internal network (10.10.5.*/24) on ETH0. I want to setup DHCP for my intenral network, but when I setup /etc/dhcp.conf and start the dhcpd daemon I get a message stating I need to enter a subnet declaration for the AT&T network also. How can I get DHCP setup for my internal network and disregard AT&T, I don't want to inadvertantly server DHCP to AT&T, that would be BAD. Thanks for any help
 
Old 03-15-2002, 03:48 PM   #2
[BHBS]=TK
Member
 
Registered: Aug 2001
Location: Salt Lake City, UT
Distribution: REDHAT 7.1
Posts: 32

Rep: Reputation: 15
Let's see.. Fist of all you run dhcpcd on eth1 which is the daemon client correct? And you are looking to run dhcpd which is the server daemon. They are two different programs with two different configuration files.

..:
dhcpd.conf
dhcpd.leases

The second one can be empty, but it has to be created using touch or emacs. I think they reside in /etc/ and /etc/dhcpd/ or something like that.

Try the man pages for the configuration file:
http://www.tac.eu.org/cgi-bin/man-cgi?dhcpd.conf+5
 
Old 03-15-2002, 04:47 PM   #3
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
I currently use DHCPD from ISC. If you download it there are very well written documents inside of it. I was able to install fairly easily.
I would suggest getting version 2 from this site: ISC
 
Old 03-15-2002, 04:55 PM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
dhcpd tries to start broadcasting on all eth devices by default unless you give it the argument of an eth device. Also, I'm pretty certain you have to ifconfig your card up to be on whatever subnet you're going to be broadcasting to before you start the daemon. For instance, a .conf file like:

subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 64.30.160.2;
option time-offset -5; # Eastern Standard Time
range dynamic-bootp 192.168.0.10 192.168.0.240;
default-lease-time 86400;
}

in /home/bob/

would be invoked on eth0 with:

dhcpd eth0 -cf /home/bob/dhcpd.conf

The default is to look in /etc so you probably don't need the -cf flag, I've just got a number of .conf files depending on the week and the house derangement, but having a couple is an easy way to test and debug.

Cheers,

Finegan
 
  


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
Broadband Internet connection in Xandros rayraven Linux - Networking 1 11-01-2005 10:36 AM
Broadband Connection Via Router Intermittent - DHCP Conflict? JamboUK Linux - Networking 1 05-06-2004 08:01 PM
Broadband Internet Help! TheShemeta Slackware 10 02-04-2004 07:58 PM
DHCP/Lan/Broadband on RH7.2 hath Linux - Networking 9 01-10-2004 04:25 PM
Error: host name not found: Comcast(frmr ATt) broadband benmullin Linux - Networking 1 03-20-2003 02:27 PM

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

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