ʵñİ
1 DHCPoption43option60÷
1.1
Ŀǰ˾Ŀ(纺ͥƵ/ѧУ/ҵ)ֶںĽϿDHCPķʽΪAPûIPַڼеڶУ߽УDHCPǻWINDOWS SERVERLINUX SERVERҪиУģAPWindowsLINUX϶DHCPoption43option60ý֤
1.2 ͼ ǽ AC1 (VLAN110)
110.110.1.1
·
DHCP
(VLAN200)
200.1.1.101
AC2 (VLAN110) ·ɽ 110.110.1.2 (VLAN100) 100.100.1.254
PoE PoE
AP1 (VLAN100) AP2 (VLAN100) 100.100.1.x 100.100.1.x
ڶDHCPУһڻ·ɽDHCP RelayķʽAPDHCPתDHCP
ֻкĽ·ɣںĽDHCP Relay
1.3 ̷
ȼعһͨoption43option60ΪAPIP̣
ĵȫ
ʵñİ
(1) APDHCP ServerDHCP Discoveryиoption60ʾ
Ӧʶ
(2) DHCP Serveroption60ԣжϷClientǷϻȡIPַ
ظDHCP OfferIPַDHCP ServerDHCP ServerҲԹرoption60ѡرոѡoption60Ƿƥ䣬DHCP ServerӦClient
(3) DHCP ServerظDHCP Offerʱoption43·ACIPַ
(4) DHCP ServerڻظClientʱoption60ԡ
̿ԿDHCPҪõIJǣServerյClientʱoption60ԣServerظClientʱoption43ԡ
DCNAPoption60ֵ㶨Ϊַudhcp 1.18.2
1.4 DHCP option43ֶθʽ
ڡWLANĿ߽Ⱥģ˵顷жoption43ֶθʽ£ ֶ Option Code Data Length Option Type Length of the address Content 1ֽ 1ֽ 1ֽ 1ֽ ǰһֶָ ֵ 43 ʣಿֵijȣλΪֽ 1ʾIPv4ַ2ʾ ݵij IPַ ֶοԶγ֣öACַ кɫֶβϵͳԶдֻҪɫֶεݼɡ磺 IPַʾAC
(1) ֻһACACIPַ110.110.1.1IPַתʮƱ
ʾΪ6e 6e 01 01Option TypeӦʹ1LengthΪ4ֽڣoption43ֶοʮƱʾΪ01 04 6e 6e 01 01
(2) ACAC1IPַ110.110.1.16e 6e 01 01AC2IPַ
110.110.1.26e 6e 01 02ΪIPַʮƣÿһACַOption TypeLengthAddressһֶΣٽֶдoption43ֶοʮƱʾΪ01 04 6e 6e 01 01 01 04 6e 6e 01 02ɫʾAC1ֶΣɫʾAC2ֶΡ
(3) жACյ(2)ַӸACַһAP֧
4ACַ
ʾAC
(1) ֻһACACac1.test.Option TypeӦʹ2LengthΪ
120x0cֽڣOption TypeLengthֶַʾDzɴӡַֻʮֽʽʾ˻ҪACÿַתASCIIʾoption43ֶտʮƱʾΪ02 0c 61 63 31 2e 74 65 73 74 2e 63 6f 6d
(2) ACAC1ac1.test.AC2ac2.test.ÿһAC
ĵȫ
ʵñİ
Option TypeLengthAddressһֶΣٽֶдoption43ֶοʮƱʾΪ02 0c 61 63 31 2e 74 65 73 74 2e 63 6f 6d 02 0c 61 63 32 2e 74 65 73 74 2e 63 6f 6dɫʾAC1ֶΣɫʾAC2ֶΡ
(3) жACյ(2)ַӸACһAP֧
4AC
1.5 DHCP
ѡDHCPWindows2003Windows2008Linuxֱܷoption43option60ķ
1.5.1 ·ɽDHCP Relay
עÿ//֮ĺͽ͡
SWITCH(config)#service dhcp //ȫֿDHCP SWITCH(config)#ip forward-protocol udp bootps //ȫֿDHCPת SWITCH(config)#vlan 100 //vlan 100 SWITCH(config-vlan100)#interface vlan 100 //interface vlan 100 SWITCH(config-if-vlan100)#ip address 100.100.1.254 255.255.255.0 //Ϊinterface vlan 100һIPַ
SWITCH(config-if-vlan100)#ip helper-address 200.1.1.101 //dhcp-relayתĿķIPַ
1.5.2 Windows2003DHCP
ÿʼ֮ǰϵͳDHCPѰװʹá
ĵȫ