Какое-то странное "недопонимание" получилось...
Не пойму, на чьей стороне проблема.
Конфиг 3612:
Код:
sh sw
Command: show switch
Device Type : DGS-3612G Gigabit Ethernet Switch
MAC Address : 00-1E-XX-XX-XX-00
IP Address : 192.168.4.254 (Manual)
VLAN Name : management
Subnet Mask : 255.255.252.0
Default Gateway : 192.168.7.250
Код:
DGS-3612G:5#sh ipif
Command: show ipif
IP Interface : System
VLAN Name : management
Interface Admin state : Enabled
IPv4 Address : 192.168.4.254/22 (Manual) Primary
IP Interface : abon101
VLAN Name : druzba
Interface Admin state : Enabled
IPv4 Address : 10.0.192.1/22 (Manual) Primary
IP Interface : abon102
VLAN Name : orehova
Interface Admin state : Enabled
IPv4 Address : 10.0.196.1/22 (Manual) Primary
IP Interface : abon103
VLAN Name : libknehta
Interface Admin state : Enabled
IPv4 Address : 10.0.200.1/22 (Manual) Primary
IP Interface : abon104
VLAN Name : kalinina
Interface Admin state : Enabled
IPv4 Address : 10.0.204.1/22 (Manual) Primary
IP Interface : abon105
VLAN Name : proletarskaya
Interface Admin state : Enabled
IPv4 Address : 10.0.208.1/22 (Manual) Primary
Total Entries : 6
Код:
DGS-3612G:5#sh dhcp_relay
Command: show dhcp_relay
DHCP/Bootp Relay Status : Enabled
DHCP/Bootp Hops Count Limit : 4
DHCP/Bootp Relay Time Threshold : 0
DHCP Relay Agent Information Option 82 State : Enabled
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
------------ --------------- --------------- --------------- ---------------
abon103 192.168.7.250
System 192.168.7.250
Конфиг роутера (он же DHCP сервер):
IP 192.168.7.250
Код:
ddns-update-style none;
#
#
option ms-classless-static-routes code 249 = array of unsigned integer 8;
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
#
log-facility local3;
#
if exists agent.circuit-id
{
log (
info, concat( " Lease for ",
binary-to-ascii (10, 8, ".", leased-address),
#" Swith port: ",
#binary-to-ascii (10, 8, ".", option agent.circuit-id),
" Relay MAC: ",
binary-to-ascii (16, 8, ":", suffix ( option agent.remote-id, 6)),
" Router IP: ",
binary-to-ascii(10, 8, ".", packet(24, 4)),
" VLAN: ",
binary-to-ascii (10, 16, "", substring( option agent.circuit-id, 2, 2)),
" MAC of subscriber: ",
binary-to-ascii (16, 8, ":", substring(hardware, 1, 7))
)
);
shared-network vlan103 {
#
subnet 10.0.200.0 netmask 255.255.252.0 {
#
class "match_vlan_103"
{
match if ( binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 2, 2)) = "103");
}
#
authoritative;
deny unknown-clients;
deny duplicates;
option subnet-mask 255.255.252.0;
option broadcast-address 10.0.203.255;
option routers 10.0.200.1;
#
ddns-domainname "mynet.net";
option domain-name-servers XX.XX.XX.XX;
option time-offset 14400;
option time-servers XX.XX.XX.XX;
option ntp-servers XX.XX.XX.XX;
#
option ms-classless-static-routes 24, 10,254,213, 10,0,200,1, 22, 10,0,192, 10,0,200,1, 22, 10,0,204, 10,0,200,1, 22, 10,0
,196, 10,0,200,1, 22, 10,0,208, 10,0,200,1;
option rfc3442-classless-static-routes 24, 10,254,213, 10,0,200,1, 22, 10,0,192, 10,0,200,1, 22, 10,0,204, 10,0,200,1, 22, 10,0
,196, 10,0,200,1, 22, 10,0,208, 10,0,200,1;
option-82;
boot-unknown-clients false;
default-lease-time 21600;
max-lease-time 43200;
#
pool {
allow members of "match_vlan_103";
range 10.0.200.2 10.0.203.254;
include "/etc/dhcpd/vlan103.conf";
}
}
Код:
cat /etc/dhcpd/vlan103.conf
#
host user001 {
hardware ethernet 00:11:11:11:11:11;
next-server XX.XX.XX.XX;
fixed-address 10.0.200.18;
option subnet-mask 255.255.252.0;
}
#
В итоге, host с МАС адресом 00:11:11:11:11:11 получает IP 10.0.200.18, НО! Маска подсети = 255.0.0.0, шлюз и DNS отсутствует.
Не понимаю, где затык...
