Red Hat 通过ADSL拨号上网

来源:互联网 发布:语嫣 淘宝网总裁 编辑:程序博客网 时间:2024/05/19 02:01

问题


    在电信上申请了网号和密码,想让电脑通过adsl拨号上网。电脑和网络配置如下:

网卡

eth0,eth1(与调制解调器相连)

操作系统

Red Hat Enterprise Linux Server release 5.4 (Tikanga)

       上网账号       

CD02887602942

密码

password


配置过程

    停止adsl

#adsl-stop                                                                                                                                                              

    配置adsl

#adsl-setup(开始配置adsl)

Welcome to the ADSL client setup.  First, I will run some checks on

your system to make sure the PPPoE client is installed properly...

 

 

LOGIN NAME

Enter your Login Name (default root): CD02887602942(账号)

 

 

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

addresses.  You may have some problems with demand-activated links.                                                                      

Enter the demand value (default no): noadsl服务一直启动)

 

 

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: server(使用动态DNS服务)

 

 

PASSWORD

Please enter your Password: *****(密码)

Please re-enter your Password: ******(密码)

 

 

USERCTRL

Please enter 'yes' (three 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: eth1

User name:          CD02887602942

Activate-on-demand: No

DNS addresses:      Supplied by ISP's server

Firewalling:        NONE

User Control:       yes

Accept these settings and adjust configuration files (y/n)?y(确定)

    配置好adsl后,该网络是不具备路由功能的,需要重启网络服务

#adsl-start

#ifup eth1

#/etc/init.d/network restart          

#adsl-connect                                                                                                                                     

    检查是否可以连接到因特网上

#PING www.a.shifen.com (115.239.210.26) 56(84) bytes of data.

64 bytes from 115.239.210.26: icmp_seq=1 ttl=56 time=51.7 ms                                                                                  

64 bytes from 115.239.210.26: icmp_seq=2 ttl=56 time=52.2 ms 

    说明adsl已经设置好了。以后想上网的话,终端中输入adsl-connect即可

#adsl-connect                                                                                                                                                                  


总结


    我们能够方便的使用操作系统,很大程度上是因为有了便利的网络。本文介绍了RedHat操作系统adsl拨号上网的过程,让系统成功连上了互联网。希望这篇博客能对你有所帮助。
原创粉丝点击