最小安装的CentOS联网
来源:互联网 发布:手机淘宝好评能修改吗 编辑:程序博客网 时间:2024/06/05 19:48
我用VirtualBox最小化安装了一个CentOS,没找到太好的联网方法,发现借助NAT联网是一个很取巧的方法:
很显然,先要将连接方式设置为“网络地址转换(NAT)”:
然后启动CentOS,用ifup通过脚本启动网络接口:
我们man ifup可以看到如下信息:
ifup(8) System Administration tools and Daemons ifup(8)NAME ifup - bring a network interface up ifdown - take a network interface downSYNOPSIS ifup CONFIG [boot] ifdown CONFIGDESCRIPTION The ifup and ifdown commands may be used to configure (or, respec- tively, deconfigure) network interfaces based on interface definitions in the files /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-<configuration> These scripts take one argument normally: the name of the configuration (e.g. eth0). They are called with a second argument of "boot" during the boot sequence so that devices that are not meant to be brought up on boot (ONBOOT=no, see below) can be ignored at that time.FILES /etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-<configuration> The file defining an interface.SEE ALSO /usr/share/doc/initscripts-*/sysconfig.txt当然还可以打开ifcfg-<configuration>文件,将"ONBOOT=no"修改为"ONBOOT=yes",然后"service network restart"。
0 0
- 最小安装的CentOS联网
- CentOS最小安装后如何联网
- CentOS最小系统联网指南
- Linux最小安装联网
- 安装完centos无法联网的解决方法
- VirtualBox安装CentOS联网问题
- CentOS最小化安装后联网
- centos最小安装出现的问题
- VMware8虚拟机安装CentOS无法联网的解决方法
- CentOS 6.4最小安装
- CentOS 7 最小安装后的 简易桌面安装
- CentOs的Linux联网配置
- CentOS安装完成后无法联网
- CentOS 7安装后无法联网
- Centos 7 最小化安装后,不能联网
- 虚拟机安装centos 6.5 basicserver 配置联网
- Centos 不联网安装配置Opencv
- 安装CentOS Linux 7 并联网
- 算法训练 出现次数最多的整数
- java实现打印倒直角三角形
- c语言语句
- java实现打印等腰三角形
- Codeforces 633C Spy Syndrome 2(Trie+暴力)
- 最小安装的CentOS联网
- 宏定义复习
- java实现九九乘法表的输出
- 第一章 一个简单的web服务器
- vxworks 函数速查
- 语义化版本 2.0.0
- HashMap和Hashtable的区别
- WIN7多次分盘
- aufs的实现