[分享]如何自动激活网卡以及开机自动拨号上网

CPU/显卡/打印机/USB设备等硬件问题
回复
头像
jazzi
帖子: 532
注册时间: 2005-10-16 23:26
来自: 泉州
联系:

[分享]如何自动激活网卡以及开机自动拨号上网

#1

帖子 jazzi » 2006-02-13 10:23

在终端中输入

代码: 全选

sudo pppoeconf
设置完宽带上网后——

问 题:系统启动的时候网卡都没自动激活,每次都要到
系统--联网 —-激活eth0...

解决方案:看看/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

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0

# The primary network interface
iface eth0 inet dhcp
--


把/etc/network/interfaces文件末尾多的一条命令那行去掉,我的是多了这么一行:
pre-up /sbin/ifconfig eth0 up
# line maintained by pppoeconf
删掉之后系统就能自动激活eth0了。
然后再在终端里输入:

代码: 全选

sudo ln -s /etc/ppp/pppoe_on_boot /etc/ppp/ppp_on_boot
pppoeconf也能自动拨号了。。



有勇气来改变可以改变的事情,
有度量接受不可改变的事情,
有智慧来分辨两者的不同。[/size]
You make it fun
It will make you fun
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#2

帖子 bones7456 » 2006-04-26 11:14

谢啦,刚好解决了我的问题!
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#3

帖子 eexpress » 2006-04-26 13:47

这个漫画头喜欢整理文档啊。不错。
● 鸣学
phoenix520
帖子: 29
注册时间: 2006-05-14 23:24

#4

帖子 phoenix520 » 2006-06-03 0:48

非常有价值的信息,非常感谢!
头像
守望伊人
帖子: 189
注册时间: 2006-05-18 18:24
来自: 四川广安
联系:

#5

帖子 守望伊人 » 2006-06-05 12:29

我在5.10下是好好的啊,可是升级后,开机也能上网,可是不到一分钟就说Modem handup,不知道是哪里出了问题。贴上我的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

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
auto eth0

# The primary network interface
iface eth0 inet static
network 192.168.1.2
broadcast 192.168.1.255
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 202.98.96.68 61.139.2.69
address 192.168.1.2
netmask 255.255.255.0

auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider

# added by pppoeconf
# pre-up /sbin/ifconfig up line maintained by pppoeconf

# pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
cpp
帖子: 13
注册时间: 2006-11-06 13:34

#6

帖子 cpp » 2006-11-06 13:54

我找来找去都找不到一个gnome下的一个可视化的拨号(adsl)程序 郁闷的说 我 用suse的时候有个kinternet 但是ubt这里没有 怎么办啊?
raulos
帖子: 7
注册时间: 2007-04-30 14:23

#7

帖子 raulos » 2007-05-08 16:15

:D 非常感谢
刚好我也有这样的问题,回家去试试...
iceliushuai
帖子: 42
注册时间: 2006-12-12 20:31
联系:

#8

帖子 iceliushuai » 2007-06-01 14:34

俺是河南的,可是不知道这个东西用不了,谁知道啊?河南网通有它们自己的客户端。但是只有FC系统下的。没有办法啊,只有在另外的机器共享的情况下上网郁闷的很啊。
spth2o
帖子: 2
注册时间: 2007-05-26 17:12

#9

帖子 spth2o » 2007-07-22 21:44

我用星空极速上网,上网的问题一直没有解决,先试 :( 一下
yidefuren
帖子: 2
注册时间: 2007-07-29 11:22

#10

帖子 yidefuren » 2007-07-29 11:44

我也不会弄拨号...linux太难啦!
头像
依寻依然
帖子: 1617
注册时间: 2006-10-31 14:49

#11

帖子 依寻依然 » 2007-07-29 23:00

楼上几位的怎么看这么早的帖子却不看wiki呢?
现在的sudo pppoeconf已经是中文版了,怎么看也应该懂了吧
Borders are meant to be crossed
回复