Linux - 网络配置#

 

# 慕课网学习 #

一、虚拟机 CentOS 网络配置:

1、桥接模式下手动设置IP

  #vi /etc/sysconfig/network-scripts/ifcfg-eth0 [编辑网卡的配置文件]

  IPADDR = 192.168.1.211

  NETMASK=255.255.255.0

  GATEWAY=192.168.1.1

      ONBOOT = no 改为 yes

  BOOTPROTO = dhcp 改为 none

  #service network restart [网络重启]

  这样eth0的IP就生效了,#ifconfig eth0 查看具体设置;

2、NAT模式 ...

  

  

 

  

 

posted @ 2015-12-04 23:06  chenyizh  阅读(114)  评论(0)    收藏  举报