LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-31-2006, 12:17 PM   #1
powah
Member
 
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276

Rep: Reputation: 30
dhcp does not get IP address


I modify /etc/dhcpd.conf, /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/sysconfig/network-scripts/ifcfg-eth1.
The client still does not see the DHCP server.
client message:
Attached TCP/IP interface to dp unit 0
Attaching interface lo0...done

Issuing DHCP request...
Can't get IP address for device.
No inet address specified for interface dp.

# ps -ef|grep dhcp
root 1965 1 0 11:43 ? 00:00:00 /usr/sbin/dhcpd eth1
root 2682 2652 0 11:44 pts/1 00:00:00 grep dhcp

/etc/dhcpd.conf is:ddns-update-style interim;

subnet 172.29.1.0 netmask 255.255.255.0 {
option routers 172.29.1.1;
range 172.29.1.2 172.29.1.253;
}

subnet 172.29.40.0 netmask 255.255.255.0 {
option routers 172.29.40.1;
range 172.29.40.2 172.29.40.253;
}

/etc/sysconfig/network-scripts/ifcfg-eth0 is:
# Intel Corp.|82547GI Gigabit Ethernet Controller
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:30:77:13:11:45
ONBOOT=yes
TYPE=Ethernet
DHCP_HOSTNAME=mwnexthop
BROADCAST=172.29.1.255
IPADDR=172.29.1.254
NETMASK=255.255.255.0
NETWORK=172.29.1.0
USERCTL=no
PEERDNS=yes
IPV6INIT=no
GATEWAY=172.29.1.1
 
Old 03-31-2006, 02:25 PM   #2
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
You are attempting to set up a DHCP server?

You have a static IP address for eth0 and it is on the same network as one of the DHCP pools in your server [config] so it should work.

You didn't show the config for eth1, assuming it is set with a static IP 172.29.40.xx/24 it should serve IP addresses from that DHCP pool as well.

The thing that's missing:
Quote:
Originally Posted by powah
# ps -ef|grep dhcp
root 1965 1 0 11:43 ? 00:00:00 /usr/sbin/dhcpd eth1
root 2682 2652 0 11:44 pts/1 00:00:00 grep dhcp
Your DHCP server appears to start up and bind only to eth1. The correct process should look like this:
Code:
darin@server:~$ ps -ef | grep dhcpd
root       833     1  0 Mar20 ?        00:00:00 /usr/sbin/dhcpd eth0 eth1
darin 31763 31751  0 19:19 pts/1    00:00:00 grep dhcpd
darin@server:~$
I'm not familiar with where in the RH GUI you can tie the DHCP server to both interfaces, but you could probably grep for dhcpd in /etc/init.d to find the script and then add eth0 to the correct line.
 
  


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
No IP Address while Using DHCP vu_t_nguyen Linux - Wireless Networking 2 12-18-2005 04:54 PM
dhcp no ip address and netmask dont match route address pengy666 Linux - Wireless Networking 1 05-08-2005 10:33 AM
DHCP cannot get IP address friend3141 SUSE / openSUSE 4 01-28-2005 10:27 PM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 11:33 AM
IP address / DHCP supersport Linux - General 1 11-01-2001 07:30 PM

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

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