服务器端:
1. 编辑/etc/dhcpsd.cnf
network 10.0.202.0 10.0.202.30-10.0.202.30
{client 1 0x1601FE4BA603 10.0.202.30
option 1 255.255.255.0
option 3 10.0.202.254
option 6 114.114.114.114
}
numLogFiles 4
logFileSize 100
logFileName /usr/tmp/dhcpsd.log
logItem SYSERR
logItem OBJERR
logItem PROTERR
logItem WARNING
logItem EVENT
logItem ACTION
logItem INFO
logItem ACNTING
logItem TRACE
leaseTimeDefault 30 minute
leaseExpireInterval 3 minute
supportBOOTP Yes
supportUnlistedClients Yes
2. 重启dhcpsd服务
stopsrc -s dhcpsd
startsrc -s dhcpsd
3. 查看dhcpsd状态
# lssrc -ls dhcpsd
Log File: /usr/tmp/dhcpsd.log
Log Level: 0xdfe
Client Expire Interval: 3600
Reserve Expire Interval: 900
Bad Addr Reclaim Interval: 4294967295
Database Save Interval: 3600
IP Address Status Duration Time Stamp Client ID
--------------- -------- -------- ------------ --------------
10.0.202.30 Free
Client端:
1. 查看状态
# lssrc -s dhcpcd
# lssrc -ls dhcpcd
2. 打开client
stopsrc -s dhcpcd
startsrc -s dhcpcd
3. 然后ifconfig查看 dhcp请求的ip.
参考:
1. http://bio.gsi.de/DOCS/www.coredumps.de/doc/ibm/aix/aix_hints_and_tips/1414638.htm
2. http://www-01.ibm.com/support/docview.wss?uid=isg3T1012460
dhcp服务器配置文件:
Configuration of the DHCP Server
Contents
About this documentRelated documentation
What is DHCP?
Configuration of the DHCP server
Different configurations
Troubleshooting and errors com