Host declaration for multiple hardware interfaces and multiple
Rainer Stumbaum
stumbaumr at yahoo.de
Wed Mar 30 06:31:05 UTC 2011
Hi,
we also run multihomed clients in our network here (using LTSP).
Instead of doing it like Glen’s way -
…
host rtp909185 { hardware ethernet 00:80:17:84:61:DA; fixed-address 10.6.9.185; option host-name "rtp909185"; }
host ib1sol909185 { hardware ethernet 00:00:5a:9a:51:78; fixed-address 10.6.22.136; }
…
I would like to do it like this, since I do not want to give the "option host-name" manually:
…
ddns-updates on;
update-static-leases on;
use-host-decl-names on;
ddns-update-style interim;
…
subnet a {
ddns-domainname "access.example.org";
ddns-hostname = host-decl-name;
...
host test01 {
hardware ethernet 00:50:56:8e:5e:c1;
fixed-address 10.20.30.21;
}
...
subnet s {
ddns-domainname "storage.example.org";
ddns-hostname = host-decl-name;
...
host test01 {
hardware ethernet 00:50:56:8e:5e:c2;
fixed-address 10.20.50.21;
}
...
Now this is obviously not possible since two host declarations with the same name are not allowed.
So I thought of doing it like this:
…
ddns-updates on;
update-static-leases on;
use-host-decl-names on;
ddns-update-style interim;
…
subnet a {
ddns-domainname "access.example.org";
ddns-hostname = host-decl-name;
...
host test01 {
hardware ethernet 00:50:56:8e:5e:c1;
fixed-address 10.20.30.21;
}
...
subnet s {
ddns-domainname "storage.example.org";
ddns-hostname = host-decl-name; <=== This should be only "test01"
...
host test01.storage {
hardware ethernet 00:50:56:8e:5e:c2;
fixed-address 10.20.50.21;
}
...
Here the question:
Is there a way to cut off ".storage" in the ddns-hostname declaration in subnet s using a dhcp-eval "coding"???
Thanks
Rainer
More information about the dhcp-users
mailing list