Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Changes in dhcpd.conf do not make a difference in DHCP service behaviour Post 303031954 by ekorgur on Friday 8th of March 2019 05:42:42 AM
Old 03-08-2019
I couldnt get the OS version yet. DHCP server is administrated by somebody else. I will update it soon.
DHCP Server 4.1.1-P1

I mentioned before that I was going to copy the /etc/dhcpd.conf to /etc/dhcp/dhcpd.conf
I did that and restarted the service.
Now I started to receive a new kind of error and the service doesnt start. How it was working before with /etc/dhcpd.conf is still something I have no idea.

Code:
Mar  7 16:19:30 trber dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Mar  7 16:19:30 trber dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Mar  7 16:19:30 trber dhcpd: All rights reserved.
Mar  7 16:19:30 trber dhcpd: For info, please visit .......
Mar  7 16:19:30 trber dhcpd: WARNING: Host declarations are global.  They are not limited to the scope you declared them in.
Mar  7 16:19:30 trber dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Mar  7 16:19:30 trber dhcpd: Wrote 0 deleted host decls to leases file.
Mar  7 16:19:30 trber dhcpd: Wrote 0 new dynamic host decls to leases file.
Mar  7 16:19:30 trber dhcpd: Wrote 0 leases to leases file.
Mar  7 16:19:30 trber dhcpd:
Mar  7 16:19:30 trber dhcpd: No subnet declaration for eth0 (10.210.148.7).
Mar  7 16:19:30 trber dhcpd: ** Ignoring requests on eth0.  If this is not what
Mar  7 16:19:30 trber dhcpd:    you want, please write a subnet declaration
Mar  7 16:19:30 trber dhcpd:    in your dhcpd.conf file for the network segment
Mar  7 16:19:30 trber dhcpd:    to which interface eth0 is attached. **
Mar  7 16:19:30 trber dhcpd:
Mar  7 16:19:30 trber dhcpd:
Mar  7 16:19:30 trber dhcpd: Not configured to listen on any interfaces!
Mar  7 16:19:30 trber dhcpd:
Mar  7 16:19:30 trber dhcpd: This version of ISC DHCP is based on the release available
Mar  7 16:19:30 trber dhcpd: on ftp.isc.org.  Features have been added and other changes
Mar  7 16:19:30 trber dhcpd: have been made to the base software release in order to make
Mar  7 16:19:30 trber dhcpd: it work better with this distribution.
Mar  7 16:19:30 trber dhcpd:
Mar  7 16:19:30 trber dhcpd: Please report for this software via the Red Hat Bugzilla site:
Mar  7 16:19:30 trber dhcpd:     ......
Mar  7 16:19:30 trber dhcpd:
Mar  7 16:19:30 trber dhcpd: exiting.

Subnet declaration was defined as below.

Code:
ddns-update-style none;

subnet 172.17.126.192 netmask 255.255.255.224 {
   option broadcast-address 172.17.126.223;
   next-server 172.17.126.195;
   option routers 172.17.126.195;

   host fsb1 {
      option host-name "fsb1";
      option root-path "/gsn/nodes/fsb1";
      hardware ethernet XX:XX:XX:XX:45:06;
      fixed-address 172.17.126.200;
      filename "/BootFiles/fsb_gep3/linux/kernel/pxelinux.0";
   }

Because of the error seen in messages logs, or something else, the dhcpd service doesnt work anymore.
 

10 More Discussions You Might Find Interesting

1. Linux

dhcpd.conf

I have intall a REdhat 9.0 as a server and Ive configure to act as a DHCP however Im having technical problems b/c the file /etc/dhcpd.conf does not exists. I went to the text edit and I created : subnet 192.192.168.100.0 netmask 255.255.255.0 { range 192.168.100.10 192.168.100.150;... (1 Reply)
Discussion started by: keliy1
1 Replies

2. Solaris

DHCP Service

Thanks for reply , i realy love using unix ... is there anyone who can give me an instruction to configure DHCP Server in Sun Solaris 10 just a quick guide .. i know how to configure DHCP Server in Windows operating System ..But i want also learn how to configure it from the SUN SOLARIS 10...... (6 Replies)
Discussion started by: giancarlodjabon
6 Replies

3. Shell Programming and Scripting

Shell/Perl Script to edit dhcpd.conf

Hi, I need to get a script together to edit the dhcp service configuration file dhcpd.conf. Mac addresses are defined in classes ex. class "HOST1" { match if substring (hardware, 1,18)=00:11:11:FF:FF:FF;} class "HOST2" ... class "HOST3" ... ... followed by allow or deny statements:... (4 Replies)
Discussion started by: sahilb
4 Replies

4. Linux

dhcpd.conf - static route

Hi, I've setup DHCP Server on RH linux AS3 and everything works fine except static routes. They are not getting effected on client systems. My dhcpd.conf: +++++++++++ ddns-update-style interim; ddns-updates off; option domain-name-servers 192.168.116.122; option domain-name... (3 Replies)
Discussion started by: prvnrk
3 Replies

5. Shell Programming and Scripting

delete dhcp.conf entry using sed

I am trying to use sed to remove entries from my dhcpd.conf file. The form of the file is: host foo { option 1 option 2 } host bar { option 1 option 2 } I was trying to use a label like: sed -e :a -e "s/^host bar {*//g;/{/N;//ba" /etc/dhcpd.conf... (2 Replies)
Discussion started by: tizatron
2 Replies

6. Solaris

Solaris Install over WAN(where to keep wanboot.conf file for DHCP client)

I am trying to configure my jumpstart server to install Solaris 10 on a T1000 machine(target) over WAN. I do not know the IP address of the client, i wish the client to get the IP address from DHCP. how do i configure my /etc/netboot hierarchy. One option would be to keep the wanboot.conf in... (1 Reply)
Discussion started by: hemalsid
1 Replies

7. UNIX for Dummies Questions & Answers

Difference between configure/make/make install.

Hi, While installation of apache on linux, we perform the below tasks. 1) Untar 2) configure 3) make 4) make install. I wanted to understand the difference and working of configure/make/make install. Can any one help me understanding this? Thanks in advance. (1 Reply)
Discussion started by: praveen_b744
1 Replies

8. Shell Programming and Scripting

Help with Perl to change dhcpd.conf file

Hi all, I am too new for this stuff and i am lost in perl tutorials. I need help to change dhcp entries in .conf file with a perl script. The file entries are like below : host bertha-clp-0 { hardware ethernet AA:0A:A0:00:6c:40; fixed-address 10.10.10.72; option... (6 Replies)
Discussion started by: ekckabatop
6 Replies

9. Shell Programming and Scripting

Shell Script to check dhcp conf file

Hi, I have to prepare a script to check the dhcp conf file. The script has to check for a specific parameter called circuit ID. If the Circuit ID is unique it should show the output that it is unique and if it is duplicate it should show that the Circuit ID is duplicate. I have prepared the... (4 Replies)
Discussion started by: Crazy_Nix
4 Replies

10. Shell Programming and Scripting

Listing IPs from the dhcpd.conf

Hy everybody, Within a dhcpd.conf file, we got some fixed IP adresses from 192.168.0.1 - 192.168.0.254. Sample: #ddns-update-style interim; ddns-update-style none; ignore client-updates; deny client-updates; authoritative; #### By red for PXE Booting allow booting; allow bootp; ###... (17 Replies)
Discussion started by: hermouche
17 Replies
omshell(1)						      General Commands Manual							omshell(1)

NAME
omshell - OMAPI Command Shell SYNOPSIS
omshell DESCRIPTION
The OMAPI Command Shell, omshell, provides an interactive way to connect to, query, and possibly change, the ISC DHCP Server's state via OMAPI, the Object Management API. By using OMAPI and omshell, you do not have to stop, make changes, and then restart the DHCP server, but can make the changes while the server is running. Omshell provides a way of accessing OMAPI. OMAPI is simply a communications mechanism that allows you to manipulate objects. In order to actually use omshell, you must understand what objects are available and how to use them. Documentation for OMAPI objects can be found in the documentation for the server that pro- vides them - for example, in the dhcpd(1) manual page and the dhclient(1) manual page. CONTRIBUTIONS
This software is free software. At various times its development has been underwritten by various organizations, including the ISC and Vixie Enterprises. The development of 3.0 has been funded almost entirely by Nominum, Inc. At this point development is being shepherded by Ted Lemon, and hosted by the ISC, but the future of this project depends on you. If you have features you want, please consider implementing them. LOCAL AND REMOTE OBJECTS
Throughout this document, there are references to local and remote objects. Local objects are ones created in omshell with the new com- mand. Remote objects are ones on the server: leases, hosts, and groups that the DHCP server knows about. Local and remote objects are associated together to enable viewing and modification of object attributes. Also, new remote objects can be created to match local objects. OPENING A CONNECTION
omshell is started from the command line. Once omshell is started, there are several commands that can be issued: server address where address is the IP address of the DHCP server to connect to. If this is not specified, the default server is 127.0.0.1 (local- host). port number where number is the port that OMAPI listens on. By default, this is 7911. key name secret This specifies the TSIG key to use to authenticate the OMAPI transactions. name is the name of a key defined in dhcpd.conf with the omapi-key statement. The secret is the secret key generated from dnssec-keygen or another key generation program. connect This starts the OMAPI connection to the server as specified by the server statement. CREATING LOCAL OBJECTS
Any object defined in OMAPI can be created, queried, and/or modified. The object types available to OMAPI are defined in dhcpd(8) and dhclient(8). When using omshell, objects are first defined locally, manipulated as desired, and then associated with an object on the server. Only one object can be manipulated at a time. To create a local object, use new object-type object-type is one of group, host, or lease. At this point, you now have an object that you can set properties on. For example, if a new lease object was created with new lease, any of a lease's attributes can be set as follows: set attribute-name = value Attribute names are defined in dhcpd(8) and dhclient(8). Values should be quoted if they are strings. So, to set a lease's IP address, you would do the following: set ip-address = 192.168.4.50 ASSOCIATING LOCAL AND REMOTE OBJECTS
At this point, you can query the server for information about this lease, by open Now, the local lease object you created and set the IP address for is associated with the corresponding lease object on the DHCP server. All of the lease attributes from the DHCP server are now also the attributes on the local object, and will be shown in omshell. VIEWING A REMOTE OBJECT
To query a lease of address 192.168.4.50, and find out its attributes, after connecting to the server, take the following steps: new lease This creates a new local lease object. set ip-address = 192.168.4.50 This sets the local object's IP address to be 192.168.4.50 open Now, if a lease with that IP address exists, you will see all the information the DHCP server has about that particular lease. Any data that isn't readily printable text will show up in colon-separated hexadecimal values. In this example, output back from the server for the entire transaction might look like this: > new "lease" obj: lease > set ip-address = 192.168.4.50 obj: lease ip-address = c0:a8:04:32 > open obj: lease ip-address = c0:a8:04:32 state = 00:00:00:02 dhcp-client-identifier = 01:00:10:a4:b2:36:2c client-hostname = "wendelina" subnet = 00:00:00:06 pool = 00:00:00:07 hardware-address = 00:10:a4:b2:36:2c hardware-type = 00:00:00:01 ends = dc:d9:0d:3b starts = 5c:9f:04:3b tstp = 00:00:00:00 tsfp = 00:00:00:00 cltt = 00:00:00:00 As you can see here, the IP address is represented in hexadecimal, as are the starting and ending times of the lease. MODIFYING A REMOTE OBJECT
Attributes of remote objects are updated by using the set command as before, and then issuing an update command. The set command sets the attributes on the current local object, and the update command pushes those changes out to the server. Continuing with the previous example, if a set client-hostname = "something-else" was issued, followed by an update command, the output would look about like this: > set client-hostname = "something-else" obj: lease ip-address = c0:a8:04:32 state = 00:00:00:02 dhcp-client-identifier = 01:00:10:a4:b2:36:2c client-hostname = "something-else" subnet = 00:00:00:06 pool = 00:00:00:07 hardware-address = 00:10:a4:b2:36:2c hardware-type = 00:00:00:01 ends = dc:d9:0d:3b starts = 5c:9f:04:3b tstp = 00:00:00:00 tsfp = 00:00:00:00 cltt = 00:00:00:00 > update obj: lease ip-address = c0:a8:04:32 state = 00:00:00:02 dhcp-client-identifier = 01:00:10:a4:b2:36:2c client-hostname = "something-else" subnet = 00:00:00:06 pool = 00:00:00:07 hardware-address = 00:10:a4:b2:36:2c hardware-type = 00:00:00:01 ends = dc:d9:0d:3b starts = 5c:9f:04:3b tstp = 00:00:00:00 tsfp = 00:00:00:00 cltt = 00:00:00:00 NEW REMOTE OBJECTS
New remote objects are created much in the same way that existing server objects are modified. Create a local object using new, set the attributes as you'd wish them to be, and then create the remote object with the same properties by using create Now a new object exists on the DHCP server which matches the properties that you gave your local object. Objects created via OMAPI are saved into the dhcpd.leases file. For example, if a new host with the IP address of 192.168.4.40 needs to be created it would be done as follows: > new host obj: host > set name = "some-host" obj: host name = "some-host" > set hardware-address = 00:80:c7:84:b1:94 obj: host name = "some-host" hardware-address = 00:80:c7:84:b1:94 > set hardware-type = 1 obj: host name = "some-host" hardware-address = 00:80:c7:84:b1:94 hardware-type = 1 > set ip-address = 192.168.4.40 obj: host name = "some-host" hardware-address = 00:80:c7:84:b1:94 hardware-type = 1 ip-address = c0:a8:04:28 > create obj: host name = "some-host" hardware-address = 00:80:c7:84:b1:94 hardware-type = 00:00:00:01 ip-address = c0:a8:04:28 > Your dhcpd.leases file would then have an entry like this in it: host some-host { dynamic; hardware ethernet 00:80:c7:84:b1:94; fixed-address 192.168.4.40; } The dynamic; line is to denote that this host entry did not come from dhcpd.conf, but was created dynamically via OMAPI. RESETTING ATTRIBUTES
If you want to remove an attribute from an object, you can do this with the unset command. Once you have unset an attribute, you must use the update command to update the remote object. So, if the host "some-host" from the previous example will not have a static IP address anymore, the commands in omshell would look like this: obj: host name = "some-host" hardware-address = 00:80:c7:84:b1:94 hardware-type = 00:00:00:01 ip-address = c0:a8:04:28 > unset ip-address obj: host name = "some-host" hardware-address = 00:80:c7:84:b1:94 hardware-type = 00:00:00:01 ip-address = <null> > REFRESHING OBJECTS
A local object may be refreshed with the current remote object properties using the refresh command. This is useful for object that change periodically, like leases, to see if they have been updated. This isn't particularly useful for hosts. DELETING OBJECTS
Any remote object that can be created can also be destroyed. This is done by creating a new local object, setting attributes, associating the local and remote object using open, and then using the remove command. If the host "some-host" from before was created in error, this could be corrected as follows: obj: host name = "some-host" hardware-address = 00:80:c7:84:b1:94 hardware-type = 00:00:00:01 ip-address = c0:a8:04:28 > remove obj: <null> > HELP
The help command will print out all of the commands available in omshell, with some syntax pointers. SEE ALSO
dhcpctl(3), omapi(3), dhcpd(8), dhclient(8), dhcpd.conf(5), dhclient.conf(5). AUTHOR
omshell was written by Ted Lemon of Nominum, Inc. Information about Nominum can be found at http://www.nominum.com. This preliminary doc- umentation was written by Wendy Verschoor of Nominum, Inc., while she was testing omshell. omshell(1)
All times are GMT -4. The time now is 05:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy