最大的]烦恼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 ]
[问题最大的]烦恼7.04设置静态地址后经常会断线
- toawinner47
- 帖子: 200
- 注册时间: 2006-11-08 20:46
- 联系:
- toawinner47
- 帖子: 200
- 注册时间: 2006-11-08 20:46
- 联系:
下面是sudo gedit /etc/network/interfaces配置文件
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
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
-
- 帖子: 3
- 注册时间: 2006-09-23 15:50
- toawinner47
- 帖子: 200
- 注册时间: 2006-11-08 20:46
- 联系:
[分享]找到解决办法了
得重新 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
代码: # 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