1 简介
初始安装完debian 7.7.0时,需要首先配置网络及apt-get源,才能正常使用。
2 debian各个版本配置
2.1 debian 7.7.0配置网络及apt-get源
2.1.1 配置网络-静态IP
修改文件/etc/network/interfaces
使网络配置生效
初始安装完debian 7.7.0时,需要首先配置网络及apt-get源,才能正常使用。
2 debian各个版本配置
2.1 debian 7.7.0配置网络及apt-get源
2.1.1 配置网络-静态IP
修改文件/etc/network/interfaces
vi /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
增加如下选项
iface eth0 inet static
address 192.168.1.18
netmask 255.255.255.0
gatway 192.168.1.1
配置完成后文件信息为
使网络配置生效
root@debian:~# ifdown eth