Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need help (DHCP+DNS) [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
KUV
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2005
Posts: 128

PostPosted: Thu Nov 24, 2005 5:05 am    Post subject: Need help (DHCP+DNS) [solved] Reply with quote

Взялся вот настраивать связку этих сабжей. Делал все по ману, сначала была бага с тем что там неправильно написан алгоритм шифрования ключа - HMAC-MD5.SIG-ALG.REG.INT named не воспринимает, надо просто HMAC-MD5. А теперь вот застрял на другой баге.
Итак: комп с которого ведется тестовое подключение - 192.168.108.165
Собственно сервер: 192.168.108.166
В итоге вот что в логе:
Code:
Nov 24 07:59:43 [dhcpd] Wrote 1 leases to leases file.
Nov 24 07:59:47 [dhcpd] Unable to add forward map from kuv-nb.network to 192.168.108.165: timed out
Nov 24 07:59:47 [dhcpd] DHCPREQUEST for 192.168.108.165 from 00:0e:a6:ba:18:14 (kuv-nb) via br0
Nov 24 07:59:47 [dhcpd] DHCPACK on 192.168.108.165 to 00:0e:a6:ba:18:14 (kuv-nb) via br0


Вообще, может кто-то уже делал такую настройку, может подкинете свои named.conf и dhcpd.conf?


Last edited by KUV on Thu Nov 24, 2005 4:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
KUV
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2005
Posts: 128

PostPosted: Thu Nov 24, 2005 5:16 am    Post subject: Reply with quote

Мои конфиги.

dhcpd.conf:
Code:
ddns-update-style interim;

key DHCP_UPDATER {
    algorithm HMAC-MD5;
    secret blablabla;
}

default-lease-time 600;
max-lease-time 7200;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

zone network. {
    primary 127.0.0.1;
    key DHCP_UPDATER;
}

zone 168.192.IN-ADDR.ARPA. {
    primary 127.0.0.1;
    key DHCP_UPDATER;
}

subnet 192.168.0.0 netmask 255.255.128.0 {
    option subnet-mask 255.255.128.0;
    option broadcast-address 192.168.127.255;
    range 192.168.10.1 192.168.126.250;
}


named.conf:
Code:
options {
    directory "/var/bind";
    listen-on { 127.0.0.1; 192.168.108.166; };
    pid-file "/var/run/named/named.pid";
};

logging {
    channel update_debug {
        file "/var/log/named/update.log";
        severity        debug 3;
        print-category  yes;
        print-severity  yes;
        print-time      yes;
    };
    channel security_info {
        file "/var/log/named/auth.log";
        severity        info;
        print-category  yes;
        print-severity  yes;
        print-time      yes;
    };
    category update { update_debug; };
    category security { security_info; };
};

zone "127.IN-ADDR.ARPA" IN {
    type master;
    file "pri/127.zone";
    allow-update { none; };
    notify no;
};

key DHCP_UPDATER {
    algorithm HMAC-MD5;
    secret blablabla;
};

zone "168.192.IN-ADDR.ARPA" IN {
    type master;
    file "pri/db.192.168";
    allow-update { key DHCP_UPDATER; };
};

zone "network" {
    type master;
    file "pri/db.network";
    allow-update { key DHCP_UPDATER; };
};
Back to top
View user's profile Send private message
cha-chaynik
Tux's lil' helper
Tux's lil' helper


Joined: 18 Feb 2005
Posts: 115
Location: Russia, St.Petersburg

PostPosted: Thu Nov 24, 2005 12:46 pm    Post subject: Reply with quote

Мой работающий dhcpd.conf:

Code:

ddns-updates on;
option domain-name "office.spb.nestle-waters.ru";
option domain-name-servers 10.203.78.11, 10.203.78.17;
ddns-domainname "office.spb.nestle-waters.ru";
option netbios-name-servers 10.203.78.11;
option routers 10.203.78.11;
get-lease-hostnames false;
use-host-decl-names on;
server-identifier 10.203.78.11;
default-lease-time 172800;
ddns-update-style interim;
key DHCP_UPDATER {
    algorithm HMAC-MD5.SIG-ALG.REG.INT;
    secret xxxxxxxxxxxxxxxxxxxxxxxxx;
    }
zone office.spb.nestle-waters.ru. {
    primary 127.0.0.1;
    key DHCP_UPDATER;
    }
zone 78.203.10.in-addr.arpa. {
    primary 127.0.0.1;
    key DHCP_UPDATER;
    }
shared-network office {
        subnet 10.203.78.0 netmask 255.255.255.0 {
                option routers 10.203.78.11;
                option subnet-mask 255.255.255.0;
                range dynamic-bootp 10.203.78.100 10.203.78.204;
            }
        }
Back to top
View user's profile Send private message
KUV
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2005
Posts: 128

PostPosted: Thu Nov 24, 2005 4:36 pm    Post subject: Reply with quote

Разобрался таки=) ошибка была в том что файлы с динамическими зонами я создал пустые.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum