не получается организовать dhcp relay на vlan, уже все мануалы перепробывал, вот мои настройки:
dhcp-vlan100-dgs3612--vlan200--абонент
IP-dhcp--10.200.0.100
IP--dgs3612--10.300.0.1
IP pool абонентов 10.200.8.1-10.200.15.254
IPIF vlan100--10.200.0.1/21
IPIF vlan200 --10.200.8.1/21
IPIF System --10.300.0.1/21
DHCP_RELAY IPIF vlan100 SERVER 10.200.0.100
DHCP_RELAY IPIF vlan200 SERVER 10.200.0.100
DHCP_RELAY enable
DHCP_RELAY option 82 enable
настройка сетевой карты на dhcp сервере
ip 10.200.0.100
маска 255.255.248.0
шлюз 10.200.0.1
dhcp.conf
option domain-name-servers 10.200.0.10;
default-lease-time 21600;
max-lease-time 72000;
local-address 10.200.0.100;
authoritative;
ddns-update-style none;
log-facility local7;
if exists agent.circuit-id
{
log(info, concat("Lease"
," IP ", binary-to-ascii(10, 8, ".", leased-address)
," MAC ", binary-to-ascii(16, 8, ":", substring(hardware, 1, 6))
," switch ", substring(option agent.remote-id, 2, 15)
," port ", binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 4, 2))
," VLAN ", binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 2, 2))
)
);
}
subnet 10.200.0.0 netmask 255.255.248.0 {
}
subnet 10.200.8.0 netmask 255.255.248.0 {
class "vlan200"
{
match if ( binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 2, 2)) = "200");
}
pool {
range 10.200.8.2 10.200.15.254;
option routers 10.200.8.1;
allow members of "vlan200";
}
}
сервер dhcp запускается вот лог его.
May 28 19:47:34 localhost dhcpd: Internet Systems Consortium DHCP Server V3.0.5-RedHat
May 28 19:47:34 localhost dhcpd: Copyright 2004-2006 Internet Systems Consortium.
May 28 19:47:34 localhost dhcpd: All rights reserved.
May 28 19:47:34 localhost dhcpd: For info, please visit
http://www.isc.org/sw/dhcp/
May 28 19:47:34 localhost dhcpd: Internet Systems Consortium DHCP Server V3.0.5-RedHat
May 28 19:47:34 localhost dhcpd: Copyright 2004-2006 Internet Systems Consortium.
May 28 19:47:34 localhost dhcpd: All rights reserved.
May 28 19:47:34 localhost dhcpd: For info, please visit
http://www.isc.org/sw/dhcp/
May 28 19:47:34 localhost dhcpd: Wrote 0 leases to leases file.
May 28 19:47:34 localhost dhcpd: Listening on LPF/eth1/00:1c:c0:4c:32:21/10.200.0/21
May 28 19:47:34 localhost dhcpd: Sending on LPF/eth1/00:1c:c0:4c:32:21/10.200.0/21
May 28 19:47:34 localhost dhcpd: Sending on Socket/fallback/fallback-net
может проблема в прошивке я тут тему прочитал
viewtopic.php?t=123523