在交换虚拟机的网络模式(nat转换成桥接模式)ifconfig只有mac地址

因为:在转换的时候vm没有及时的分配ip,所以才会出现只有mac(不能上网)
解决方法:
1.dhclient -r eth0 (释放ip)
2.dhclient eth0 (通过dhcp自动获取ip地址)

posted @ 2020-04-28 09:08  Firebasky  阅读(232)  评论(0)    收藏  举报