Linux网络管理与邮件通信指南
1. 开机时配置网络
在每次启动系统时自动启动网络是很有意义的。要实现这一点,各种启动脚本必须包含适当的命令。通常,你只需配置好网络(可以在安装过程中进行,也可以在之后使用网络配置工具)。如果网络在启动时出现问题,你可以通过检查相关文件来进行故障排除。
不同Linux发行版在开机时配置网络的方式有所不同:
- Debian、Ubuntu和Xandros : /etc/network/interfaces 文件描述了系统中可用的网络接口, /sbin/ifup 命令在系统启动时激活这些接口。以下是一个典型的Debian系统的 /etc/network/interfaces 文件内容:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
auto eth0 行表示可以在初始化时使用系统启动脚本调用的
超级会员免费看
订阅专栏 解锁全文
1623

被折叠的 条评论
为什么被折叠?



