Chinaunix首页 | 论坛 | 博客
  • 博客访问: 304911
  • 博文数量: 69
  • 博客积分: 1626
  • 博客等级: 上尉
  • 技术积分: 785
  • 用 户 组: 普通用户
  • 注册时间: 2007-01-15 19:01
文章分类

全部博文(69)

文章存档

2015年(4)

2014年(4)

2013年(3)

2012年(6)

2011年(1)

2010年(16)

2009年(8)

2008年(18)

2007年(9)

我的朋友

分类: LINUX

2010-11-28 11:24:06

LINUX 拨号

2010-07-01 

用ADSL拔号,pppoe认证上网解决办法。
             确认安装了ppp软件
              终极终端中:
               #pppoe-setup
               . ...........
               .............
               Enter your PPPoE user name (default XXX): 在这里输入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):  如果一个网卡就在这里输入eth0
               .  .................
               Enter the demand value (default no):  输入no
               DNS
               ................
               ................
               Enter the DNS information here: 在这里输入server自动取得DNS(或者你知道的话可以现在输入)
               PASSWORD
               Please enter your PPPoE password:     输入ADSL密码
               Please re-enter your PPPoE password: 再输入一次
               . .......................
               .....................
               The firewall choices are:
               ........................
               Choose a type of firewall (0-2):   这里输入  0   即可
               ** 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)? 输入y确认,或n重新
              
             配置完成!
             启动拨号:pppoe start  或adsl-start   (看系统而定,最好看一下帮助)
             停止断网:pppoe stop   或adsl-stop

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


配置PPPOE客户端软件 
安装完软件包后,必须配置pppoe的配置文件/etc/ppp/pppoe.conf,从而让ADSL拨号时使用配置文件中的用户名、密码等参数。
我们不必手工改动这个文件,可以使用adsl-setup这个工具进行配置:
#/usr/sbin/adsl-setup 这个命令将会给出一个字符界面的向导,要求您输入您的用户名、IP地址、网关、DNS服务器以及密码等信息,
请按照提示做,除了用户名和密码,其他的一般直接回车是用默认设置。
当出现
>>> 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):
输入 eth0 ,这是ADSL相连的网卡的名字。
当出现
>>> Enter the demand value (default no):
输入 no
当出现
>>> Enter the DNS information here:
输入 server ,这表示使用ADSL拨号自动获得的DNS服务器IP地址
当出现,如果还不清楚,请到windows转到dos用ipconfig/all看看你的dns是多少
>>> Please enter your PPPoE password:
输入ADSL帐号的密码
当出现
>>> Choose a type of firewall (0-2):
输入 0 ,不使用防火墙
当出现
>>> Accept these settings and adjust configuration files (y/n)?
如果输入的信息正确,输入 y ,完成配置,否则,输入 n 重新输入。

启动PPPOE客户端软件
使用命令:
/usr/sbin/adsl-start 启动PPPOE客户端软件,进行连接,如果成功,将出现Connected;
如果不成功,请检查网线、ADSL MODEM等物理设备,并查看 /var/log/messages中的信息
/usr/sbin/adsl-stop 关闭和ISP的连接
/usr/sbin/adsl-status 查看当前连接的状态

开机自动启动:
在/etc/rc.d/rc.local 中加入 pppoe-start & 或是 adsl-start &

阅读(624) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-11-30 11:05:48

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com