Link to home
Start Free TrialLog in
Avatar of uknet80
uknet80

asked on

How to name department under DHCP server

Hello Experts,

I have been give a task to configure Linux DHCP server, we have big number of users and different departments. My question is how to name each department under dhcpd.conf file.

Example: as you know below is used to create a range of IP,
    subnet 239.252.197.0 netmask 255.255.255.0 {
      range 239.252.197.10 239.252.197.250;

but I want to specify name of department to make easer to read, not just at comment but also within configuration.  Is that possible?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of raysonlee
raysonlee

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ye basically what raysonlee said! :)
Avatar of uknet80
uknet80

ASKER

the purpose for my question was for easy reading:
for host you have (host computer_name).
I was wandering if there was any similer variable for subnet too.  I would say best is to use comment #

At the same time can you guys tell me the difference between subnet and pool.
as i can specify range of address withing subnet, then why to have pool?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of uknet80

ASKER

in that case mac address must be specified to be directed to different pools.

how about excluding IP address from rang of IP. is that possible or I have to assign a mac address to that IP address to excluded?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of uknet80

ASKER

I am going to ask you one last question, as you have a good knowledge.

My Linux DHCP server take more that 1 minutes to provide IP addresses to client, that happen when i switch PC cable connection with another DHCP server located on another network and switch it back to Linux DHCP server.  the other DHCP server that is located on another devise called MiKroTik provide IP address to client within 3 - 4 seconds. it is located behind routers and firewall.


my Linux DHCP server is on a single segment no router, client connect through switch to DHCP server. Firewall + seLinux has been disabled.

IP address of Linux DHCP server
IP            192.168.2.1
subnet:   255.255.255.0
Gateway: none


DHCP configuration:

#ddns-update-style interim;
athurative;
ddns-update-style none;
#ignore client-updates;

#log-facility local7;

subnet 192.168.2.0 netmask 255.255.255.0 {

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

        range dynamic-bootp 192.168.2.128 192.168.2.254;
        default-lease-time 60;
        max-lease-time 1620;
}


any idea my the Linux DHCP server take that long time to provide IP address?

thanks

Avatar of uknet80

ASKER

thanks for your help