linux在vm下实现桥接模式

执行步骤如下:

    1 在命令行输入:setup

     2 选择Network configuration 

       

     3 选择 Device configuration

     

    4 选择 eth0

     

   5 设置的static ip和window下的ip是同一网段,然后保存

    

   

 

   6 在命令行输入:vim /etc/sysconfig/network-scripts/ifcfg-eth0     

      并把BOOTPROTO修改为static

    

   7  重启网络,在命令行输入:service network restart      

   8 设置桥接模式

    

 

     

     

     

     

   9 如果桥接模式还是不能连接外网,则需要安装vmware bridge protocol

         步骤为:安装——>服务——>添加——>从磁盘中安装——>确定——重启计算机

         磁盘中安装的目录为:C:\Program Files (x86)\VMware\VMware Workstation\netbridge.inf

      

posted @ 2019-01-06 18:16  人间值得  阅读(806)  评论(0编辑  收藏  举报