斜树的空间

集中精力,放弃一切的去做一件事情,只要尽力了,即使失败了,你也不会后悔!

  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  47 随笔 :: 0 文章 :: 12 评论 :: 0 Trackbacks


个人觉得LINUX的ADSL上网比较安全和稳定,以下是在LINUX下配置ADSL上网的方法。

1、配置Linux下的ADSL 1.1、在命令行中进行配置。
用root帐号登陆console,在提示符中输入:
#adsl-setup。(现在貌似是pppoe-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...
The following DSL config was found on your system:
Device: Name:
ppp0
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 Enter your PPPoE user name :
输入ADSL帐号,按回车。 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):
输入ADSL连接网卡的名称。在Linux中网卡的编号默认是eth0,eth1,eth2......,根据你的实际情况输入。如果你的系统中只有一块 网卡,请输入eth0然后回车。

Please enter 'yes' (two letters, lower-case.) if you want to allow normal user to start or stop DSL connection (default yes):
是否允许普通用户共享ADSL,输入yes。

Enter the demand value (default no):
输入 no,然后回车。

Enter the DNS information here:
你可以输入你知道的当地的DNS的名称,当然,你也可以简单的就直接输入 server。

Please enter your PPPoE password:
输入ADSL帐号的密码 ,回车。
Please re-enter your Password:
再次输入密码,回车。

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): Start this connection at boot time
Do you want to start this connection at boot time?
Please enter no or yes (default no):
是否允许开机运行,这里输入no。
Choose a type of firewall (0-2):
输入 0 ,不使用防火墙,回车。

** Summary of what you entered **
Ethernet Interface: eth0
User name: nicry
Activate-on-demand: No
Primary DNS: 61.139.2.69
Secondary
DNS: 61.139.2.69
Firewalling: STANDALONE
User Control: yes
Accept these settings and adjust configuration files (y/n)?
你是否确定信息的正确性,如果确定,按y回车,如果不确定就俺你回车重新输入。
好了,在命令行中就完成了ADSL的配置了。

1.2、在图形界面中使用系统的配置工具完成配置工作
注意:该方法只能在redhat中实现。
用root帐号登陆系统,运行
redhat-config-network
或者单击K或者大脚板(看你是在kde下还是gnome下。这相当于MS中的开始。)选择系统设置,选择网络。
选择"xDSL连接",输入adsl连接的用户名,密码。这个方式很简单,就好像是在xp中配置ADSL一样,看提示就可以操作了。啊哈~

配置好了的配置文件是存放在
/etc/ppp/pppoe.conf

2、如何在Linux中使用ADSL
要上网的时候请在console中执行
adsl-start adsl-stop
如果要检查当前adsl的状态请输入
adsl-status

好了,现在你就可以方便的使用Linux中的ADSL进行上网了,希望大家喜欢


posted on 2011-04-11 22:36 张贵川 阅读(394) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理