Witam. Do tej pory rozdawalo sie adresy tylko komputerom i voipom. Obecnie doszly STB iptv i to roznych firm.
Problem polega na tym iz chce rozdawac specyficzne parametry dla konkretnych podsieci w dhcpd.conf, a takze specyficzne parametry w rekordach hostow dla wybranych sieci. Kombinuje ale nie wiem jak to rozwiazac, chce osiagnac np cos takiego w dhcpd.conf:
authoritative; ddns-update-style none; option space ZyXEL; option ZyXEL.server code 1 = ip-address; option ZyXEL.portal code 2 = text; option ZyXEL.startpage code 3 = text; option space Kreatel; option Kreatel.bootcast-address code 10 = string; option Kreatel.kernel-protocol code 2 = string;
shared-network LMS-eth3 { subnet 193.218.132.0 netmask 255.255.255.128 { default-lease-time 86400; max-lease-time 86400; option nntp-server 193.22.83.3; option routers 193.218.132.1; option domain-name-servers 193.22.83.2,193.22.83.3; option domain-name "murka.net"; host dupa1 { hardware ethernet 00:14:85:88:E6:74; fixed-address 193.218.132.11; } host dupa2 { hardware ethernet 00:E0:4C:DB:93:5A; fixed-address 193.218.132.12; } } subnet 10.95.66.0 netmask 255.255.255.0 { default-lease-time 86400; max-lease-time 86400; option nntp-server 193.22.83.3; vendor-option-space Kreatel; option Kreatel.bootcast-address "224.2.2.2:22222"; option Kreatel.kernel-protocol "1"; option routers 10.95.66.1; option domain-name-servers 193.22.83.102; option domain-name "komster.net"; host edzia { hardware ethernet 00:14:38:05:5A:A8; fixed-address 10.95.66.10; } host waldek { hardware ethernet 00:23:8B:63:F7:39; fixed-address 10.95.66.12; } } subnet 10.95.67.0 netmask 255.255.255.0 { default-lease-time 86400; max-lease-time 86400; option nntp-server 193.22.83.3; option routers 10.95.67.1; option domain-name-servers 193.22.83.102; option domain-name "komster.net"; host STB_ZYXEL_TEST { hardware ethernet 00:23:F8:33:73:4B; fixed-address 10.95.67.10; vendor-option-space ZyXEL; option ZyXEL.server 193.22.83.102; option ZyXEL.portal "https://dupa.blada/mcmw"; } }
Utworzylem sobie druga instancje dhcp, ktora generuje mi plik dhcpd-zyxel.conf i tam mam:
shared-network LMS-eth3 { subnet 10.95.67.0 netmask 255.255.255.0 { default-lease-time 86400; max-lease-time 86400; option nntp-server 193.22.83.3; option routers 10.95.67.1; option domain-name-servers 193.22.83.102; option domain-name "komster.net"; host STB_ZYXEL_TEST { hardware ethernet 00:23:F8:33:73:4B; fixed-address 10.95.67.10; vendor-option-space ZyXEL; option ZyXEL.server 193.22.83.102; option ZyXEL.portal "https://dupa.blada/mcmw"; } } }
I dolaczam dyrektywe "include "/etc/dhcpd-zyxel.xonf""; do dhcpd.conf, ale dhcp sie pluje ze jeden interfejs logiczny dzieli kilka shared-networks:/
Jakies pomysly jak to ogarnac aby generowac takie cosik z bazy? Pozdrawiam.