需求:

       由于现行网络里,需要在dhcp地址池内绑定一个mac地址,已达到地址固定的效果;在实施中发现无论如何操作,目标mac都无法获取到手动绑定的那个地址.


   背景:

       设备及固件:

ERX-310-a3-1f-81#show ver
Juniper Edge Routing Switch ERX-310
Copyright (c) 1999-2008 Juniper Networks, Inc.  All rights reserved.
System Release: erx310_8-2-4p0-16.rel
       Version: 8.2.4 patch-0.16 [BuildId 11167]   (July 2, 2009  11:28)
System running for: 197 days, 19 hours, 16 minutes, 25 seconds
       (since TUE SEP 10 2013 12:18:16 beijing)

slot state     type     admin  spare    running release      slot uptime  
---- ------ ---------- ------- ----- --------------------- ---------------
0    online SRP310-10G enabled  ---  erx310_8-2-4p0-16.rel 197d19h:15m:53s
1    online GE-HDE-8   enabled  ---  erx310_8-2-4p0-16.rel 197d19h:15m:27s
2     ---      ---       ---    ---           ---                ---      


       配置:

ip dhcp-local pool USE1
network 10.20.20.0 255.255.254.0
dns-server 172.16.12.1 202.102.199.68
default-router 10.20.20.1
lease 0 0 30
reserve 10.20.20.200 0000.xxxx.57de  
!
ip dhcp-local excluded-address 10.20.20.1
ip dhcp-local excluded-address 10.20.20.200


       结果:

reserve 10.20.20.200 0000.xxxx.57de  

*以上命令中的目标mac一直无法获取到绑定的10.20.20.200地址


       问题原因及解决:

       ip dhcp-local pool USE1
network 10.20.20.0 255.255.254.0
dns-server 172.16.12.1 202.102.199.68
default-router 10.20.20.1

---此处为问题原因: 网关设置为pool内最后一个网段的地址如ip:10.20.21.1,则问题解决.
lease 0 0 30
reserve 10.20.20.200 0000.xxxx.57de  
!
ip dhcp-local excluded-address 10.20.20.1
ip dhcp-local excluded-address 10.20.20.200