|
蓝森林 http://www.lslnet.com 2006年8月18日 15:18
请教关于USB ADSL上网的问题。谢谢
0013 在linux接adsl设备(wind521)
需要一个运转正常的Linux + 至少一块网卡 + 宽带设备已经申请完毕,同时已经开通。目前市场上大概有几种ADSL设备,他们工作的方式有一些细微的差别。
就是通过虚拟拨号来完成上网的这一过程,也就是利用pppoe设备来进行虚拟拨号的叫作全向猫,就是一种加电后自动的进行拨号的工作,然后留给我们的接口是RJ45,大连地区一般留给我们的网关都是10.0.0.2,这种设备最容易对付,最后是直接分配给用户一个固定的IP,相对大家来说也比较容易对付
1.第一种需要进行拨号:
这几种设备都是通过eth接口与计算机进行通讯的,所以先将硬件设备的连接作好,尤其是宽带猫的,一定要确认无误(否则一会儿要不去可不算我的事情)
然后启动系统,确认系统上是否安装rp-pppoe这个软件(通过rpm -qa|grep pppoe来查找),如没有安装的用户,在光盘里或是到网上去down一个来,安装上后,以root用户执行adsl-setup,这样就进入了adsl的资料的设定状态,要求输入申请宽带的用户名以及其他一些信息,确认没有问题,接受直至最后(里面都是E文,但是一看即能懂,比较简单,有关一个防火墙的设置,我一般都不用,选0,大家可以具体考虑)。
配置完成后,以root用户执行adsl-start,这样将进行adsl的拨号工作,正常就会一下上线,如有什么具体问题,去看一下日志(/var/log/messages)里面告诉你什么了。
停掉adsl,执行adsl-stop就可以了(很简单的)
2.另外两种比较容易对付:
全向猫:只要将你的网卡的IP设置成一个10网段的IP,然后网关指到全向猫的IP,上(10.0.0.2),基本上不有太大的问题
固定IP:就像配置本地儿的网卡一样,将IP,网关,DNS都按申请来的填写上就可以搞定了
按照上面讲的,我USB的应该怎么办?
谢谢大家了。 |
请教关于USB ADSL上网的问题。谢谢
不懂,usb和你说得有什么冲突? |
请教关于USB ADSL上网的问题。谢谢
不清楚你是想问什么 |
请教关于USB ADSL上网的问题。谢谢
我想问问我的ADSL是哪一种? |
请教关于USB ADSL上网的问题。谢谢
#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 XXX): 在这里输入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):是按需拨号还是持续拨号.按需是填写空闲时间如60(秒).默认的是持续拨号.
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自动寻找.也可直接填地址.
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):防火墙设置. 0-无防火墙 1-基本工作站. 2-局域网网关.
** Summary of what you entered **
Ethernet Interface: eth0
User name: XXX
Activate-on-demand: No
DNS: Do not adjust
Firewalling: MASQUERADE
>;>;>; Accept these settings and adjust configuration files (y/n)? 确认保存退出.
adsl-start
按照上面的方法后 仍然不能上网
输入:/sbin/adsl-stasus/etc/sysconfig/network-scripts/ifcfg-ppp0
提示:bash/sbin/adsl-stasus/etc/sysconfig/network-scripts/ifcfg-ppp0:Not a directory |
请教关于USB ADSL上网的问题。谢谢
怎么没有人回答呀
USB的ADSL 猫是不是还需要驱动呀
急用在线等 |
请教关于USB ADSL上网的问题。谢谢
EHT0的作用是什么?
你们所说的是不是网卡和猫连接在一起呀? |
请教关于USB ADSL上网的问题。谢谢
你们现在说的方法是不是对USB的也行? |
请教关于USB ADSL上网的问题。谢谢
好心人
帮帮忙吧 |
请教关于USB ADSL上网的问题。谢谢
能不能来人说说呀
我快郁闷死了
帮帮我 |
| |