码迷,mamicode.com
首页 > 其他好文 > 详细

virtual box 桥接模式(bridge adapter)下无法获取ip(determine ip failed)的解决方法

时间:2017-10-16 00:11:12      阅读:366      评论:0      收藏:0      [点我收藏+]

标签:获取   sse   ace   5.0   解决   sys   red hat 7   virt   桥接   

google出来的解决方案:创建静态ip的方法,既然虚拟机桥接模式下无法通过主机网卡获取ip桥接到网络,那么我们就创建最大网络地址,然后reboot,这样虚拟机就可以获取ip联网了。

Static IP address assignment:

Choose one of the following methods:

    • Command Line:
          /sbin/ifconfig eth0 192.168.10.12 netmask 255.255.255.0 broadcast 192.168.10.255
      Network address by convention would be the lowest: 192.168.10.0 
      Broadcast address by convention would be the highest: 192.168.10.255 
      The gateway can be anything, but following convention: 192.168.10.1

      Note: the highest and lowest addresses are based on the netmask. The previous example is based on a netmask of 255.255.255.0

       

    • Red Hat / Fedora GUI tools:
      • /usr/bin/neat Gnome GUI network administration tool. Handles all interfaces. Configure for Static IP or DHCP client. 
        (First available with Red Hat 7.2.)
      • /usr/bin/netcfg (Handles all interfaces) (last available in Red Hat 7.1)

       

    • Red Hat / Fedora Console tools:
      • /usr/sbin/system-config-network-tui (Text User Interface)
      • /usr/sbin/netconfig (Only seems to work for the first network interface eth0 but not eth1,...)

       

    • Directly edit configuration files/scripts. See format below.

virtual box 桥接模式(bridge adapter)下无法获取ip(determine ip failed)的解决方法

标签:获取   sse   ace   5.0   解决   sys   red hat 7   virt   桥接   

原文地址:http://www.cnblogs.com/microbear/p/7674843.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!