|
装的是电信的LAN,和ADSL一样用PPPOE拔号上网。但有时会断网,或是刚开机时不能上网,ping外面的网址都ping不通。
论坛上查到一些贴子说是默认网关问题,于是用
#route del default
和
#route add default ppp0
这时可以上网了,但重启后又和原来一样了,又要重新打一次这两条命令才能上网。
如何设置可以使得刚开机不用打上面两条命令就可以上网啊?
/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
# The primary network interface
auto eth0
iface eth0 inet dhcp
auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider
# please do not modify the following line
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf |
|