中国IT动力,最新最全的IT技术教程
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档 | 网通镜像
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 硬件维护 | 未整理篇 | 站长教程
ASP JS PHP工程 ASP.NET 网站建设 UML J2EESUN .NET VC VB VFP 网络维护 数据库 DB2 SQL2000 Oracle Mysql
服务器 Win2000 Office C DreamWeaver FireWorks Flash PhotoShop 上网宝典 CorelDraw 协议大全 网络安全 微软认证
硬件维护  CPU  主板  硬盘  内存  显卡  显示器  键盘鼠标  声卡音箱  打印机  机箱电源  BIOS  网卡  C#  Java  Delphi  vs.net2005
  当前位置:> 操作系统 > Linux > Debian
在Debian操作系统中网卡的设置步骤
作者:佚名 时间:2007-12-04 17:10 出处:ccidnet 责编:月夜寒箫
              摘要:在Debian操作系统中网卡的设置步骤

在Debian中网卡的设置可以通过/etc/network/interfaces文件来进行,具体可分为三种不同的配置方式:DHCP自动获取、静态分配IP地址和PPPoE宽带拨号。

具体设置如下: 在进行配置之前,首先进入/etc/network目录中,编辑interfaces文件:

网卡通过DHCP自动获取IP地址

 

# 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(配置环回口)
            # 开机自动激lo接口
            auto lo
            # 配置lo接口为环回口
            iface lo inet loopback
            #
            # The primary network interface (配置主网络接口)
            #开机自动激活eth0接口
            auto eth0
            #配置eth0接口为DHCP自动获取
            iface eth0 inet dhcp

网卡静态分配IP地址

 

# 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(配置环回口)
            # 开机自动激lo接口
            auto lo
            # 配置lo接口为环回口
            iface lo inet loopback
            #
            # The primary network interface (配置主网络接口)
            #开机自动激活eth0接口
            auto eth0
            #配置eth0接口为静态设置IP地址
            iface eth0 inet static
            address 10.16.3.99
            netmask 255.255.255.0
            network 10.16.3.0
            broadcast 10.16.3.255
            gateway 10.16.3.1
            # dns-* options are implemented by the resolvconf package, if installed(DNS设置)
            dns-nameservers 61.153.177.196 61.153.177.197
            dns-search fireteam.org

网卡进行PPPoE宽带拨号配置

 

# 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(配置环回口)
            # 开机自动激lo接口
            auto lo
            # 配置lo接口为环回口
            iface lo inet loopback
            #
            # The primary network interface (配置主网络接口)
            #开机自动激活eth0接口
            auto eth0
            #配置eth0接口为静态设置IP地址
            iface eth0 inet static
            address 10.16.3.99
            netmask 255.255.255.0
            network 10.16.3.0
            broadcast 10.16.3.255

配置完毕后,重启计算机或网络服务即可将网卡配好。如进行PPPoE宽带拨号,可运行pppoeconf命令进行配置。

关闭本页
 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 chinaitpower.com All rights reserved. www.chinaitpower.com 版权所有