openstack dhcp调试

简介:

openstack的dhcpserver默认值dnsmasq软件实施,经ps -ef | grep dnsmasq 查看。当虚拟机启动过程启动dhcp求,日志可以是在主机系统日志:

May 23 22:30:29 localhost dnsmasq-dhcp[5043]: DHCPDISCOVER(tapf7321a93-ac) fa:16:3e:33:0a:6a 

May 23 22:30:29 localhost dnsmasq-dhcp[5043]: DHCPOFFER(tapf7321a93-ac) 10.0.0.41 fa:16:3e:33:0a:6a 

May 23 22:30:29 localhost dnsmasq-dhcp[5043]: DHCPREQUEST(tapf7321a93-ac) 10.0.0.41 fa:16:3e:33:0a:6a 

May 23 22:30:29 localhost dnsmasq-dhcp[5043]: DHCPACK(tapf7321a93-ac) 10.0.0.41 fa:16:3e:33:0a:6a host-10-0-0-41

能够看到dhcp四个阶段:发现、提供、选择、确认。

同一时候能够通过 nova console-log instance查看虚拟机启动日志

Starting network...

udhcpc (v1.18.5) started

Sending discover...

Sending select for 10.0.0.41...

Lease of 10.0.0.41 obtained, lease time 86400

假设出现dhcp问题能够先查看日志,重新启动dnsmasq进程。

killall dnsmasq

service neutron-dhcp-agent restart

dhcp使用的是udp协议,默认port为68和67(68port发送到67),能够

tcpdump  -n port 67 or port 68


版权声明:本文博主原创文章。博客,未经同意不得转载。






本文转自mfrbuaa博客园博客,原文链接:http://www.cnblogs.com/mfrbuaa/p/4913118.html,如需转载请自行联系原作者


相关文章
openstack dnsmasq调试
vim /etc/nova/nova.conf [libvirt] virt_type = qemu   systemcrtl restart openstack-nova-compute
1133 0
|
关系型数据库 MySQL
openStack云平台虚拟桌面galera mysql 3节点集群实例实战 调试完成
被复制节点:  /usr/local/mysql/bin/mysqld_safe --wsrep_cluster_address=gcomm:// >/dev/null &复制节点01:  service mysql start --wsrep_cluster_address="gcomm://30.
1033 0
|
网络协议 测试技术 Linux
openStack 云平台管理节点管理网口流量非常大 出现丢包严重 终端总是时常中断问题调试及当前测试较有效方案
tuning for Data Transfer hosts connected at speeds of 1Gbps or higher 1,dmesg 日志,丢包问题关键原因定位; [101231.
1180 0
openstack 手动 部署安装调试
Virtual Interface creation failed Virtual Interface creation failed
733 0