LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 5888|回复: 42

Mandrake 下如何实现ADSL上网啊?

[复制链接]
发表于 2003-4-16 15:04:13 | 显示全部楼层 |阅读模式
我是ADSL上网的,请问我如何才能在Mandrake下实现?谢谢各位了!
发表于 2003-4-16 18:41:31 | 显示全部楼层
我也想问这个问题,红旗3.2有个拨号程序PoseidonPPP设置和使用很方便,但可惜不能在Mandrake里用。
发表于 2003-4-16 19:18:27 | 显示全部楼层
http://www.linuxsir.cn/forum.php ... &highlight=adsl
控制中心里设置网卡IP,不要网关,转到终端下
root)#/sbin/adsl-setup 和我一样英文不好的话找旧帖,如上面的地址,有详细设置过程

可是我觉得MDK9.1的ADSL是有问题。我在X中控制中心设置没一次成功过,用rp-pppoe能连上,可是老是打不开网页,要用adsl-stop adsl-start 如此几次才行。帖子中说改lilo.conf,把LINUX下面的APPEND之后的QUIET改成NOAPIC,重新启动就行了,可我在lilo.conf中找不到APPEND。
而RH9.0在GNOME中设置一下网络,就增添了ppp0的设备,然后激活一下就好了。
我是eth0--hub--adsl modem,请高手多指教.
发表于 2003-4-17 18:11:40 | 显示全部楼层

adsl(pppoe)问题

花了一下午时间,搜索了论坛上所有有关mdk9.1下上adsl的帖子,按照各位大侠的方法试了n次,依旧无法上网,错误提示如下:

[root@localhost root]# adsl-status
adsl-status: Link is down (can't read pppd PID file /var/run/pppoe.conf-adsl.pid.pppd)
[root@echo echo]#

adsl-start
................TIMED OUT
/usr/sbin/adsl-start: line 194:  4422 Terminated              $CONNECT "$@" >/dev/null 2>&1
[root@echo echo]#

电信pppoe协议,RH9下一切正常:(
1,改lilo.conf,把LINUX下面的APPEND之后的QUIET改成NOAPIC,重新启动。。。无效
2,在eth0未连接,直接ppp0或eth0连接再ppp0的情况下。。。。。。。。。。均无效
请高手帮忙看看。。。
谢谢!
发表于 2003-4-17 19:22:15 | 显示全部楼层
那么用什么命令断开联接?
发表于 2003-4-18 10:39:43 | 显示全部楼层

没人知道吗?

那只有删了mdk装rh了,不过。。。。mdk的界面实在是很漂亮。。。。
发表于 2003-4-18 11:13:12 | 显示全部楼层
去GOOGLE上搜索REPPPOE,这是一个有图形界面的拨号工具。拨号是否能成功,跟APIC没有关系,你从电信客户服务那里是问不到什么的。自己多研究一下。
发表于 2003-4-18 14:41:43 | 显示全部楼层
我用adsl的时候也有类似的问题,每次察看状态的时候,网络都是
用的静态的IP,不知道时不是你的也一样,我是用手动先把IP改成
dhcp协议,在从新安装adsl
发表于 2003-4-18 20:14:59 | 显示全部楼层
这样来试一下,要先设置网卡
#netconf

把IP和DNS设置成如下的。
IP地址:192.168.0.1
掩码:
255.255.255.0
DNS
202.96.134.133
202.96.168.68

不要设置网关

然后再来设置ADSL。这一处,我们要用命令。

#adsl-setup


Welcome to the Roaring Penguin ADSL client setup.  First, I will run
some checks on your system to make sure the PPPoE client is installed
properly...

Looks good!  Now, please enter some information:

USER NAME

>>> Enter your PPPoE user name (default XXX):  在这里输入ADSL的用户名

INTERFACE

>>> 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

Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped.  If you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses.  You may have some problems with demand-activated links.
>>> Enter the demand value (default no):不用写什么

DNS

Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide DNS addresses',
enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
>>> Enter the DNS information here:在这里写上202.96.134.133
下一个DNS是202.96.168.68

PASSWORD

>>> Please enter your PPPoE password:输入密码
>>> Please re-enter your PPPoE password:再输入一次

FIREWALLING

Please choose the firewall rules to use.  Note that these rules are
very basic.  You are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security.  If you
are running any servers on your machine, you must choose 'NONE' and
set up firewalling yourself.  Otherwise, the firewall rules will deny
access to all standard servers like Web, e-mail, ftp, etc.  If you
are using SSH, the rules will block outgoing SSH connections which
allocate a privileged source port.

The firewall choices are:
0 - NONE: This script will not set any firewall rules.  You are responsible
          for ensuring the security of your machine.  You are STRONGLY
          recommended to use some kind of firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
                for a LAN
>>> Choose a type of firewall (0-2):这里添写为2

** Summary of what you entered **

Ethernet Interface: eth0
User name:          XXX
Activate-on-demand: No
DNS:                Do not adjust
Firewalling:        MASQUERADE

>>> Accept these settings and adjust configuration files (y/n)?

弄完后,就按一个y键。

用adsl-start来启动ADSL。如果不成功就重启一下计算机。

如果再不成功呢????要发以下文件的内容:

/etc/sysconfig/network-scripts/ifcfg-eth0

/etc/ppp/pppoe.conf

/etc/resolv.conf

/etc/sysconfig/network-scripts/net_cnx_up


多谢。
发表于 2003-4-18 21:08:47 | 显示全部楼层
To 北南南北兄:

多谢您的回复!
请问firewall一定要选“2”吗?选“0”是不是出现问题的机会会更小一点?
(btw,一时着急又装回RedHat了,MDK的ISO也都删掉了,唉。。硬盘太紧张了)
这就去重新下载,重新安装。。。遇到问题再向您请教!
多谢!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表