悉野小楼

导航

[转]virtualbox centos无法上网问题

原文地址

https://www.cnblogs.com/Joke-Jay/p/8215295.html

virualbox里面设置nat模式(我这儿配置virtual时, 第一张网卡是NAT模式, 还加了一张网卡, 选择了host-only模式, 估计不是必须)

修改centos里面文件:

vi /etc/sysconfig/network-scripts/ifcfg-enp0s3 文件

ONBOOT=no改为ONBOOT=yes

保存后, 重启网络服务

service network restart  重启网络服务

阿里云镜像 CentOS7: https://mirrors.aliyun.com/centos/7/isos/x86_64/

参考:CentOS各版本区别与下载

另外参考:https://blog.csdn.net/xiaotongzhi_w/article/details/108673396

posted on 2023-08-07 13:59  悉野  阅读(8)  评论(0编辑  收藏  举报