Jump to content
Калькуляторы

Option 82 + Zyxel Es-2024a Option 82 + Zyxel ES-2024A проблема с привязкой

ЗДравствуйте. Имеется Zyxel ES-2024A с такой конфигурацией:

ES-2024A# show ver
  Current ZyNOS version: V3.90(TX.1) | 05/20/2009
ES-2024A# show run
  Building configuration...

  Current configuration: 

vlan 1 
  name 1 
  normal "" 
  fixed 1-26 
  forbidden "" 
  untagged 1-26 
exit 
vlan 7 
  name vlan7 
  normal 3-25 
  fixed 1-2,26 
  forbidden "" 
  untagged 1,26 
  ip address default-management 192.168.1.10 255.255.255.0 
exit 
interface port-channel 1  
  pvid 7 
exit 
interface port-channel 2  
  pvid 7 
exit 
interface port-channel 25  
  pvid 603 
exit 
interface port-channel 26  
  pvid 7
exit 
dhcp smart-relay 
dhcp smart-relay helper-address 192.168.1.2 
dhcp smart-relay option 
dhcp smart-relay information

 

Имеется Debian с установленным DHCPd.

вот dhcpd.conf

# 

local-address 192.168.1.2;
authoritative;

if exists agent.circuit-id
{
log ( info, concat( "Lease for ", binary-to-ascii (10, 8, ".", leased-address), " is connected to interface ",
binary-to-ascii (10, 8, "/", suffix ( option agent.circuit-id, 2)), " (add 1 to port number!), VLAN ",
binary-to-ascii (10, 16, "", substring( option agent.circuit-id, 2, 2)), " on switch ",
binary-to-ascii(16, 8, ":", substring( option agent.remote-id, 2, 6))
,"IP" ,binary-to-ascii(10, 8, ".", packet(24, 4)) ));

log ( info, concat( "Lease for ", binary-to-ascii (10, 8, ".", leased-address),
" raw option-82 info is CID: ", binary-to-ascii (10, 8, ".", option agent.circuit-id), " AID: ",
binary-to-ascii(16, 8, ".", option agent.remote-id)));
}

shared-network qqq{
subnet 192.168.1.0 netmask 255.255.255.0 {
     option routers 192.168.1.2;
     option subnet-mask 255.255.255.0;
     option domain-name-servers 93.188.80.4,93.188.83.4;
       
class "port-1"
{
match if binary-to-ascii (10, 8, "", suffix( option agent.circuit-id, 1)) = "1";
}

pool {
                allow members of                "port-1";
                default-lease-time              600;
                max-lease-time                  7200;
                range                           192.168.1.4 192.168.1.4;
                option routers                  192.168.1.2;
                option broadcast-address        192.168.1.255;
                option subnet-mask              255.255.255.0;
}
}
}

 

Сервер подключен ко 2му порту

При попытке получить по DHCP адрес на девайс, подключенный к порту 1 в логах выводит:

 

dhcpd: DHCPDISCOVER from 00:06:19:03:71:17 via 192.168.1.10: network qqq: no free leases

 

Подскажите в какую сторону копать?

Share this post


Link to post
Share on other sites

/var/lib/dhcp , там папочка с лизами, изучить что там есть, понять в чём проблема

Share this post


Link to post
Share on other sites
/var/lib/dhcp , там папочка с лизами, изучить что там есть, понять в чём проблема

есть DHCPclient.leases - пустой

есть dhcpd.lease -

# The format of this file is documented in the dhcpd.leases(5) manual page.

# This lease file was written by isc-dhcp-V3.1.1

 

тоесть тоже пусто. В чем проблема?

Share this post


Link to post
Share on other sites

ну где-то они должны же быть, может в чруте у вас запускается... вообщем ищите файл dhcpd.leases примерно так find / | grep leas

Share this post


Link to post
Share on other sites
ну где-то они должны же быть, может в чруте у вас запускается... вообщем ищите файл dhcpd.leases примерно так find / | grep leas

только так

/var/lib/dhcp3/dhcpd.leases~

/var/lib/dhcp3/dhcpd.leases

/var/lib/dhcp3/dhclient.leases

 

Share this post


Link to post
Share on other sites
ЗДравствуйте. Имеется Zyxel ES-2024A с такой конфигурацией:

ES-2024A# show ver
  Current ZyNOS version: V3.90(TX.1) | 05/20/2009
ES-2024A# show run
  Building configuration...

  Current configuration: 

vlan 1 
  name 1 
  normal "" 
  fixed 1-26 
  forbidden "" 
  untagged 1-26 
exit 
vlan 7 
  name vlan7 
  normal 3-25 
  fixed 1-2,26 
  forbidden "" 
  untagged 1,26 
  ip address default-management 192.168.1.10 255.255.255.0 
exit 
interface port-channel 1  
  pvid 7 
exit 
interface port-channel 2  
  pvid 7 
exit 
interface port-channel 25  
  pvid 603 
exit 
interface port-channel 26  
  pvid 7
exit 
dhcp smart-relay 
dhcp smart-relay helper-address 192.168.1.2 
dhcp smart-relay option 
dhcp smart-relay information

 

Имеется Debian с установленным DHCPd.

вот dhcpd.conf

# 

local-address 192.168.1.2;
authoritative;

if exists agent.circuit-id
{
log ( info, concat( "Lease for ", binary-to-ascii (10, 8, ".", leased-address), " is connected to interface ",
binary-to-ascii (10, 8, "/", suffix ( option agent.circuit-id, 2)), " (add 1 to port number!), VLAN ",
binary-to-ascii (10, 16, "", substring( option agent.circuit-id, 2, 2)), " on switch ",
binary-to-ascii(16, 8, ":", substring( option agent.remote-id, 2, 6))
,"IP" ,binary-to-ascii(10, 8, ".", packet(24, 4)) ));

log ( info, concat( "Lease for ", binary-to-ascii (10, 8, ".", leased-address),
" raw option-82 info is CID: ", binary-to-ascii (10, 8, ".", option agent.circuit-id), " AID: ",
binary-to-ascii(16, 8, ".", option agent.remote-id)));
}

shared-network qqq{
subnet 192.168.1.0 netmask 255.255.255.0 {
     option routers 192.168.1.2;
     option subnet-mask 255.255.255.0;
     option domain-name-servers 93.188.80.4,93.188.83.4;
       
class "port-1"
{
match if binary-to-ascii (10, 8, "", suffix( option agent.circuit-id, 1)) = "1";
}

pool {
                allow members of                "port-1";
                default-lease-time              600;
                max-lease-time                  7200;
                range                           192.168.1.4 192.168.1.4;
                option routers                  192.168.1.2;
                option broadcast-address        192.168.1.255;
                option subnet-mask              255.255.255.0;
}
}
}

 

Сервер подключен ко 2му порту

При попытке получить по DHCP адрес на девайс, подключенный к порту 1 в логах выводит:

 

dhcpd: DHCPDISCOVER from 00:06:19:03:71:17 via 192.168.1.10: network qqq: no free leases

 

Подскажите в какую сторону копать?

ап

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