xiezhenhui 发表于 2003-12-2 00:33:30

怎样用red hat90+adsl上网?

我已经设置好网卡和adsl(在网络配置中)
也已经激活
在字符模式下也能ping到本地计算机,网卡,adsl。但是就不能上internet。
在windows下可以上网(用win2000+EnterNet300)
请救救我
多谢了!!!!!

Bluedata 发表于 2003-12-2 00:47:00

DNS设好了没?

xiezhenhui 发表于 2003-12-2 11:43:42

在win2000中不用设置DNS,

书中玉 发表于 2003-12-2 14:52:49

RH9的话,直接用命令adsl-setup,选择设置的是ppp0
在设置DNS时,写server。adsl-start连接就可以了。

Bluedata 发表于 2003-12-2 14:56:25

在win2000中不用设置DNS,
那应该是DHCP自动获得的,你在Linux下也用DHCP就行了。

xiezhenhui 发表于 2003-12-2 21:47:02

red hat90+adsl还是上不了网

Bluedata,
很对不起你的关心,我还是上不了网。
可能是我没有把问题讲清楚!
我用Realtek RTL8029(AS) 10M网卡连接中兴ZXDSL831外置,虚拟拨号联上中国电信。
在red hat90中,网卡显示另外一个型号(我忘记记下来了)
我在linux中的X窗口的网络配置中设置:
eth0 Ethernet
          常规项:静态IP:192.168.1.2;掩码255.255.255.0;网关192.168.1.1
          路由:空白
          硬件:空白
pppo xDSL
          常规项:自动获取IP,拨号,自动获取DNS
      路由:空白
      高级:使用同步ppp,其余空白

Bluedata 发表于 2003-12-2 22:05:33

Realtek RTL8029对应的模块是ne2k-pci
既然你都能ping通网关了,那就不是网卡驱动的问题了。
在网卡设置里,你不要固定IP,用DHCP,这样应该可以的。
我先前就是用的这种方式上网的。 :roll:

ilrainyday 发表于 2003-12-2 22:43:54

--------------------------------------------------------------------------------

RedHat Linux + ADSL SOHO Solution

--------------------------------------------------------------------------------

    This solution plantform for SmallOffice & HomeOffice.By using a sample ADSL line.
It is very easy strong and performance.

    Use a ADSL line connect to INTERNET.Use a 10-100MB Hub build Local network.

    Use Linux build a soft route to convert IP address between Internet and Local Network.

    At first I used Windows2000 by NAT addres convert.But it is to slow and have many problem.
For example: can’t send OICQ in local netwrok eachother;can’t browser sina.com.cn and other site.
And if you want performance it,it ...It’s MicroSoft.I really can’t turn it.It is too slow.
I hate MicroSoft,I love Linux.

    The Machine:

    MainBoard:VIA Applo Pro
    CPU:PIII 350
    RAM:200MB
    HardDisk:9GB SCSI
    VGA:i740 AGP 8MB
    NetCard:D-Link 100MB

    Linux Release Version:REDHAT 6.2

1.Install RedHat 6.2

    I install it by package Xfree86,KDE,Gnome... and ppp

    Setting NetCard IP address: 192.168.216.151
   Net Mask: 255.255.255.0

#ifconfig
eth0      Link encap:EthernetHWaddr 00:D0:F8:08:5C:BC
          inet addr:192.168.216.151Bcast:192.168.216.255Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
          RX packets:375 errors:0 dropped:0 overruns:0 frame:0
          TX packets:229 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:7 Base address:0xe800

lo      Link encap:Local Loopback
          inet addr:127.0.0.1Mask:255.0.0.0
          UP LOOPBACK RUNNINGMTU:3924Metric:1
          RX packets:18 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

Disable DefaultRout(Gateway).Let ADSL get it from Server

vi /etc/sysconfig/network
delete the line GATEWAY=

su to root
#/etc/rc.d/init.d/network restart

find if installed ppp package:

if has /usr/sbin/pppd It has been Install
rpm -q ppp

If not installed,Install it from RedHatLinux 6.2 CDROM.
The package name:ppp-2.3.11-4.i386.rpm


--- wecreate发帖时间: 2003-9-16 23:56:19

回复:2.Install ADSL pppoe Driver

Go to http://www.roaringpenguin.com/pppoe/

Down load pppoe driver rp-pppoe-3.4.tar.gz

#tar xvfz rp-pppoe-3.4.tar.gz

# cd rp-pppoe-3.4

# ./go

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 protected]): a0000@163
这里输入在电信局申请的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: server
这里填你ISP的DNS地址,server代表从ADSL接入服务器取得DNS地址

---wecreate

回复:PASSWORD
ADSL拨号密码这个东东。

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

** Summary of what you entered **

Ethernet Interface: eth0
User name:          a0000@163
Activate-on-demand: No
DNS addresses:      Supplied by ISP’s server
Firewalling:      NONE

>>> Accept these settings and adjust configuration files (y/n)? y
Adjusting /etc/ppp/pppoe.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.

and you can use adsl-stop to stop adsl connect
and use adsl-status get information about adsl connect


---wecreate

xiezhenhui 发表于 2003-12-2 22:44:17

Bluedata,
我的网卡在linux里显示eth0 PCI NE2000 clones

Bluedata 发表于 2003-12-2 22:50:56

NE2000也对了。都说了“既然你都能ping通网关了,那就不是网卡驱动的问题了。”
改成DHCP了没?

xiezhenhui 发表于 2003-12-2 22:54:37

ilrainyday,
thank you!
let me try again.

xiezhenhui 发表于 2003-12-2 23:16:07

Bluedata,
改了。
但是......
看来我只有先学习其他的一些应用,上网先用“老瘟”

yin_angel 发表于 2003-12-3 09:33:45

网关?我怎么在设置的时候没有设置网关呢?
由于red hat linux9.0自带pppoe,就可以直接使用.
但需要设置.eth0是系统自己设置的127.0.0.1内部环路,状态是inactive或者active都没有关系.
在eth0下面有一项,(忘了名字),这就是设置xdsl,选择DHCP,设置帐号和password就OK了,关于一项让你填service provider,随便填,我当时填了CNC.

关键在于在DHCP那里打勾,DNS可设可不设,网关不用设置,帐号和密码正确->激活(active) : 激活方式可以有两种,

1.在网络设置中选中不是eth0的那项,再active(激活); 断开时,选中并inactive
2.在终端(terminal)模式下,使用命令: adsl-start; 断开时,使用命令adsl-stop

即可

如果还有不明白的,在red hat linux9.0的文档 (入门指南) 文件中查找, 其中有讲述red hat linux9.0上网的各种类型的设置.

希望你有所收获.

yin_angel 发表于 2003-12-3 09:35:58

btw, 跟你的网卡类型没有什么关系,如果系统不能识别你的网卡,eth0这项都不会出现.
页: [1]
查看完整版本: 怎样用red hat90+adsl上网?