Jump to content

Recommended Posts

Posted

ЗДравствуйте. Имеется 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

 

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

Posted
/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

 

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

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

только так

/var/lib/dhcp3/dhcpd.leases~

/var/lib/dhcp3/dhcpd.leases

/var/lib/dhcp3/dhclient.leases

 

Posted
ЗДравствуйте. Имеется 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

 

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

ап

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.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.