CentOS 安装Basic Server 后联网

服务器   发布日期:2025年07月11日   浏览次数:203
  1. 1.vim /etc/sysconfig/network-scripts/ifcfg-eth0
  2. DEVICE=eth1 //更改网卡设备 默认eth0
  3. HWADDR=00:0C:29:3D:5B:E3 //网卡mac地址
  4. TYPE=Ethernet
  5. UUID=c3420d55-d2ae-46dc-b9b9-8fea3c9e3897
  6. ONBOOT=yes //启动设置
  7. NM_CONTROLLED=yes
  8. BOOTPROTO=dhcp

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

  

 

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

  1. ifconfig eth1

  

 

以上就是CentOS 安装Basic Server 后联网的详细内容,更多关于CentOS 安装Basic Server 后联网的资料请关注九品源码其它相关文章!