|
安装完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后无反映,无法上网,请问是什么问题? |
|