Blogger Information
Blog 40
fans 0
comment 0
visits 29313
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
centos网卡设置--2019-07-22
小人物的博客
Original
681 people have browsed it

2019-07-22作业

centos自定义IP网卡设置结果如下

190722.png

设置步骤:

virtualbox
 显卡 改为vBoxVGA


测试网络
ping www.baidu.com
开启网络
service network start

虚拟机文件设置,网络改为桥接

cd /etc/sysconfig/network-scripts/
###ls 显示目录内容 等同于DIR
###浏览网卡设置   ip addr

编辑命令 vi enp0s3

BOOTPROTO=dhcp  改为  static
ONBOOT=no  改为 yes
添加
IPADDR=192.168.0.125
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
DNS1=114.114.114.114

esc SHFIT+: wq

重启网卡服务
service network restart

Correction status:qualified

Teacher's comments:继续努力
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