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 06-17-2005, 07:17 AM   #1
jkmartha
Member
 
Registered: Apr 2005
Location: india
Distribution: Redhat 9
Posts: 66

Rep: Reputation: 15
dhcp client not getting IP from dhcp server


fedora-2.
configured dhcp server.

# cat /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 {

# --- default gateway
option routers 192.168.1.5;
option subnet-mask 255.255.255.0;

# option nis-domain "domain.org";
# option domain-name "domain.org";
# option domain-name-servers 192.168.1.5;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range 192.168.1.128 192.168.1.254;
default-lease-time 21600;
max-lease-time 43200;
}


clinet is also fedora -2 . i used # netconfig to configure dhcp client options . when i use # ifconfig , i donot get a ip from the dhcp server. i get the same old static IP which was earlier configured. why is it so ? how can i get a ip from the dhcp server on the client ? in windows , .....ipconfig /flushdns or ipconfig /renew or is used.
 
Old 06-17-2005, 07:56 AM   #2
lukebeales
Member
 
Registered: Oct 2003
Location: Australia
Distribution: Slackware/LFS/Ubuntu
Posts: 89

Rep: Reputation: 15
I don't know if this is the only way, but I always use dhcpcd which goes off and finds the dhcp server, and sets the ip and routes by itself without you having to use ifconfig. You would know better than I do where that is in fedora but give dhcpcd a try.
 
Old 06-17-2005, 08:12 AM   #3
cowanrl
Member
 
Registered: Dec 2004
Location: Western Pennsylvania, USA
Distribution: Red Hat
Posts: 150

Rep: Reputation: 15
Do you get an IP via DHCP when the client is rebooted?

After you make the changes with netconfing, try executing:

ifconfig eth0 down
ifconfig eth0 up

to take the interface down, then back up and get an IP address.

You should get an IP address via DHCP when the machine is started up.
 
  


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
DHCP server and client trebek Linux - Networking 3 07-25-2005 03:53 AM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 05:18 AM
how can a DHCP client get the DHCP server IP? AshesOfTime Linux - Networking 3 11-24-2004 06:50 AM
DHCP client and server ?? deepika Linux - Networking 3 10-01-2003 01:20 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM

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

All times are GMT -5. The time now is 02:43 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
Open Source Consulting | Domain Registration