码迷,mamicode.com
首页 > 其他好文 > 详细

debian静态地址网络配置方法

时间:2015-08-16 02:09:34      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:

/*************************************************
* 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

版权声明:本文为博主原创文章,未经博主允许不得转载。

debian静态地址网络配置方法

标签:

原文地址:http://blog.csdn.net/yygydjkthh/article/details/47694467

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!