Необходимо чтобы с сервера DHCP раздавались адреса по VLAN'ам схема примерно следуещего характера
DHCP (ISC-DHCP Vlan default) - DGS-3627G(Vlan default) -- DGS-1216T(Vlan160 1-8 untagged 15 tagged, Vlan170 9, 15 tagged ) -- DGS-1216T (1-14 untagged 15 tagged)
dhcp.conf
Код:
option domain-name "lvovka.ru";
option domain-name-servers 192.168.10.2;
authoritative;
default-lease-time 21600;
max-lease-time 72000;
ddns-update-style none;
log-facility local7;
local-address 172.18.0.252;
ignore client-updates;
if exists agent.circuit-id
{
log (info, concat ("Lease for ", binary-to-ascii (10, 8, ".", leased-adress)
," option-82 info is CID: ", binary-to-ascii (10, 8, ".", option agent.circuit-id)
," RID ", binary-to-ascii (16, 8, ":", option agent.remote-id)
," MAC ", binary-to-ascii (16, 8, ":", suffix (hardware, 6))
," || ", binary-to-ascii (16, 8, ":", substring (hardware, 1, 6))));
}
class "vlan160"
{
match if binary-to-ascii (10, 16, "", substring (option agent.circuit-id, 2, 2)) = "160";
}
class "vlan170"
{
match if ( binary-to-ascii (10, 16, "", substring (option agent.circuit-id, 2, 2))) = "170";
}
shared-network "lvovka.ru" {
subnet 172.18.0.0 netmask 255.255.255.0 { not authoritative; }
subnet 172.18.160.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option routers 172.18.160.254;
pool {
range 172.18.160.1 172.18.160.253;
allow members of "vlan160";
}
}
subnet 172.18.170.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option routers 172.18.170.254;
pool {
range 172.18.170.1 172.18.170.253;
allow members of "vlan160";
}
}
}
DGS-3627G
Код:
DGS-3627G:5#show vlan
Command: show vlan
VID : 1 VLAN
VLAN Type : Static Advertisement : Enabled
Member Ports : 16,22-24
Static Ports : 16,22-24
Current Tagged Ports : 16
Current Untagged Ports: 22-24
Static Tagged Ports : 16
Static Untagged Ports : 22-24
Forbidden Ports :
VID : 160 VLAN Name : vlan160
VLAN Type : Static Advertisement : Disabled
Member Ports : 16
Static Ports : 16
Current Tagged Ports : 16
Current Untagged Ports:
Static Tagged Ports : 16
Static Untagged Ports :
Forbidden Ports :
VID : 170 VLAN Name : vlan170
VLAN Type : Static Advertisement : Disabled
Member Ports : 16
Static Ports : 16
Current Tagged Ports : 16
Current Untagged Ports:
Static Tagged Ports : 16
Static Untagged Ports :
Forbidden Ports :
Код:
DGS-3627G:5#show dhcp_relay
Command: show dhcp_relay
DHCP/Bootp Relay Status : Enable
DHCP/Bootp Hops Count Limit : 5
DHCP/Bootp Relay Time Threshold : 0 second(s)
DHCP Relay Agent Information Option 82 State : Enable
DHCP Relay Agent Information Option 82 Check : Disabled
DHCP Relay Agent Information Option 82 Policy : Replace
Interface Server 1 Server 2 Server 3 Server 4
------------ --------------- --------------- --------------- ---------------
System 172.18.0.252
Суть в том что на DHCP не приходит запрос на получение адреса. DHCP собран с опцией USE_SOCKETS. Если кто может помочь разобраться пишите.