debian静态地址网络配置方法

/*************************************************
* Author : Samson
* Date : 08/15/2015
* Test platform:
* Debian 8.0
* GNU bash, 4.3.11(1)-release (x86_64-pc-linux-gnu)
* ***********************************************/

$ vim /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
#allow-hotplug eth0
#iface eth0 inet dhcp

auto eth0
iface eth0 inet static
  address 192.168.0.11
  netmask 255.255.255.0
  gateway 192.168.0.1
 
有关网卡配置的方法可參看:

https://wiki.debian.org/NetworkConfiguration
399
原文地址:https://www.cnblogs.com/wgwyanfs/p/7065955.html