• 为eth0 配置网络

    • 1 vi /etc/network/intefaces

       

    • 添加以下内容

      1   auto eth0
      2   iface eth0 inet static
      3   address 192.168.0.10
      4   netmask 255.255.255.0
      5   gateway 192.168.0.1

       

    • 关闭网络

    • 1  ifdown eth0

       

    • 开启网络 

    • 1 ifup eth0

       

posted on 2016-05-02 10:25  zeopean  阅读(458)  评论(0编辑  收藏  举报