LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 896|回复: 1

网卡问题???求助

[复制链接]
发表于 2006-1-25 12:18:08 | 显示全部楼层 |阅读模式
安装完testing后,本人网卡设置如下
# 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 static
        address 192.168.0.13
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.13
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.0.13
        dns-search Debian
用pppoeconf配adsl后

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.0.13
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.13
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.0.13
        dns-search Debian

iface dsl-provider inet ppp
provider dsl-provider

auto eth0

    iface eth0 inet manual

重启网卡/etc/init.d/networking restart,出现如下错误
* /etc/network/options is deprecated.
Reconfiguring network interfaces.../etc/network/interfaces:23: interface eth0 declared allow-auto twice
ifdown: couldn't read interfaces file "/etc/network/interfaces"
/etc/network/interfaces:23: interface eth0 declared allow-auto twice
ifup: couldn't read interfaces file "/etc/network/interfaces"
failed.
删除最后两行,错误信息不会在出现,但pon dsl-provider后无反映,无法上网,请问是什么问题?
发表于 2006-1-25 13:00:47 | 显示全部楼层
eth0网卡重复申明。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表