Oracle VM VirtualBox配置centos7的网络访问
星期四, 2017-05-04 | Author: Lee | linux | 2,610 views
在虚拟机中配置centos7的网络
2.修改配置文件/etc/sysconfig/network-scripts/ifcfg-enp0s3
将ONBOOT=”no”改为yes,
BOOTPROTO=”dhcp”
启用网络 service network restart
3.配置可以工具连接的静态ip地址
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | vi /etc/sysconfig/network-scripts/ifcfg-enp0s3 TYPE=Ethernet #BOOTPROTO=dhcp BOOTPROTO=NONE #(修改) DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=enp0s3 UUID=4a42d996-1da5-4ea9-b0f9-88b77615880d DEVICE=enp0s3 ONBOOT=yes IPADDR0=192.168.1.188 #(新增) PREFIX0=24 #(新增) GATEWAY0=192.168.1.1 #(新增) DNS1=192.168.1.1 #(新增) service network restart |
重启网络即可
文章作者: Lee
本文地址: https://www.pomelolee.com/1711.html
除非注明,Pomelo Lee文章均为原创,转载请以链接形式标明本文地址
No comments yet.
Leave a comment
Search
相关文章
热门文章
最新文章
文章分类
- ajax (10)
- algorithm-learn (3)
- Android (6)
- as (3)
- computer (85)
- Database (30)
- disucz (4)
- enterprise (1)
- erlang (2)
- flash (5)
- golang (3)
- html5 (18)
- ios (4)
- JAVA-and-J2EE (186)
- linux (143)
- mac (10)
- movie-music (11)
- pagemaker (36)
- php (50)
- spring-boot (2)
- Synology群晖 (2)
- Uncategorized (6)
- unity (1)
- webgame (15)
- wordpress (33)
- work-other (2)
- 低代码 (1)
- 体味生活 (40)
- 前端 (21)
- 大数据 (8)
- 游戏开发 (9)
- 爱上海 (19)
- 读书 (4)
- 软件 (3)