0.1Connect Local PC to Server directly
0.2Set Local IP to static 172.168.0.10
1.linux install udhcpd
2.config (vim /etc/udhcpd.conf )
start 172.168.0.30 #定义地址池的开始地址
end 172.168.0.100 #定义地址池的结束地址
interface eth0 #dhcp服务器中响应dhcp协议的接口
opt dns 8.8.8.8 219.239.26.42 #定义dns服务器地址
option subnet 255.255.0.0
opt router 172.168.0.1 #该地址为dhcp服务器中响应dhcp协议接口的IP地址
option domain local
option lease 80 #租约时间,单位为秒
static_lease 6c:92:bf:0c:33:3e 172.168.0.80 #静态绑定mac和IP地址
3.start
/etc/init.d/udhcpd start
4.set ip and mac
static_lease 6c:92:bf:0c:33:3e 172.168.0.90 #静态绑定mac和IP地址
5.resart udhcpd and wireshark查看bmc的dhcp请求
0.2Set Local IP to static 172.168.0.10
1.linux install udhcpd
2.config (vim /etc/udhcpd.conf )
start 172.168.0.30 #定义地址池的开始地址
end 172.168.0.100 #定义地址池的结束地址
interface eth0 #dhcp服务器中响应dhcp协议的接口
opt dns 8.8.8.8 219.239.26.42 #定义dns服务器地址
option subnet 255.255.0.0
opt router 172.168.0.1 #该地址为dhcp服务器中响应dhcp协议接口的IP地址
option domain local
option lease 80 #租约时间,单位为秒
static_lease 6c:92:bf:0c:33:3e 172.168.0.80 #静态绑定mac和IP地址
3.start
/etc/init.d/udhcpd start
4.set ip and mac
static_lease 6c:92:bf:0c:33:3e 172.168.0.90 #静态绑定mac和IP地址
5.resart udhcpd and wireshark查看bmc的dhcp请求