|
|
发表于 2006-12-1 13:46:25
|
显示全部楼层
不知道你的局域网如何上外网但是
无论是ADSL,还是以太网宽带,都是基于PPPoE协议虚拟拨号的。如果在Linux下安装好PPPoE,也应该可以上网。
这里假设你的网卡已经装好了。如果你还不确定,就用“ifconfig eth0”这个命令看看。在网络 的设置里IP地址要选手动,最好不要设地址,让它空着。然后把DNS呀、路由什么的也都设置为空。
开始安装
===================================
安装PPPoE软件包
先请大家下载http://www.roaringpenguin.com/pp ... m这个软件包。
[root@localhost download]# rpm -ivh rp-pppoe-3.2-1.i386.rpm
安装rp-pppoe-3.2-1.i386.rpm
==============================================================================
设置拨号程序
这个一定要在字符界面上了,请键入adsl-setup,然后按要求键入如下内容。
Enter your PPPoE user name: 输入你的宽带账号的用户名。
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,swheres'n' is a number.
(default eth0): 这是叫你输入连接的网卡的名字,一般选择默认就可以(按一下回车)。
Enter the demand value (default no): 键入“no”
Enter the DNS information here: 输入DNS服务器地址,这表示使用宽带服务提供商会为你自动提供的DNS服务器IP地址。
Please enter your PPPoE password: 输入宽带账号的密码。
Please confirm your pppoe password: 再次输入刚才宽带账号的密码。
Choose a type of firewall (0-2): 输入 0 ,表示不使用防火墙。
Accept these settings and adjust configuration files (y/n)? 如果你输入的信息正确,输入y ,完成配置,否则输入n重新设置。
=============================================================
拨号上网
运行“adsl-start”,Linux就会自动拨号上网。要断开的时候键入:“adsl-stop”就可以了。
good luck!! |
|