Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > Linux > Debian安装ADSL
【标  题】:Debian安装ADSL
【关键字】:Debian,ADSL
【来  源】:http://www.cublog.cn/u/10216/showart.php?id=205325

Debian安装ADSL

Your Ad Here
Debian安装ADSL
2006-02-14    atfa       点击: 104

Debian安装ADSL
Debian下面安装ADSL,atfa原创

1:我的使用方法是把ADSL连接到eth0,也就是网卡上的,不是连接到USB接口

2:为了保证通用性,我不介绍具体的软件,只说方法:

编译内核,2.4.20,配置文件我已经贴出来了,在最下面,文件名是“.config”,有一个点的

然后编译内核:

代码:
make dep && make bzImage && make modules && make modules_install



用新的内核启动(不再废话)

这个内核已经支持ppp,

对于Debian,在 /etc/ppp/peers/dsl-provider 内容如下:

代码:
pty "/usr/sbin/pppoe -I eth0 -T 80"
noipdefault
defaultroute
hide-password
lcp-echo-interval 60
lcp-echo-failure 3
connect /bin/true
noauth
persist
mtu 1492
user "xxx@xxx"     这里是你的帐号
usepeerdns


建立/etc/ppp/pap-secrets,内容如下:

代码:
# Every regular user can use PPP and has to use passwords from /etc/passwd
*       (none)  ""      *

# UserIDs that cannot use PPP at all. Check your /etc/passwd and add any
# other accounts that should not be able to use pppd!
guest   (none)  "*"     -
master  (none)  "*"     -
root    (none)  "*"     -
support (none)  "*"     -
stats   (none)  "*"     -

# OUTBOUND connections

# Here you should add your userid password to connect to your providers via
# PAP. The * means that the password is to be used for ANY host you connect
# to. Thus you do not have to worry about the foreign machine name. Just
# replace password with your password.
# If you have different providers with different passwords then you better
# remove the following line.

(none)  *       password

xxx@xxx * xxxxx    这里是帐号密码,中间有一个*不要少



现在用下面的方法拨号:

代码:
pppoe -I eth0 -T 80

(Maybe all user)
或者

代码:
pon dsl-provider

(Debian User)
也可以在/etc/init.d下面加入一个ppp,用来启动

代码:
test -x /usr/sbin/pppd -a -f /etc/ppp/ppp_on_boot || exit 0
if [ -x /etc/ppp/ppp_on_boot ]; then RUNFILE=1; fi

case "$1" in
  start)
      echo -n "Starting up PPP link: pppd"
      if [ "$RUNFILE" = "1" ]; then
        /etc/ppp/ppp_on_boot
      else
        pppd call dsl-provider
      fi
      echo "."
    ;;
  stop)
      echo -n "Shutting down PPP link: pppd"
      if [ "$RUNFILE" = "1" ]; then
        poff
      else
        poff dsl-provider
      fi
      echo "."
    ;;
  restart|force-reload)
    echo -n "Restarting PPP link: pppd"
    if [ "$RUNFILE" = "1" ]; then
      poff
      sleep 5
      /etc/ppp/ppp_on_boot
    else
      poff provider
      sleep 5
      pppd call dsl-provider
    fi
    echo "."
    ;;
  *)
      echo "Usage: /etc/init.d/ppp {start|stop|restart|force-reload}"
      exit 1
    ;;
esac

exit 0
常用的信息:【上一篇】
Debian 下ADSL拨号及动态域名的使用:【下一篇】
【相关文章】
  • debian学习笔记3——sudo的用法
  • debian学习笔记4——alias用法
  • ADSL讲解
  • debian31r3-i386 postfix系统自安装脚本
  • ADSL拨号中出现的错误代码问答集 及ADSL宽带使用过程中常见的一些问题
  • debian学习笔记--添加windows字体
  • debian学习笔记--解决挂载分区中出现乱码问题
  • debian学习笔记1
  • ADSL路由方式的NAT(端口映射)
  • Ubuntu adsl 拨号上网
  • 【随机文章】
  • 面向对象设计过程1:入门
  • Solaris经验汇总
  • 一个文件网络传输的实现程序
  • 点对点 无线网桥解决方案
  • Linux 核心--6.进程间通讯机制
  • 字符串索引的改进暨使用unicode字符类型的一个理由
  • 没有Factory这个模式
  • Oracle和SqlServer存储过程的调试、出错处理
  • 让css使网页图片半透明
  • ASP 优化之显示数据查询内容 By shawl.qiu
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.