用过ADSL的人都知道,在WINDOWS上有一个叫WinPPoE的软件,通过这个软件可以很容易地联上ISP,接入INTERNET。您想知道在 LINUX上如何通过ADSL上网吗?我刚试成功,现在就迫不急待地告诉您:我用的是SUSE Linux 6.4, 选择它的原因是它对硬件的支持很丰富而且配置方便。

1、Packege

SuSe 6.4已含pppoed-0.46-7。

2、设置网卡和网关

# ifconfig eth0 mtu 1492 (不要为eth0设任何IP地址)并确保你的default gateway 为空。

3、将用户名和密码加入到/etc/ppp/pap-secrets和/etc/ppp/chap-secrets.

应象这样: "[email protected]" * "mypassword"

4、编辑/etc/resolve.conf

nameserver 202.96.134.133

nameserver 202.96.128.68

5、在/etc/modules.conf中加入下面一行:

alias char-major-144 pppox

(实际上这一行在我的Suse中已存在了)

6、修改文件 /etc/ppp/options.

# general options

idle 600

# this is a must user

[email protected]

sync

local

nocrtscts

noauth

usepeerdns

mru 1490

mtu 1490

# this is recommended

defaultroute

hide-password

nodetach

#

# switch off all compressions

# this is a must

noaccomp

nopcomp

# this is recommended

novj

novjccomp

nobsdcomp

nodeflate

noccp

注意:登录名应用你自己的。