dhcp configuration options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a large datacenter about 2000 systems or more so my dhcpd.conf is very large (1800 lines). I played around with the cobbler dhcp management but I don't like they way it inserts the data.


here is a small section of my dhcpd.conf file. There are lots of groups in the file.

group {
        option routers 192.168.5.1;
        option subnet-mask 255.255.255.0;
host linuxhost1 { hardware ethernet 00:02:0D:60:12:0C; fixed- address 192.168.5.48; } host linuxhost12 { hardware ethernet 00:02:0D:60:12:0C; fixed-address 192.168.5.49; } host linuxhost1y1 { hardware ethernet 00:02:0D:60:12:0C; fixed-address 192.168.5.50; } host paylinuxhost1 { hardware ethernet 00:02:0D:60:12:0C; fixed-address 192.168.5.51; } host linuxhost3 { hardware ethernet 00:02:0D:60:12:0C; fixed- address 192.168.5.56; } host linuxhostcvs1 { hardware ethernet 00:02:0D:60:12:0C; fixed-address 192.168.5.69; } host linuxhost-db1 { hardware ethernet 00:02:0D:60:12:0C; fixed-address 192.168.5.139; } host linuxhost-stg2 { hardware ethernet 00:02:0D:60:12:0C; fixed-address 192.168.5.130; } host linuxhost-ref1 { hardware ethernet 00:02:0D:60:12:0C; fixed-address 192.168.5.131; } host linuxhost-stg1 { hardware ethernet 00:02:0D:60:12:0C; fixed-address 192.168.5.129; } host linuxhost-app1 { hardware ethernet 00:02:0D:60:12:0C; fixed-address 192.168.5.132; } host linuxhostw1 { hardware ethernet 00:02:0D:60:12:0C; fixed-address 192.168.5.133; } host linuxhost { hardware ethernet 00:02:0D:60:12:0C; fixed- address 192.168.5.134; } host linuxhost-app1 { hardware ethernet 00:02:0D:60:12:0C; fixed-address 192.168.5.136; } host linuxhost-app2 { hardware ethernet 00:02:0D:60:12:0C; fixed-address 192.168.5.137; } host linuxhost-db2 { hardware ethernet 00:02:0D:60:12:0C; fixed-address 192.168.5.138; }
}

When cobbler adds an entry it does the following:

host label1  {
	hardware ethernet 00:50:56:ae:44:c5;
        fixed-address 192.167.5.202;
	next-server 192.168.0.1;
}

Now, this is nice but when you have 2000 entries it gets quite messy. Will the commands "cobbler sync" and "cobbler list" be able to handle the large amount of entries?


Does anyone know how I can get cobbler to:
     A. change label1 to the hostname
     B. Get cobbler to remove the new lines
     C. Determine which group to add the entry too based on IP address

So that it just adds a line like the following to the correct group

host linuxhost-db2 { hardware ethernet 00:02:0D:60:12:0C; fixed- address 192.168.5.138; }

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux