Blogger Information
Blog 63
fans 1
comment 0
visits 75910
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
centos网络设置
桃儿的博客
Original
1070 people have browsed it

centos系统安装完成后,输入用户名和密码登陆进去

7-23-1.jpg

输入命令:cd /etc/sysconfig/network-scripts/

输入命令:ip addr

输入命令:vi ifcfg-enp0s3


7-23-2.jpg

打开网络配置文件后,按i进行修改

将其中BOOTPROTO=dhcp修改为BOOTPROTO=static,

ONBOOT=no修改为ONBOOT=yes

并设置IPADDR,NETMASK,GATEWAY,DNS1等

按ESC退出修改模式,按shift+:  ,输入wq保存并退出。

7-23-3.jpg


重启后如下图就可以了。

7-23-4.jpg


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post