DHCP сервер вынесен в другую подсеть Reley в моем случае происходит на cisco BRAS --------- Cisco BRAS interface GigabitEthernet0/0.14 description dhcp 400 encapsulation dot1Q 14 ip address 192.168.15.1 255.255.255.252
interface GigabitEthernet0/0.400 encapsulation dot1Q 400 ip address 195.239.211.129 255.255.255.128 ip helper-address 192.168.15.2 ----------
MAC коммутатора: 1C-BD-B9-A5-04-60 MAC компа 00:1b:fc:1b:05:ae
dhcpd.conf class "sw_des3528_stend_p11" { match if binary-to-ascii(16,8,":",substring(option agent.remote-id,2,6)) = "1c:bd:b9:a5:04:60"; } class "sw_des3528_stend_p22" { match if binary-to-ascii(16,8,":",substring(option agent.remote-id,2,6)) = "1c:bd:b9:a5:4:60"; } class "sw_des3528_stend_p33" { match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 5))= "bd:b9:a5:04:60" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "1";} class "sw_des3528_stend_p44" { match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 5))= "bd:b9:a5:4:60" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "1";}
pool { range 195.239.211.183; allow members of "sw_des3528_stend_p11"; } pool { range 195.239.211.184; allow members of "sw_des3528_stend_p22"; } pool { range 195.239.211.187; allow members of "sw_des3528_stend_p33"; } pool { range 195.239.211.188; allow members of "sw_des3528_stend_p44"; }
Настройки DES3528 DHCP/BOOTP Local Relay Status : Enabled DHCP/BOOTP Local Relay VID List : 400
DHCP/BOOTP Relay Status : Disabled DHCP/BOOTP Hops Count Limit : 4 DHCP/BOOTP Relay Time Threshold : 0 DHCP Vendor Class Identifier Option 60 State: Disabled DHCP Client Identifier Option 61 State: Disabled DHCP Relay Agent Information Option 82 State : Enabled DHCP Relay Agent Information Option 82 Check : Disabled DHCP Relay Agent Information Option 82 Policy : Replace DHCP Relay Agent Information Option 82 Remote ID : 1C-BD-B9-A5-04-60
Вообщем на DHCP сервер приходит: 03:46:22.193299 IP (tos 0x0, ttl 255, id 62461, offset 0, flags [none], proto UDP (17), length 350) 195.239.211.129.67 > 192.168.15.2.67: BOOTP/DHCP, Request from 00:1b:fc:1b:05:ae, length 322, hops 1, xid 0x4e04c12, Flags [Broadcast] Gateway-IP 195.239.211.129 Client-Ethernet-Address 00:1b:fc:1b:05:ae Vendor-rfc1048 Extensions Magic Cookie 0x63825363 DHCP-Message Option 53, length 1: Discover NOAUTO Option 116, length 1: Y Client-ID Option 61, length 7: ether 00:1b:fc:1b:05:ae Requested-IP Option 50, length 4: 169.254.183.101 Hostname Option 12, length 4: "1den" Vendor-Class Option 60, length 8: "MSFT 5.0" Parameter-Request Option 55, length 11: Subnet-Mask, Domain-Name, Default-Gateway, Domain-Name-Server Netbios-Name-Server, Netbios-Node, Netbios-Scope, Router-Discovery Static-Route, Classless-Static-Route-Microsoft, Vendor-Option Agent-Information Option 82, length 29: Circuit-ID SubOption 1, length 6: ^@^D^AM-^P^@^A Unknown SubOption 2, length 19: 0x0000: 0111 3143 2d42 442d 4239 2d41 352d 3034 0x0010: 2d36 30
Лог на сервере: DHCPDISCOVER from 00:1b:fc:1b:05:ae via 195.239.211.129: network clients: no free leases
Может я не правильно разбираю Option 82? Если посмотреть на лог tcpdump то из него не видно мака коммутатора, vlan и др.
|