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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this