vm NIC is not configed with an IP [已关闭]

提问于 2020-01-21 00:24:26 -0500

业余爱好者 图像

hi all! i create an instanc on openstack,the dhcp-agent.log indicate the instance get the ip address successfully. but the ip address not config on vm interface.

[root@controller neutron]# openstack server list

+--------------------------------------+------+--------+----------------------+---------+----------+

| ID | Name | Status | Networks | Image | Flavor |

+--------------------------------------+------+--------+----------------------+---------+----------+

| a2813868-2a16-406b-82f7-bf60d328f537 | test | ACTIVE | public=172.16.101.51 | cirrors | m1.small |

+--------------------------------------+------+--------+----------------------+---------+----------+

login to vm and run "ifconfig"

$ ifconfig

eth0 Link encap:Ethernet HWaddr FA:16:3E:E5:04:69
inet6 addr: fe80::f816:3eff:fee5:469/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:7 errors:0 dropped:0 overruns:0 frame:0 TX packets:10 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:566 (566.0 B) TX bytes:1332 (1.3 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:1020 (1020.0 B) TX bytes:1020 (1020.0 B)

there is not IP address on eth0.

dose anybody can help me,thanks!

edit retag flag offensive reopen merge delete

Closed for the following reason 完全重复的问题 by 业余爱好者
close date 2020-04-09 05:11:52.799763