[问题最大的]烦恼7.04设置静态地址后经常会断线

编译打包和其他
回复
头像
toawinner47
帖子: 200
注册时间: 2006-11-08 20:46
联系:

[问题最大的]烦恼7.04设置静态地址后经常会断线

#1

帖子 toawinner47 » 2007-03-29 22:44

最大的]烦恼7.04设置静态地址后经常会断线,用DHCP则不会
hbshcx@hbshcx-desktop:~$ sudo pppoeconf
Password:
Plugin rp-pppoe.so loaded.
hbshcx@hbshcx-desktop:~$ sudo gedit /etc/network/interfaces
hbshcx@hbshcx-desktop:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces... SIOCDELRT: No such process
dsl-provider: ERROR while getting interface flags: No such device
Plugin rp-pppoe.so loaded.
on: ERROR while getting interface flags: No such device
[ OK ]
hbshcx@hbshcx-desktop:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces... There is already a pid file /var/run/dhclient.eth0.pid with pid 134993416
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:e0:4c:41:5a:47
Sending on LPF/eth0/00:e0:4c:41:5a:47
Sending on Socket/fallback
There is already a pid file /var/run/dhclient.eth0.pid with pid 134993416
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:e0:4c:41:5a:47
Sending on LPF/eth0/00:e0:4c:41:5a:47
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
dsl-provider: ERROR while getting interface flags: No such device
Plugin rp-pppoe.so loaded.
on: ERROR while getting interface flags: No such device
[ OK ]
头像
toawinner47
帖子: 200
注册时间: 2006-11-08 20:46
联系:

下面是sudo gedit /etc/network/interfaces配置文件

#2

帖子 toawinner47 » 2007-03-29 22:52

auto eth0
iface eth0 inet dhcp
address 192.168.1.120
netmask 255.255.255.0
gateway 192.168.1.1
auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider

auto on

iface on inet manual
qinwei1981
帖子: 3
注册时间: 2006-09-23 15:50

#3

帖子 qinwei1981 » 2007-03-30 11:09

我好像也碰到这个问题,搞不大明白怎么回事。
头像
toawinner47
帖子: 200
注册时间: 2006-11-08 20:46
联系:

[分享]找到解决办法了

#4

帖子 toawinner47 » 2007-04-01 20:12

得重新 sudo gedit /etc/network/interfaces


代码: # sudo gedit /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
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider

# The primary network interface
auto eth0
iface eth0 inet static
address 10.23.1.10
netmask 255.255.255.0
network 10.23.1.0
broadcast 10.23.1.255
gateway 10.23.1.1
保存退出
然后鼠标右键点上面板---点添加到面板----点网络监视器的图标----点添加---关闭完成OK
blblme
帖子: 102
注册时间: 2007-03-24 12:57

#5

帖子 blblme » 2007-04-02 2:06

我现在仍然弄不明白 /etc/network/interfaces
改不好进入gonme时候非常慢像卡死一样 清空interfaces才行
回复