|
|
发表于 2006-8-17 14:48:21
|
显示全部楼层
我的是铁通的(准备换了),可以参考一下
我的是 Debian系统,通过拨号上网,动态IP
我是这么做的:
首先在WIN下拨号连上,然后打开一个DOC创口,运行下面的命令:
ipconfig /all
会出现很多信息,其中最后几行是有关 DNS server address 的,有两个地址,记下来。
然后上网去下载一个rp-pppoe
http://www.roaringpenguin.com/penguin/open_source_rp-pppoe.php
安装:
tar zxvf rp-pppoe-xxxx.tar.gz xxx 是版本号,自己看一下。
cd rp-pppoe-xxx
./go 安装rp-pppoe拨号软件。
当出现
>>> Enter your PPPoE user name :
输入ADSL帐号的用户名
当出现
>>> Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where 'n' is a number.
(default eth0):
输入 eth0 ,这是ADSL相连的网卡的名字
当出现
>>> Enter the demand values (default no):
输入 no
当出现
>>> Enter the DNS inFORMation here:
输入相应的 DNS 服务器 IP 地址(一般有2个),在 magic linux 下通常需要输入 server,即让系统自动分配 ip 地址
当出现
>>> Please enter your PPPoE password:
输入你的 ADSL 帐号的密码
当出现
>>> Choose a type of firewall (0-2):
输入 0 或 1
当出现
>>> Accept these settings and adjust configuration files (y/n)?
如果输入的信息正确,输入 y ,完成配置,
然后是 pppoe-start 进行拨号,如果出现 Connect 等信息,说明连上了
这时候可以 ping www.163.com
如果通,说明你可以上网了,
如果不通,那就添加一下网关
pppoe-status
看一下你的IP
然后
route add default gw xxx.xxx.xxx.xxx
如果还不行,那你自己想办法。
这是我的ADSL拨号,不一定和你的相同!!! |
|