Diff for /wikisrc/tutorials/speedtouch_330_adsl_modem_in_netbsd.mdwn between versions 1.1 and 1.2

version 1.1, 2011/11/21 03:22:58 version 1.2, 2012/02/05 07:14:36
Line 1 Line 1
 **Contents**  **Contents**
   
 [[!toc]]  [[!toc]]
   
 #  Introduction  #  Introduction 
   
 This How-To describes the process of installing a SpeedTouch 330 (PPPoA) in NetBSD 3.1, but the instructions given should apply also to older versions. The SpeedTouch 330 has been supported in NetBSD since version 1.5 of the OS.  This How-To describes the process of installing a SpeedTouch 330 (PPPoA) in NetBSD 3.1, but the instructions given should apply also to older versions. The SpeedTouch 330 has been supported in NetBSD since version 1.5 of the OS. 
   
 #  The things you need to know before proceeding  #  The things you need to know before proceeding 
   
 You need know the VPI and VCI numbers of your provider.  You need know the VPI and VCI numbers of your provider. 
   
 Some VPIs and VCIs are listed here:  Some VPIs and VCIs are listed here: 
          
      <http://www.linux-usb.org/SpeedTouch/faq/index.html#q12>       <http://www.linux-usb.org/SpeedTouch/faq/index.html#q12>
          
   
 You will also need your login and password to connect to your ISP.  You will also need your login and password to connect to your ISP. 
   
 For Neostrada in Poland the login is: <login>@neostrada.pl  For Neostrada in Poland the login is: <login>@neostrada.pl 
   
 #  Getting the userspace tools  #  Getting the userspace tools 
   
 It's a good idea to download the userspace tools before installing NetBSD.  It's a good idea to download the userspace tools before installing NetBSD. 
   
 Links to the NetBSD-3.1 userspace tools binaries:  Links to the NetBSD-3.1 userspace tools binaries: 
          
      <http://ftp.netbsd.org/pub/pkgsrc/packages-2006Q4/NetBSD-3.1/i386/net/userppp-001107nb1.tgz>       <http://ftp.netbsd.org/pub/pkgsrc/packages-2006Q4/NetBSD-3.1/i386/net/userppp-001107nb1.tgz>
      <http://ftp.netbsd.org/pub/pkgsrc/packages-2006Q4/NetBSD-3.1/i386/net/speedtouch-1.3.1nb4.tgz>       <http://ftp.netbsd.org/pub/pkgsrc/packages-2006Q4/NetBSD-3.1/i386/net/speedtouch-1.3.1nb4.tgz>
          
   
 Links to the NetBSD-2.1 userspace tools binaries:  Links to the NetBSD-2.1 userspace tools binaries: 
          
      <http://ftp.netbsd.org/pub/pkgsrc/packages-2006Q4/NetBSD-2.1/i386/net/userppp-001107nb1.tgz>       <http://ftp.netbsd.org/pub/pkgsrc/packages-2006Q4/NetBSD-2.1/i386/net/userppp-001107nb1.tgz>
      <http://ftp.netbsd.org/pub/pkgsrc/packages-2006Q4/NetBSD-2.1/i386/net/speedtouch-1.3.1nb4.tgz>       <http://ftp.netbsd.org/pub/pkgsrc/packages-2006Q4/NetBSD-2.1/i386/net/speedtouch-1.3.1nb4.tgz>
          
   
 Once downloaded, store the files on a floppy or burn them to a CD-R(W) disc.  Once downloaded, store the files on a floppy or burn them to a CD-R(W) disc. 
   
 #  Installing the user space tools  #  Installing the user space tools 
   
 If you have the tools on a floppy, execute as root:  If you have the tools on a floppy, execute as root: 
          
      mount -t msdos /dev/fd0a <the directory where you mount your floppy drive>       mount -t msdos /dev/fd0a <the directory where you mount your floppy drive>
      cd <the dir where you mount your floppy>       cd <the dir where you mount your floppy>
      pkg_add userppp-001107nb1.tgz       pkg_add userppp-001107nb1.tgz
      pkg_add speedtouch-1.3.1nb4.tgz       pkg_add speedtouch-1.3.1nb4.tgz
          
   
 If you have the tools on a CD:  If you have the tools on a CD: 
          
      mount -t cd9660 /dev/cd0a <the directory where you mount your cdrom>       mount -t cd9660 /dev/cd0a <the directory where you mount your cdrom>
      cd <the dir where you mount your cdrom>       cd <the dir where you mount your cdrom>
      pkg_add userppp-001107nb1.tgz       pkg_add userppp-001107nb1.tgz
      pkg_add speedtouch-1.3.1nb4.tgz       pkg_add speedtouch-1.3.1nb4.tgz
          
   
 If you have them elsewhere, I'm sure that you know what to do :)  If you have them elsewhere, I'm sure that you know what to do :) 
   
 #  Configuring the tools  #  Configuring the tools 
   
 Create a file 'ppp.conf' and paste the code below to it:  Create a file 'ppp.conf' and paste the code below to it: 
          
     default:      default:
       ident user-ppp VERSION (built COMPILATIONDATE)        ident user-ppp VERSION (built COMPILATIONDATE)
       set log Phase Chat IPCP CCP tun command        set log Phase Chat IPCP CCP tun command
       set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0        set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
       set login        set login
     adsl:      adsl:
       set authname <LOGIN>        set authname <LOGIN>
       set authkey <PASSWORD>        set authkey <PASSWORD>
       set device !"/usr/pkg/sbin/pppoa3 -c -m 1 -vpi <VPI> -vci <VCI> -d /dev/ugen0"        set device !"/usr/pkg/sbin/pppoa3 -c -m 1 -vpi <VPI> -vci <VCI> -d /dev/ugen0"
       accept chap        accept chap
       set speed sync        set speed sync
       set timeout 0        set timeout 0
       set reconnect 10 100        set reconnect 10 100
       add default HISADDR        add default HISADDR
       enable dns        enable dns
          
   
 Now replace <LOGIN> with your login, <PASSWORD> with your password, <VPI> and <VPI> with your provider's vpi and vci numbers respectively.  Now replace <LOGIN> with your login, <PASSWORD> with your password, <VPI> and <VPI> with your provider's vpi and vci numbers respectively. 
   
 Now copy the file to /usr/pkg/etc/ppp/ppp.conf  Now copy the file to /usr/pkg/etc/ppp/ppp.conf 
          
     mkdir /usr/pkg/etc/ppp      mkdir /usr/pkg/etc/ppp
     cp ppp.conf /usr/pkg/etc/ppp/ppp.conf      cp ppp.conf /usr/pkg/etc/ppp/ppp.conf
          
   
 #  Starting the connection  #  Starting the connection 
   
 Issue as root:  Issue as root: 
          
      cp /usr/pkg/share/examples/rc.d/adsl /etc/rc.d       cp /usr/pkg/share/examples/rc.d/adsl /etc/rc.d
      cd /etc/rc.d       cd /etc/rc.d
      ./adsl forcestart       ./adsl forcestart
          
   
 You should have a working connection now :) Check it by issuing:  You should have a working connection now :) Check it by issuing: 
          
      ping www.netbsd.org       ping www.netbsd.org
          
   
 If something went wrong look for clues in the file /var/log/messages. And if you still have problems, feel free to drop me an e-mail with the description of the problem with the output of /var/log/messages.  If something went wrong look for clues in the file /var/log/messages. And if you still have problems, feel free to drop me an e-mail with the description of the problem with the output of /var/log/messages. 
   
 My e-mail: ayrie3 (at) gmail (dot) com  My e-mail: ayrie3 (at) gmail (dot) com 
   
 To start the connection automatically at boot-time issue as root:  To start the connection automatically at boot-time issue as root: 
          
      echo "adsl=YES" >> /etc/rc.conf       echo "adsl=YES" >> /etc/rc.conf
          
   
 #  Thanks  #  Thanks 
   
 nzk @ NetBSD (freenode) for helping me out with the linguistic aspect of the article.  nzk @ NetBSD (freenode) for helping me out with the linguistic aspect of the article. 
   

Removed from v.1.1  
changed lines
  Added in v.1.2


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb