Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-19-2003, 02:13 PM   #1
LQ Newbie
Registered: Mar 2003
Posts: 28

Rep: Reputation: 15
linux gateway and DHCP

so i am trying to setup a linux gateway.

i have 2 nics configured like:

IPADDR=public IP addres
GATEWAY=pub gateway


when i start up the network both devices load fine. but, when i try to start my dhcp server I get:

Listening on Socket/eth1/
Sending on Socket/eth1/
eth1: not found
SIOCADDRT: File exists

i set up dhcpd to run on eth1 in the dhcpd start-up script. your thoughts are appreciated.
Old 03-19-2003, 02:32 PM   #2
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30

gimme your whole dhclient command line.
Old 03-19-2003, 03:27 PM   #3
LQ Newbie
Registered: Mar 2003
Posts: 28

Original Poster
Rep: Reputation: 15
i dont understand what you are looking for. I am trying to run a dhcp server.

here is my dhcpd.conf file:

subnet netmask {
default-lease-time 86400;
max-lease-time 86400;
option routers;
option ip-forwarding on;
option broadcast-address;
option subnet-mask;

# -- Global Server
host globalserver {
hardware ethernet 00:02:44:14:08:77;
Old 03-19-2003, 04:30 PM   #4
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30

host hostname {

make sure globalserver has a /etc/host entry or is in your dns server.

Is dhcpd running after you bootup and get a login?

If you run dhcpd manually after bootup, does it work? eth1 might not be configured correctly before it tries to run dhcpd on eth1, e.g. it's configured after it runs the dhcpd while init'ing.

Here's an excerpt from dhcpd's man page which may prove useful as well.

>The names of the network interfaces on which dhcpd should
> listen for broadcasts may be specified on the command
> line. This should be done on systems where dhcpd is
> unable to identify non-broadcast interfaces, but should
> not be required on other systems. If no interface names
> are specified on the command line dhcpd will identify all
> network interfaces which are up, elimininating non-broad-
> cast interfaces if possible, and listen for DHCP broad-
> casts on each interface.

Meaning you can choose what interfaces to run on by:
"dhcpd eth0 [eth1 eth2 ...]" or running on all interfaces by:


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
XP Box won't take DHCP information or an IP from Linux gateway Diademed Linux - Newbie 2 10-22-2004 05:47 PM
Configuration DHCP and Gateway on linux machine zowey Linux - Networking 4 04-03-2004 02:17 PM
Yikes! No one can get Internet thru Linux gateway/router/firewall/DHCP Avatar Linux - Networking 14 02-11-2004 08:50 PM
DHCP and Gateway Renfro Linux - Networking 1 08-28-2003 07:22 PM
*** REVERSE DHCP - Linux assumes ip according client gateway request *** domingo-br Linux - Networking 0 07-01-2003 07:53 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration