File:  [NetBSD Developer Wiki] / wikisrc / tutorials / speedtouch_330_adsl_modem_in_netbsd.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Sun Feb 5 07:14:36 2012 UTC (8 years ago) by schmonz
Branches: MAIN
CVS tags: HEAD
dos2unix

    1: **Contents**
    2: 
    3: [[!toc]]
    4: 
    5: #  Introduction 
    6: 
    7: 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. 
    8: 
    9: #  The things you need to know before proceeding 
   10: 
   11: You need know the VPI and VCI numbers of your provider. 
   12: 
   13: Some VPIs and VCIs are listed here: 
   14:     
   15:      <http://www.linux-usb.org/SpeedTouch/faq/index.html#q12>
   16:     
   17: 
   18: You will also need your login and password to connect to your ISP. 
   19: 
   20: For Neostrada in Poland the login is: <login>@neostrada.pl 
   21: 
   22: #  Getting the userspace tools 
   23: 
   24: It's a good idea to download the userspace tools before installing NetBSD. 
   25: 
   26: Links to the NetBSD-3.1 userspace tools binaries: 
   27:     
   28:      <http://ftp.netbsd.org/pub/pkgsrc/packages-2006Q4/NetBSD-3.1/i386/net/userppp-001107nb1.tgz>
   29:      <http://ftp.netbsd.org/pub/pkgsrc/packages-2006Q4/NetBSD-3.1/i386/net/speedtouch-1.3.1nb4.tgz>
   30:     
   31: 
   32: Links to the NetBSD-2.1 userspace tools binaries: 
   33:     
   34:      <http://ftp.netbsd.org/pub/pkgsrc/packages-2006Q4/NetBSD-2.1/i386/net/userppp-001107nb1.tgz>
   35:      <http://ftp.netbsd.org/pub/pkgsrc/packages-2006Q4/NetBSD-2.1/i386/net/speedtouch-1.3.1nb4.tgz>
   36:     
   37: 
   38: Once downloaded, store the files on a floppy or burn them to a CD-R(W) disc. 
   39: 
   40: #  Installing the user space tools 
   41: 
   42: If you have the tools on a floppy, execute as root: 
   43:     
   44:      mount -t msdos /dev/fd0a <the directory where you mount your floppy drive>
   45:      cd <the dir where you mount your floppy>
   46:      pkg_add userppp-001107nb1.tgz
   47:      pkg_add speedtouch-1.3.1nb4.tgz
   48:     
   49: 
   50: If you have the tools on a CD: 
   51:     
   52:      mount -t cd9660 /dev/cd0a <the directory where you mount your cdrom>
   53:      cd <the dir where you mount your cdrom>
   54:      pkg_add userppp-001107nb1.tgz
   55:      pkg_add speedtouch-1.3.1nb4.tgz
   56:     
   57: 
   58: If you have them elsewhere, I'm sure that you know what to do :) 
   59: 
   60: #  Configuring the tools 
   61: 
   62: Create a file 'ppp.conf' and paste the code below to it: 
   63:     
   64:     default:
   65:       ident user-ppp VERSION (built COMPILATIONDATE)
   66:       set log Phase Chat IPCP CCP tun command
   67:       set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
   68:       set login
   69:     adsl:
   70:       set authname <LOGIN>
   71:       set authkey <PASSWORD>
   72:       set device !"/usr/pkg/sbin/pppoa3 -c -m 1 -vpi <VPI> -vci <VCI> -d /dev/ugen0"
   73:       accept chap
   74:       set speed sync
   75:       set timeout 0
   76:       set reconnect 10 100
   77:       add default HISADDR
   78:       enable dns
   79:     
   80: 
   81: Now replace <LOGIN> with your login, <PASSWORD> with your password, <VPI> and <VPI> with your provider's vpi and vci numbers respectively. 
   82: 
   83: Now copy the file to /usr/pkg/etc/ppp/ppp.conf 
   84:     
   85:     mkdir /usr/pkg/etc/ppp
   86:     cp ppp.conf /usr/pkg/etc/ppp/ppp.conf
   87:     
   88: 
   89: #  Starting the connection 
   90: 
   91: Issue as root: 
   92:     
   93:      cp /usr/pkg/share/examples/rc.d/adsl /etc/rc.d
   94:      cd /etc/rc.d
   95:      ./adsl forcestart
   96:     
   97: 
   98: You should have a working connection now :) Check it by issuing: 
   99:     
  100:      ping www.netbsd.org
  101:     
  102: 
  103: 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. 
  104: 
  105: My e-mail: ayrie3 (at) gmail (dot) com 
  106: 
  107: To start the connection automatically at boot-time issue as root: 
  108:     
  109:      echo "adsl=YES" >> /etc/rc.conf
  110:     
  111: 
  112: #  Thanks 
  113: 
  114: nzk @ NetBSD (freenode) for helping me out with the linguistic aspect of the article. 
  115: 

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