首页 > 代码库 > CentOS 安装Basic Server 后联网

CentOS 安装Basic Server 后联网

1.vim /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth1   //更改网卡设备 默认eth0HWADDR=00:0C:29:3D:5B:E3   //网卡mac地址TYPE=EthernetUUID=c3420d55-d2ae-46dc-b9b9-8fea3c9e3897ONBOOT=yes     //启动设置NM_CONTROLLED=yesBOOTPROTO=dhcp

2./etc/init.d/network restart  //重启网卡设备

  

 

 网卡MAC地址可通过命令查看 

ifconfig eth1

  

 

CentOS 安装Basic Server 后联网