|
刚搞好gentoo不久,今天遇到了问题。而且是在gentoo下遇到的新问题。(我ft,为什么就是我遇到这样简单的问题都解决不了)
原来在gentoo下用emerge ppp rp-pppoe配置好了adsl,都可上网,但今天居然出了问题,不知道怎么样造成的。希望在座的各位帮帮我解决一下我的问题吧。
启动gentoo后,在终端下输入:
[code:1]bash-2.05a# adsl-start
................TIMED OUT
/usr/sbin/adsl-start: line 191: 3092 Terminated $CONNECT "$@" >/de
v/null 2>&1[/code:1]
我查看了/usr/sbin/adsl-start这个文件的191行,发现其中这行是空的。
于是我重新emerge rp-pppoe,然后再运行adst-setup,重新建立adsl,但运行adsl-start,得出的结果同样是那个错误的提示。
我也试过下载ppp和pppoe的rpm包重新安装,问题仍然是一样。
由于我原来是在Mandrake90下安装gentoo的,于是决定从这方面着手。启动Mandrake90,在终端下:
[code:1][root@huang root]# mount -t ext3 /dev/hda10 /mnt/gentoo/
[root@huang root]# mount -t ext2 /dev/hda8 /mnt/gentoo/boot/
[root@huang root]# mount -o bind /proc /mnt/gentoo/proc
[root@huang root]# chroot /mnt/gentoo /bin/bash
[root@huang /]# env
env env-update
[root@huang /]# env-update
>>> Regenerating /etc/ld.so.cache...
[root@huang /]# source /etc/profile
huang / # adsl-status
adsl-status: Link is down (can't read pppoe PID file /var/run/pppoe.conf-adsl.pid.pppoe)
huang / # adsl-start
................TIMED OUT
/usr/sbin/adsl-start: line 193: 3366 Terminated $CONNECT "$@" >/dev/null 2>&1[/code:1]
问题还是没有解决。于是重新adsl-setup:[code:1]huang / # 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 [email][email protected][/email]): [email][email protected][/email]
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 eth1):eth1
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 IPaddresses. 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 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
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.96.128.133
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: eth1
User name: [email][email protected][/email]
Activate-on-demand: No
Primary DNS: 202.96.134.133
Secondary DNS: 202.96.128.133
Firewalling: MASQUERADE
>>> Accept these settings and adjust configuration files (y/n)? y
Adjusting /etc/ppp/pppoe.conf
Adjusting /etc/resolv.conf
Adjusting /etc/ppp/pap-secrets and /etc/ppp/chap-secrets
(But first backing it up to /etc/ppp/pap-secrets-bak)
(But first backing it up to /etc/ppp/chap-secrets-bak)
Congratulations, it should be all set up!
Type 'adsl-start' to bring up your ADSL link and 'adsl-stop' to bring
it down. Type 'adsl-status' to see the link status.
[/code:1]
再连接;
[code:1]huang / # adsl-start
. Connected!
huang / # ping [url]www.linuxsir.org[/url]
PING [url]www.linuxsir.org[/url] (218.5.72.79): 56 octets data
64 octets from 218.5.72.79: icmp_seq=0 ttl=113 time=57.2 ms
64 octets from 218.5.72.79: icmp_seq=1 ttl=113 time=56.1 ms
64 octets from 218.5.72.79: icmp_seq=2 ttl=113 time=57.2 ms
64 octets from 218.5.72.79: icmp_seq=3 ttl=113 time=58.2 ms
64 octets from 218.5.72.79: icmp_seq=4 ttl=113 time=57.3 ms
--- [url]www.linuxsir.org[/url] ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 56.1/57.2/58.2 ms[/code:1]
都能上网。现在就在这里发帖子。我真是没有什么办法了。上面的设置一切正确,反反复复我都搞了好多次,我都搞了一个上午,还是没有搞好,在其它的系统我只要几分钟就可以搞好,但在gentoo仍然没有办法解决。希望各位给点建议,我实在是有点受不了。谢谢!!!!!! |
|