大侠们帮我看看Linux(Red Hat9)下ADSL无法上网的问题,急!

usingc2002 2004-10-21 06:41:10
我下载了ppoe安装了,然后运行adsl-setup安装,
以下是安装提示:
Welcome to the ADSL client setup. First, I will run some checks on
your system to make sure the PPPoE client is installed properly...

The following DSL config was found on your system:

Device: Name:
ppp0 DSLppp0

Please enter the device if you want to configure the present DSL config
(default ppp0) or enter 'n' if you want to create a new one:

==============================
我选择默认 ppp0
==============================

LOGIN NAME

Enter your Login Name (default admin): admin

=======================================================
原来是root,我就是不知道这个Login Name指的是什么,是登录Linux
时的帐号,还是登录路由器的帐号,我的网卡和路由器都是D-Link的,
我在Windows下是通过输入192.168.0.1,用户名和密码都是admin来
配置路由器的。
=======================================================

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 ethX, where 'X' 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):

===========================================================
这个我也是选择默认,no
===========================================================

DNS

Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide dynamic 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.101.98.54
Please enter the IP address of your ISP's secondary DNS server.
If you just press enter, I will assume there is only one DNS server.
Enter the secondary DNS server address here: 202.101.98.55

===========================================================
如上所示,我输入的DNS是202.101.98.54和202.101.98.55
===========================================================

PASSWORD

Please enter your Password:
Please re-enter your Password:

==========================================================
不知道这个Password指的是登录Linux时的密码还是登录路由器时的密码?
==========================================================

USERCTRL

Please enter 'yes' (two letters, lower-case.) if you want to allow
normal user to start or stop DSL connection (default yes):

================================
我选择yes
================================

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): 0

==============================================================
我选择0
==============================================================

Start this connection at boot time

Do you want to start this connection at boot time?
Please enter no or yes (default no):

==============================================================
我选择no
==============================================================

** Summary of what you entered **

Ethernet Interface: eth0
User name: admin
Activate-on-demand: No
Primary DNS: 202.101.98.54
Secondary DNS: 202.101.98.55
Firewalling: NONE
User Control: yes
Accept these settings and adjust configuration files (y/n)? y
Adjusting /etc/sysconfig/network-scripts/ifcfg-ppp0
Adjusting /etc/resolv.conf
Adjusting /etc/ppp/chap-secrets and /etc/ppp/pap-secrets
(But first backing it up to /etc/ppp/chap-secrets.bak)
(But first backing it up to /etc/ppp/pap-secrets.bak)

Congratulations, it should be all set up!

Type '/sbin/ifup ppp0' to bring up your xDSL link and '/sbin/ifdown ppp0'
to bring it down.
Type '/sbin/adsl-status /etc/sysconfig/network-scripts/ifcfg-ppp0'
to see the link status.

==============================================
可是我还是无法上网,我敲了adsl-start还是不行,敲adsl-status查看,显示如下信息:
Note: You have enabled demand-connection; adsl-status may be inaccurate.
adsl-status: Link is attached to ppp0, but ppp0 is down
大家帮我分析看哪里出了问题?
==============================================


...全文
202 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
usingc2002 2004-10-25
  • 打赏
  • 举报
回复
原来我从一开始就陷入了一个怪圈,一个错误的方向,扎在ppp里面出不来了.
我就想在Windows下那么简单的配置之后就可以上网了,在Linux下怎么就这么复杂了?
其实RedHat已经帮我们都考虑到了,现在可以不必理会ppp了,也不用安装那些了!

很简单,来:

点击"开始菜单"---"系统设置"-----"网络",默认情况下会有一个eth0设备,它应该是不活跃的,好了,双击它,出现一个"以太网设备"的对话框,点"常规"页标签,选择"静态设置的IP地址",输入地址,子网掩码,默认网关地址,比如我的是:

地址: 192.168.0.2
子网掩码: 255.255.255.0
默认网关地址:192.168.0.1

然后关掉该对话框.

回到"网络配置"对话框,点"DNS"页标签,输入主DNS和第二DNS,比如我的是:
202.101.98.54和202.101.98.55

然后点"设备"页标签,激活那个网卡,ok,可以上网了,就这么简单,和Windows一样!

这是我可以上网时的状态:

[root@localhost root]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:BA:DD:A1:51
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1453 errors:0 dropped:0 overruns:0 frame:0
TX packets:1587 errors:0 dropped:0 overruns:0 carrier:0
collisions:15 txqueuelen:100
RX bytes:1059910 (1.0 Mb) TX bytes:191699 (187.2 Kb)
Interrupt:11 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:11163 errors:0 dropped:0 overruns:0 frame:0
TX packets:11163 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:763195 (745.3 Kb) TX bytes:763195 (745.3 Kb)

=============================================================

[root@localhost root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
Uncommon 2004-10-24
  • 打赏
  • 举报
回复
密切关注中
。。。。
usingc2002 2004-10-23
  • 打赏
  • 举报
回复
没人碰到这种情况吗?
usingc2002 2004-10-23
  • 打赏
  • 举报
回复
UP!
usingc2002 2004-10-23
  • 打赏
  • 举报
回复
我在Mozilla中敲入192.168.0.1,已经可以访问路由器了,我的路由器是D-Link生产的DSL-500。

可是仍然无法上网,敲入其他网址都是无法连接。

谁能帮我解释一下这句话?

adsl-status: Link is attached to ppp0, but ppp0 is down

dahai9825 2004-10-22
  • 打赏
  • 举报
回复
mark
usingc2002 2004-10-21
  • 打赏
  • 举报
回复
我已经输入adsl帐户了还是不行。
tukey 2004-10-21
  • 打赏
  • 举报
回复
LOGIN NAME指的是你用adsl的账户(在isp申请的账户),而不是你机器上的账户(比如root,admin...)!!
usingc2002 2004-10-21
  • 打赏
  • 举报
回复
安装完软件包后,必须配置pppoe的配置文件/etc/ppp/pppoe.conf,从而让ADSL拨号时使用配置文件中的用户名、密码等参数。我们不必手工改动这个文件,可以使用adsl-setup这个工具进行配置:
    #/usr/sbin/adsl-setup
当出现
    >>> 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 value (default no):
  输入 no
当出现
  >>> Enter the DNS information here:
  输入 server ,这表示使用ADSL拨号自动获得的DNS服务器IP地址
当出现
  >>> Please enter your PPPoE password:
  输入ADSL帐号的密码
当出现
  >>> Choose a type of firewall (0-2):
  输入 0 ,不使用防火墙
当出现
  >>> Accept these settings and adjust configuration files (y/n)?
  如果输入的信息正确,输入 y ,完成配置,否则,输入 n 重新输入。

=========================================================================
我按这个要求做了还是不行,郁闷。

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧