Question on the dhcp-server configuration for a fixed IP address.


 
Thread Tools Search this Thread
Operating Systems Linux Debian Question on the dhcp-server configuration for a fixed IP address.
# 1  
Old 01-27-2010
Question on the dhcp-server configuration for a fixed IP address.

Hi ,

when i configure my server with a fixed ip address in dhcpd.conf as below

Code:
subnet 172.21.151.0 netmask 255.255.255.0 {
  range 172.21.151.66 172.21.151.66;

}
host switch {
  hardware ethernet 00:05:30:02:DB:31;
   fixed-address 172.21.151.66;
}


when i start dhcpd server , it is assigning the ip address to some other node in the network.
is it a expected behavior ?
if so , some on please tell me how to assign fixed ip address to a client from dhcp server such that it wont assign to other clients the same ip address.
i very much need it .

Thanks
Gopi Krishna P

Last edited by pludi; 01-27-2010 at 05:27 AM.. Reason: code tags, please...
# 2  
Old 02-08-2010
DHCP is sometimes frustratingly intelligent about assigning addresses. If said switch already has a lease -- or someone else already has a lease on that same address, or even if some random machine is misconfigured to use it -- that might take precedence over anything statically assigned. I think this is because there's no proactive way for a DHCP server to tell a client to go away and be something else. You might have to delete some leases and power cycle things.

Last edited by Corona688; 02-08-2010 at 01:41 PM..
# 3  
Old 02-09-2010
You are assigning a static ip that is in your dynamic range of ip's.
This is why another machine is getting this ip. The range option is for the dynmaic ip pool that can be randomly assinged to machines that don't have static rules. If you change the fixed-address option to something outside this range it should work fine. Also you have only one ip in your range option so only one machine can get a dynamic ip.



Quote:
Originally Posted by Gopi Krishna P
Hi ,

when i configure my server with a fixed ip address in dhcpd.conf as below

Code:
subnet 172.21.151.0 netmask 255.255.255.0 {
  range 172.21.151.66 172.21.151.66;
 
}
host switch {
  hardware ethernet 00:05:30:02:DB:31;
   fixed-address 172.21.151.66;
}


when i start dhcpd server , it is assigning the ip address to some other node in the network.
is it a expected behavior ?
if so , some on please tell me how to assign fixed ip address to a client from dhcp server such that it wont assign to other clients the same ip address.
i very much need it .

Thanks
Gopi Krishna P
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

DHCP option 90 Configuration on Linux

Hello Friends, I am looking for the configuration steps to enable option 90 on Linux DHCP server.Also i need to add secret id to be configured for option 90. can someone help me in providing the steps with parameter values . Thanks in advance, Veera (0 Replies)
Discussion started by: veera_s99
0 Replies

2. IP Networking

Get DHCP relay interfaces IP address using DHCP

Hi All , please view the set up below: ------------------------------------------------------------------- | DHCP Server |-----------| ROUTER & |-----------| Clients | | 192.168.99.1 | - -<eth1>| DHCP-RELAY|<eth2>-- | 192.168.88.X | ... (2 Replies)
Discussion started by: gdangoor
2 Replies

3. Red Hat

DHCP Server address

Where can you find your DHCP Server address? I checked all of the files that this mentioned with no luck. Quick HOWTO : Ch08 : Configuring the DHCP Server - Linux Home Networking (6 Replies)
Discussion started by: cokedude
6 Replies

4. IP Networking

DHCP Server on Vxworks multi interface question

Hi, We currently operate a DHCP Server on Vxworks system. It seems that the server is functioning only over the boot interface. While trying to use it on a different interface the DHCP client messages seems to reach the interface but stay without response. From a... (1 Reply)
Discussion started by: zohara
1 Replies

5. UNIX for Advanced & Expert Users

Doubt on fixed ip address assinged by dhcp server?

we can assign a dynamic and fixed ip address for a dhcp_client through dhcp server , if it is dynamic ip address , it would be having lease time and renews after half of the leasetime gets over. would the same funda applies for fixed ip address to .. i dont think so ... please confirm on the... (3 Replies)
Discussion started by: Gopi Krishna P
3 Replies

6. UNIX for Dummies Questions & Answers

DNS & DHCP configuration

Hi to all. Sorry for my bad english. For pure self-educational, not professional, purposes, I am studying how to configure a server with several services operating on it. For my experiment I'm using VirtualBox 3.1.4 on a WinXP host with 3 FreeBSD guests; one acts as a DHCP + DNS server; the... (0 Replies)
Discussion started by: marboxer
0 Replies

7. IP Networking

dhcp configuration for MAC address

hi I need a dhcp congfigured to give some of my clients IP regarding their MAC addresses and rest should get any IP from same pool. I am not sure what to add dhcpd.conf to provide such a pool or group or class. I tried with this but seems not good enough. <<<<dhcpd.conf>>>> ... (2 Replies)
Discussion started by: ouzist
2 Replies

8. UNIX for Dummies Questions & Answers

Solaris Machine IP Configuration via DHCP

I have a new solaris machine and I am trying to bring the same on network. The IP assignemnt is via DHCP. I want to know as which files need to be modified to include DHCP server IP in order that the machine gets its IP via DHCP server. Thanks in Advance. :) (1 Reply)
Discussion started by: Ashvin Gaur
1 Replies

9. Red Hat

DHCP configuration

Hi, I'm just wanna configure dhcp server using redhat enterprise 4.0 as. can anyone help me on this, on setting using two NICs. Thankx. (1 Reply)
Discussion started by: johan_sysv
1 Replies

10. IP Networking

DHCP server question

hi all... i have a question about of the dhcp server.... how i can configurate 3 vlans on the server....? thank you (5 Replies)
Discussion started by: chanfle
5 Replies
Login or Register to Ask a Question