gu_linux_en.txt

(20 KB) Pobierz
------------------------------------------------------------------------
------------------------------------------------------------------------
                          SAGEM F@st800-840
          Linux drivers User Guide (Edition 8 - 22/08/2003)
------------------------------------------------------------------------
------------------------------------------------------------------------


------------------------------------------------------------------------
-                              Contents                                -
------------------------------------------------------------------------
  1 Introduction                                        
  2 Installation of the modem driver      
     2.1. Initial Linux configuration
     2.2. SAGEM F@st800-840 main driver installation
     2.3. Configuring the F@st800-840 modem driver
  3 Connection to the Internet with PPPoA, PPPoE and RFC1483_R modes
     3.1. Using the modem in PPPoA mode 
        3.1.1. Installation of the PPPoA stack
        3.1.2. Configuration of the user account
        3.1.3. Connection/disconnection to the Internet
        3.1.4. Multi-accounts configuration 
        3.1.5. Important notes
        3.1.6. Installation of the modem under Linux RedHat 7.2
        3.1.7. Changing your configuration from PPPoE to PPPoA
     3.2. Using the modem in PPPoE mode
        3.2.1. Configuration of the user account
        3.2.2. Connection/disconnection to the Internet
     3.3. Utilisation du modem en mode RFC1483 rout?
        3.3.1. Configuration of the Internet access
        3.3.2. Connection/disconnection to the Internet
------------------------------------------------------------------------

?
The SAGEM F@st800-840 drivers have been tested on the following Linux suites: 
* Mandrake 8.2, 9.0 and 9.1 
* Redhat 7.2, 8.0 and 9.0
The procedures described in this document correspond to the "Mandrake 9.0" suite. The installation of the modem with other distributions may differ slightly. 


------------------------------------------------------
-    1 Introduction                                  -
------------------------------------------------------

Your modem can operate in the following modes :
    . PPPoA (LLC or VCMUX)
    . RFC1483 bridged (LLC or VCMUX)
    . RFC1483 Routed  (LLC or VCMUX)
You must choose a mode of operation compatible with your Internet Access Provider network.
For instance, most of ISPs support PPPoE LLC in Germany and PPPoA VCMUX in England or Poland. 
Note : To use PPPoE mode for your Internet connection, you must configure your modem in RFC1483 bridged (LLC or VCMUX). The F@st800 modem then is seen by the PC as an emulated Ethernet board, on top of which you can run the native PPPoE stack of Linux. 

To use the modem, you need to proceed in three steps :
    . Install the main driver of the modem.
    . Indicate to the driver in which mode you want it to operate (PPPoA or RFC1483). This information must be set in the configuration file "/etc/analog/adiusbadsl.conf".
    . then if necessary (according to the selected operating mode), install and configure the PPPoA or PPPoE protocol layer, allowing to establish the connection to the Internet.


------------------------------------------------------------
-    2 Installation of the SAGEM F@st800-840 modem driver  -
------------------------------------------------------------


2.1. Initial Linux configuration
--------------------------------
Please check that your Linux installation includes the " Development " module. 
Please check that the following packages are properly installed on your PC. They are necessary for driver compilation: 
    . kernel-source 
    . gcc-cpp 
Beside, in order to to ease installation, you may want to install the following packages: 
    . traceroute 
    . usbview
    
In order to check that one package is installed, you can use the "rpm" command as follows :
    rpm -q package_under_test    


2.2. SAGEM F@st800-840 main driver installation
-----------------------------------------------
Uncompress the archive (.tgz) of the installation software in the directory of your choice.
For example, you can use the following command in the destination directory :
    tar xvfz name_of_the_file_to_uncompress
    
The installation software is composed of the two following sub-directories :
    . ADI_DRIVER : this is the main driver of the modem. 
    . ADI_PPPOA : PPPoA driver, running on top of the main driver, allowing to establish the connection to the Internet. This directory is useful only if you want to use your modem in PPPoA mode. If you choose PPPoE mode, you can use the PPPoE stack of Linux.
?
Open a "shell" window. 
If you are not logged on as "root", you must type in this window : 
    $ su -
    $ password?: "root" password. 

Go to the directory where you uncompressed the archive (.tgz) of the installation software, then go to the "ADI_DRIVER" sub-directory using the?"cd" command. 

You must know the kernel version of Linux to launch the installation. To read this value, type : 
    # uname -r
Typical uname output is (for Mandrake 9.0) :   2.4.19-16mdk 

Type the installation command according to the kernel version read : 
    #? ./Install_all linux-2.4.19-16mdk 
   
This script performs the following tasks : 
    . copy of the driver source files in the directory /usr/ADI_USB/ADI_LINUX.
    . compilation of the source code.  
    . installation of the "adiusbadsl" module in the kernel.   

At the end of the compilation, check the result in the traces displayed in the 'shell' window.
If you've got errors during the compilation, check the directory "/usr/src/linux" contains the source files of linux kernel (or a link to the source files).

Plug-in the modem (the USB cable and the telephone line) and wait for the USB driver to be loaded.

Type the following command to check that the modem is correctly recognized by the PC : 
    # ifconfig -a 
Please check that the "ADIModem" interface appears in the list of network interfaces displayed. 

 
2.3. Configuring the F@st800-840 modem driver
---------------------------------------------
You have already installed the main driver of your modem. You must now choose the type of protocol which shall allow you to establish the connection to the Internet.
This information must be provided be your Internet Access Provider. 
To tell the modem in which mode it has to operate, you must update its configuration file "adiusbadsl.conf". 

This file allows the following settings :
    . Mode of operation of the modem (parameter "Encapsulation").
      Authorized values are :
          . RFC1483 bridged LLC    -> 1  
          . RFC1483 bridged VCMUX  -> 2  
          . RFC1483 routed LLC     -> 3  
          . RFC1483 routed VCMUX   -> 4  
          . PPPoA LLC              -> 5 
          . PPPoA VCMUX            -> 6 
    . ATM parameters "VPI" and "VCI" (information provided by your ISP).

To modify the modem settings, follow the instructions : 
From the "shell" window (with root privileges), edit the file "/etc/analog/adiusbadsl.conf"?with your favorite editor (vi, gedit, kedit...): 
    # gedit /etc/analog/adiusbadsl.conf &  

If you want to use PPPoA VCMUX mode,
     -> type : "Encapsulation=00000006" 
If you want to use PPPoE LLC mode,
     -> type : "Encapsulation=00000001" 
If you want to use RFC1483 Routed LLC mode,
     -> type : "Encapsulation=00000003" 

Don't forget to change the VPI and VCI (in hexa) to fit to the information provided by your Internet Access Provider.
For instance, if VPI/VCI = 8/35 (in decimal) :
     -> type : "VPI=00000008" 
     -> type : "VCI=00000023" 


--------------------------------------------------------------------------------------
-    3 Connection to the Internet with PPPoA, PPPoE and RFC1483 Routed modes         -
--------------------------------------------------------------------------------------

-------------------------------------
3.1. Using the modem in PPPoA mode  -
-------------------------------------

    3.1.1. Installation of the PPPoA stack
    --------------------------------------
From the "shell" window (with root privileges), follow the instructions :

Go to the "ADI_PPPOA" sub-directory of the installation software, using the?"cd" command. 
Type the installation command?: 
    # ./PPP_INSTALL

This script performs the following tasks : 
    . copy of the PPP driver source files in the directory /usr/ADI_USB/ADI_PPPOA.
    . compilation of the source code.  
    . installation of the driver module and the associated scripts files.   


    3.1.2. Configuration of the user account
    ----------------------------------------
- Edit the file "/etc/ppp/chap-secrets"?with your favourite editor (vi, gedit, kedit...): 
    # gedit /etc/ppp/chap-secrets & 

Add a new line in the file using TAB to separate username and password (type also the stars): 
    your_username * your_password * 
remark : you must let a blank line at the end of the file.

- Edit the file "/etc/ppp/pap-secrets"?with your favourite editor (vi, gedit, kedit...): 
    # gedit /etc/ppp/pap-secrets & 

Add a new line in the file using TAB to separate username and password (type also the stars): 
    your_username * your_password * 
remark : you must let a blank line at the end of the file.

- Edit the file /etc/ppp/options 
    # gedit /etc/ppp/options & 

Enter the name of your connection in front the field "user" (type also the "" ) 
    user ?"your_username" 



    3.1.3. Connection/disconnection to Internet
    -------------------------------------------

    Starting the connection
    -----------------------
Open a "shell" window. 
In order to get the "root" abilities, you must type in this window: 
    $ su -
    password?: "root" password

Type the connecti...
Zgłoś jeśli naruszono regulamin