Jump to content

isc-dhcpd офферит не тот адрес

Ребят подскажите, почему дхцп в начале офферит ипник клиенту (хотя он не должен офферить), а потом говорит nack?

Вот конфиг дхцп:

default-lease-time 600;

max-lease-time 7200;

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;

 

#class "logging" {

# log(info, concat("Agent IP: ", binary-to-ascii(10, 8, ".", packet(24, 4))));

#}

 

class "test-user" {

match if ((binary-to-ascii(16, 8, ":", substring(hardware, 1, 6)) = "54:55:55:55:55:20") and (option agent.circuit-id = "eth0.100"));

}

 

#class "test-user2" {

# match if binary-to-ascii(16, 8, ":", substring(hardware, 1, 6)) = "12:43:ba:cb:34:22" and option agent.circuit-id = "eth0.100";

#}

 

shared-network TEST-NETWORK {

subnet 192.168.3.0 netmask 255.255.255.0

{

option routers 192.168.3.1;

option domain-name-servers 192.168.3.1;

option subnet-mask 255.255.255.0;

deny unknown-clients;

 

pool {

range 192.168.3.10;

allow members of "test-user";

}

}

 

# subnet 10.10.3.0 netmask 255.255.255.0

# {

# option routers 10.10.3.1;

# option domain-name-servers 192.168.3.1;

# option subnet-mask 255.255.255.0;

# deny unknown-clients;

#

# pool {

# range 10.10.3.10;

# allow members of "test-user2";

# }

# }

 

subnet 10.10.10.0 netmask 255.255.255.252 {

option routers 10.10.10.1;

}

}

 

А вот что в лог вываливается:

18:38:50 modin-G31M-S2L dhcpd: DHCPNAK on 192.168.3.10 to 12:43:ba:cb:34:22 via 192.168.3.1

18:38:50 modin-G31M-S2L dhcpd: DHCPREQUEST for 192.168.3.10 (10.10.10.1) from 12:43:ba:cb:34:22 (home-cbde6c92bd) via 192.168.3.1

18:38:50 modin-G31M-S2L dhcpd: DHCPACK on 192.168.3.10 to 12:43:ba:cb:34:22 (home-cbde6c92bd) via 192.168.3.1

18:38:51 modin-G31M-S2L dhcpd: DHCPDISCOVER from 12:43:ba:cb:34:22 via 192.168.3.1: network TEST-NETWORK: no free leases

18:38:51 modin-G31M-S2L dhcpd: DHCPDISCOVER from 12:43:ba:cb:34:22 (home-cbde6c92bd) via 192.168.3.1

18:38:51 modin-G31M-S2L dhcpd: DHCPOFFER on 192.168.3.10 to 12:43:ba:cb:34:22 (home-cbde6c92bd) via 192.168.3.1

18:38:51 modin-G31M-S2L dhcpd: DHCPREQUEST for 192.168.3.10 (10.10.10.1) from 12:43:ba:cb:34:22 via 192.168.3.1: lease 192.168.3.10 unavailable.

18:38:51 modin-G31M-S2L dhcpd: DHCPNAK on 192.168.3.10 to 12:43:ba:cb:34:22 via 192.168.3.1

18:38:51 modin-G31M-S2L dhcpd: DHCPREQUEST for 192.168.3.10 (10.10.10.1) from 12:43:ba:cb:34:22 (home-cbde6c92bd) via 192.168.3.1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.