LinuxQuestions.org
Visit Jeremy's Blog.
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-19-2003, 03:13 PM   #1
weazy
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:

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=public IP addres
NETMASK=255.255.255.0
GATEWAY=pub gateway
TYPE=Ethernet
USERCTL=no
PEERDNS=no

DEVICE=eth1
IPADDR=192.168.0.1
ONBOOT=yes

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/192.168.0.0
Sending on Socket/eth1/192.168.0.0
eth1: not found
exiting.
[FAILED]
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, 03:32 PM   #2
Blindsight
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30
syntax

gimme your whole dhclient command line.
 
Old 03-19-2003, 04:27 PM   #3
weazy
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 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.2 192.168.0.60;
default-lease-time 86400;
max-lease-time 86400;
option routers 192.168.0.1;
option ip-forwarding on;
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;

# -- Global Server
host globalserver {
hardware ethernet 00:02:44:14:08:77;
fixed-address 192.168.0.3;
}
}
 
Old 03-19-2003, 05:30 PM   #4
Blindsight
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30
dhcpd

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:
"dhcpd".
 
  


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


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