LinuxSir.cn,穿越时空的Linuxsir!

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

rp-pppoe问题

[复制链接]
发表于 2005-6-19 12:43:28 | 显示全部楼层 |阅读模式
我装rp-pppoe的过程如下:
1.redhat-config-network:
    在其中选DHCP,保存,退出;
2.安装:
    tar -zxf rp-pppoe-3.5.tar.gz;
    cd rp-pppoe-3.5;
    ./go;
3.配置拨号:
    adsl-setup;然后基本上就按默认值设置;
4.拨号上网:adsl-start;
**************************************
但是没有"connected";
再adsl-status,则出现以下提示信息:
    you have enabled demaind-conection:adsl-status may be inaccurate.adsl-statusind is down--could not find interface corresponding to pppd pid 13765.
请各位高手帮忙,问题出在哪?
发表于 2005-6-19 13:48:52 | 显示全部楼层
你编译安装成功了吗?
回复 支持 反对

使用道具 举报

发表于 2005-6-19 16:04:39 | 显示全部楼层
别选 ON DEMAIND。。用continue那个选项。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-19 19:13:36 | 显示全部楼层
嗯,编译成功了呀
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-20 11:18:01 | 显示全部楼层
真是郁闷,Linux下上不了网
我可真是黔驴技穷了哦
期待解决中……
***************************
除了以上显示信息外,还有以下信息:
1.无法激活ppp0;
2.route del default eth0,则显示出错信息:没有那个设备eth0;
回复 支持 反对

使用道具 举报

发表于 2005-6-20 12:37:15 | 显示全部楼层
ifconfig -a
ip addr
随便运行一个,贴结果。


rp pppoe 有log模式,把log也贴出来。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-20 20:17:27 | 显示全部楼层
[root@localhost root]# 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 root): root
                                                                                
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.115.64.33
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.115.64.34

PASSWORD

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

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

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:          root
Activate-on-demand: No
Primary DNS:        202.115.64.33
Secondary DNS:      202.115.64.34
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.

[root@localhost root]# adsl-status
Note: You have enabled demand-connection; adsl-status may be inaccurate.
adsl-status: Link is down -- could not find interface corresponding to
pppd pid 4088

[root@localhost root]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:E0:4C:3A:77:8B
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:571 errors:0 dropped:0 overruns:0 frame:0
          TX packets:208 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:47030 (45.9 Kb)  TX bytes:13130 (12.8 Kb)
          Interrupt:11 Base address:0xf000

lo        Link encapocal Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4167 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4167 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:284241 (277.5 Kb)  TX bytes:284241 (277.5 Kb)

[root@localhost root]# ip addr
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:e0:4c:3a:77:8b brd ff:ff:ff:ff:ff:ff
34: ppp0: <OINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc noop qlen 3
    link/ppp
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-20 20:19:34 | 显示全部楼层
这是我机器上运行的一些情况,rp-pppoe的log文件没找到呀,不知道在哪?在线等,先谢了
回复 支持 反对

使用道具 举报

发表于 2005-6-20 20:43:43 | 显示全部楼层
用户名,应该是你的xDSL的用户名,不是root。

其他的,暂时我还没发现什么问题。



log文件,是要指定的。我要重新看看如何生成。。。。
回复 支持 反对

使用道具 举报

发表于 2005-6-20 20:59:38 | 显示全部楼层
DEBUG=1 adsl-start
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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