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 08-23-2000, 02:48 PM   #1
bfloeagle
Member
 
Registered: Jun 2000
Location: Upstate New York
Distribution: Ubuntu
Posts: 158

Rep: Reputation: 30
Question


I have two ethernet cards installed on my Linux (RH 6.2) box running a DHCP server. DHCPD tells me that it is listening for requests on both of my cards.

I want it to only listen to requests on the ethernet card that is for my internal network (eth0) so people from the internet (connected via my second ethernet card - eth1) do not get a response from my DCHP server and so I dont get busted for running a server behind my ISP... ;-)

How do I tell DHCPD to only use eth0?
 
Old 08-23-2000, 06:52 PM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,002

Rep: Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730
When you start dhcpd start it with:
Code:
dhcpd [options] eth0
If you don't specify an interface name on the command line dhcpd will identify all network interfaces that are up.
 
Old 08-23-2000, 07:19 PM   #3
bfloeagle
Member
 
Registered: Jun 2000
Location: Upstate New York
Distribution: Ubuntu
Posts: 158

Original Poster
Rep: Reputation: 30
Question At startup?

Is there a way to make DHCPD do that when it first loads at bootup?

(Because I am Newbie and have no clue - What does [options] mean in the command you gave me?)
 
Old 08-23-2000, 07:57 PM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,002

Rep: Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730
If you need to start the server with any options you would insert them before the eth0. If you are reading a man page or a help file and you see [anything] it usually means it is optional (but NOT always). You should have a startup script in /etc/rc.d/init.d/ (probably named dhcpd). Open it up in your favorite text editor and add the eth0.
 
  


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
Basic question on hostname under DHCP madangsweh Linux - Networking 6 12-09-2004 04:55 PM
Basic DNS/DHCP question sporkfish Linux - Networking 5 07-14-2004 07:30 PM
basic DHCP between two PC pabloromero Linux - Networking 5 11-25-2003 10:02 AM
basic question jaina2 Linux - Newbie 1 07-26-2003 02:44 AM
Very basic question rajanr Linux - Newbie 2 07-23-2003 03:13 AM

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

All times are GMT -5. The time now is 04:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration