首页 > 代码库 > 虚拟机Redhat桥接无法获取IP地址

虚拟机Redhat桥接无法获取IP地址

虚拟机Redhat桥接无法获IP地址

先确认是否同时安装VirtualBoxVMware,本方案仅适用同装两款虚拟机出现的此种故障

报错代码:

[root@redhat ~]# ifconfig

eth0     Link encap:Ethernet  HWaddr00:0C:29:BD:65:C8 

         inet6 addr: fe80::20c:29ff:febd:65c8/64 Scope:Link

         UP BROADCAST RUNNING MULTICAST MTU:1500  Metric:1

         RX packets:0 errors:0 dropped:0 overruns:0 frame:0

         TX packets:45 errors:0 dropped:0 overruns:0 carrier:0

         collisions:0 txqueuelen:1000

         RX bytes:0 (0.0 b)  TX bytes:11502(11.2 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:16436  Metric:1

         RX packets:18 errors:0 dropped:0 overruns:0 frame:0

         TX packets:18 errors:0 dropped:0 overruns:0 carrier:0

         collisions:0 txqueuelen:0

         RX bytes:1392 (1.3 KiB)  TXbytes:1392 (1.3 KiB)

 

[root@redhat ~]# ifup eth0

活跃连接状态:激活中

活跃连接路径:/org/freedesktop/NetworkManager/ActiveConnection/4

 

** (process:2677): WARNING **:_nm_object_get_property: Error getting ‘State‘ for/org/freedesktop/NetworkManager/ActiveConnection/4: (19) Method "Get"with signature "ss" on interface"org.freedesktop.DBus.Properties" doesn‘t exist

 

状态:未知

错误:激活连接失败。

[root@redhat ~]#

 

解决方法:打开VMware中编辑--虚拟网络编辑器—Vmnet信息后面自动设置去掉Virtualbox Host-Only Ethernet Adapter 前的对勾 确定保存 即可

然后登陆redhat  # ifup eth0

重启网卡即可:

[root@redhat ~]# ifup eth0

活跃连接状态:激活中

活跃连接路径:/org/freedesktop/NetworkManager/ActiveConnection/9

状态:激活的

连接被激活

[root@redhat ~]#


本文出自 “夏天来樂的博客” 博客,请务必保留此出处http://firstxiatian.blog.51cto.com/7601637/1886943

虚拟机Redhat桥接无法获取IP地址