LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
123
返回列表 发新帖
楼主: Genggz

求救,海淀在线宽带上网!

[复制链接]
 楼主| 发表于 2005-5-11 15:56:16 | 显示全部楼层

这是如下netconfig和adsl的过程,请看

[root@aka root]# netconfig
[root@aka root]# service network stop
Shutting down interface eth0:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
[root@aka root]# service network start
Setting network parameters:                                [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:                                [  OK  ]
[root@aka root]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:50:8B:59:99:6B
          inet addr:10.90.7.23  Bcast:10.90.15.255  Mask:255.255.240.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3714 errors:0 dropped:0 overruns:0 frame:0
          TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:279216 (272.6 Kb)  TX bytes:1948 (1.9 Kb)
          Interrupt:3 Base address:0x300

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

[root@aka root]# 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 hdjxxfju18195):

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

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.106.0.20
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.106.196.115

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 respons
ible
          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 worksta
tion
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
                for a LAN
>>> Choose a type of firewall (0-2): 0

** Summary of what you entered **

Ethernet Interface: eth0
User name:          hdjxxfju18195
Activate-on-demand: No
Primary DNS:        202.106.0.20
Secondary DNS:      202.106.196.115
Firewalling:        NONE

>>> Accept these settings and adjust configuration files (y/n)? y
Adjusting /etc/ppp/pppoe.conf
Adjusting /etc/resolv.conf
  (But first backing it up to /etc/resolv.conf-bak)
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.
[root@aka root]# adsl-start
................TIMED OUT
/usr/sbin/adsl-start: line 191:  3381 Terminated              $CONNECT        "$@" >/dev/null 2>&1
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-11 16:47:51 | 显示全部楼层

看来我还是只能用win2K上网了……

不管怎么样,还是谢谢大家
回复 支持 反对

使用道具 举报

发表于 2005-5-11 22:55:21 | 显示全部楼层

有经验的弟兄来说说。。。

我是无能为力了,毕竟我没有用过这样的网络环境。。。
回复 支持 反对

使用道具 举报

发表于 2005-5-22 01:04:18 | 显示全部楼层
设置 ip  网关 netmask 的方法看看这里
http://slax.linux-live.org/doc_using_linux_slax.php#network

就是这个 :
ifconfig eth0 123.123.123.123 netmask 255.255.255.0
route add default gateway 123.123.123.1
echo "nameserver 123.123.123.10" >> /etc/resolv.conf


我发现在slax 和 slackware 里面 netconfig 根本没有用 ,每次都要到slax的FAQ来查这几条命令--实在记不住 。

之前还真不知道这种上网方式也能在linux下 上网 ,虽然你还没有最终成功,但是好像已经通过了认证
继续努力吧,如果成功了一定来说一声。

我记得这种上网方式是非常快的至少300k数据/秒 ,可惜我用不上.
回复 支持 反对

使用道具 举报

发表于 2005-6-16 01:01:11 | 显示全部楼层
dr.com用的是自己开发的协议,不是普通的pppoe。

我有一个软件,但看来大家都不知道呢:
http://sourceforge.net/projects/drcom-client
试试看吧,我自己觉得好用(自己的程序总是觉得好用
回复 支持 反对

使用道具 举报

发表于 2005-6-16 22:28:29 | 显示全部楼层
Post by wpyh
dr.com用的是自己开发的协议,不是普通的pppoe。

我有一个软件,但看来大家都不知道呢:
http://sourceforge.net/projects/drcom-client
试试看吧,我自己觉得好用(自己的程序总是觉得好用




呵呵 开源世界真是无奇不有, 又多了一种上网方式。

顺便问一下。有没有代替这个客户端的软件,http://www.tjhb.com.cn/jiaocheng/kehu.htm

   是通过有线电视线路上网的,一直下不了决心用,就是怕linux上不了网。

  大家帮忙看看
回复 支持 反对

使用道具 举报

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

本版积分规则

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