Početak›Forumi›Linuks›Linuks umrežavanje›Sagem ADSL modem
- This topic has 31 odgovor, 7 glasova, and was last updated 16 years, 7 months ranije by dukenukem_4d.
-
AutorČlanci
-
13. april 2006. u 9:30 pm #7257Милан АксићUčesnik
Imam ADSL modem “Sagem fast 800-840” koji u vindouzu radi sasvim korektno, i mada deklarativno podrzava i Linuks ipak imam problema da ga konfigurisem ispravno. Na masini je instlran “Slackware 10.2” sa jezgrom 2.4.
Na pratecem CD-u postoji uputstvo koje korak po korak objasnjava proceduru instaliranja upravljackog programa (modula za jezgro i ostalih datoteka) koji se nalazi u istom direktorijumu. Uputstvo je relativno kratko i najveci deo dokumenta zauzimaju slike konzole, pa cu ga preneti ovde:
Installation of driver USB under linux
Distributions Mandrake, Fedora Core, SuSE
This document explains step by step the installation of the module eagle-usb
v1.9.9 of the task force eagle-usb.org, a patch Sagem must be applied there to
make this driver compatible with the modems eagle IIINecessary
The installation must be carried out by having the rights of the administrator
‘root’.
Compiler GCC must be installed.
The sources of the linux core must be installed.Installation
Stage 1 – working directory
Start a terminal and place in session root with the order su – (the password
root is required). Copy the file eagle-usb.tgz under the directory /tmp and
unpack it with the order ‘tar xzf eagle-usb.tgz’.Place under the directory lately created, eagle-usb.
Stage 2 – Application of the patch eagleIII
It’s now necessary to apply the patch eagleIII-usb.patch so that the driver
eagle-usb can be used with the modems of the EagleIII type. Type the
‘./appli_patch’ order to carry out the update of the driver sources.Stage 3 – automatic configuration
The configuration for the compilation of the driver is automatic, it indicates
also the missing modules (ex:kernel sources) where not having the good version
(ex:gcc). To start the configuration place under the directory eagle-usb-1.9.9
and type the order ‘./configure’Stage 4 – existing package on the system
If your system has an installation of the package eagle-usb, the checking of
eaglectrl, eaglestat, startadsl, stopadsl indicates ‘ yes ‘, then you must carry
out a cleaning of the system via the order make uninstall, to see the section
relating to Uninstallation.
On figure 5, the checking indicates ‘ no’, it thus does not have there a package
eagle-usb installed in this example.Stage 5 – make
it is necessary to launch the compilation of the driver by typing the order
‘make’.Stage 6 – make install
The installation of the driver and its utilities is carried out by typing the
order ‘make install’.You can remove the directory eagle-usb and the file tgz.
Stage 7 – eagleconfig
Your driver is compiled and installed, connect your USB modem and connect ADSL
line.
Type the order ‘eagleconfig’ to configure your modem with the parameters of your
ADSL line.Eagleconfig proposes a list of the ISP with their Vpi, Vci encapsulation
parametersSelect your ISP, in figure 14 one selects Polish ISP TPSA, type your username
and your password, indicate if the password can be encrypted before its sends to
the supplier, connection can be carried out with starting what avoids placing in
root to launch ‘startadsl’.Launch ADSL connection with the order ‘startadsl’, connection is active, you can
use your navigator preferred to connect you to Internet.Dakle kao sto sam napisao, instalacija dobro zavrsi, ali problemi pocinju od sedmog koraka. Naime, kada pokrenem “eagleconfig” dobijam sledeci izbor:
[code]
==============================================================================
============================= ADSL Configuration =============================
==============================================================================
Your modem has to be plugged before proceeding.
You can stop this script anytime with [Ctrl][c]Choose a network configuration :
_______________________________________________________________________
. . . Country. . . Network. . . . . . . . . VPI VCI ENC
———————————————————————–
AT01 : Austria ???? 01 20 06 PPPoA VC
BE01 : Belgique Belgacom, Tiscali.be 08 23 06 PPPoA VC
BR01 : Brasil Speedy/Telefonica 08 23 01 PPPoE LLC
BR02 : Brasil Velox/Telemar 00 21 01 PPPoE LLC
BR03 : Brasil Turbo/Brasil Telecom 00 23 01 PPPoE LLC
BR04 : Brasil Rio Grande do Sul (RS) 01 20 01 PPPoE LLC
BG01 : Bulgaria BTK POTS 00 23 01 PPPoE LLC
BG02 : Bulgaria BTK ISDN 01 20 01 PPPoE LLC
DK01 : Denmark ???? 00 65 03 Routed IP LLC
DE01 : Deutschland DT (D.Telecom, 1&1…) 01 20 01 PPPoE LLC
ES01 : Espa Telefonica 08 20 01 PPPoE LLC
ES02 : Espa Telefonica 08 20 03 Routed IP LLC
ES03 : Espa Retevision, Eresmas… 08 23 06 PPPoA VC
ES04 : Espa Tiscali 01 20 ?? ????
FI01 : Finland Sonera 00 64 03 Routed IP LLC
FR01 : France FT (Free, Wanadoo…) 08 23 06 PPPoA VC
FR02 : France FT (Free, Wanadoo…) 08 23 01 PPPoE LLC
FR03 : France Tiscali 128k 08 23 05 PPPoA LLC
FR04 : France Free d 08 24 04 Routed IP VC
FR05 : France 9online d 08 23 06 PPPoA VC
FR06 : France Club-internet, t 08 23 06 PPPoA VC
FR07 : France Tiscali.fr 512k 08 23 06 PPPoA VC
GR01 : Greece ???? 08 23 06 PPPoA VC
HU01 : Hungary Matav 01 20 01 PPPoE LLC
IE01 : Ireland ???? 08 23 01 PPPoE LLC
IT01 : Italia Telecom Italia, Tiscali 08 23 06 PPPoA VC
IT02 : Italia MClink 08 4B ?? ????
IT03 : Italia Telecom Italia office 08 23 03 Routed IP LLC
NL01 : Netherlands KPN 08 30 06 PPPoA VC
PL01 : Polska Telekomunikacja Polska 00 23 06 PPPoA VC
PL02 : Polska TPSA 00 35 01 PPPoE LLC
PT01 : Portugal PT 00 23 01 PPPoE LLC
SE01 : Sweden Telia 08 23 01 PPPoE LLC
CH01 : Switzerland ???? 08 35 03 Routed IP LLC
CH02 : Switzerland BlueWin (Swisscom) 08 23 05 PPPoA LLC
UK01 : UK BT (Tiscali…) 00 26 06 PPPoA VC
———————————————————————–
[/code]
E sada, nakon instalcije upravljackog programa u Vindouzu, da bi bio ispravno radio uglavnom je bilo potrebno samo da se iz padajuce liste izabare “PPPoE LLC 8/35” (kasnije sam video da ovi brojevi oznacavaju VPI i VCI) kako u listi iznad u Linuksu, nisam pronasao stavku u kojoj pise VPI: 8, VCI: 35 PPPoE izabrao sam prvo “PL02 : Polska TPSA 00 35 01 PPPoE LLC” a kasnije i “CH01 : Switzerland ???? 08 35 03 Routed IP LLC” medjutim kada pokrenem “startadsl” nista se ne desava (niti se vraca u konzolu) pa moram rucno da ga prekinem nakon cega, naravno prijavljuje “Failed to launch connection!”.Pretpostavljam da je najodogovrnija konfiguraciona datoteka na lokaciji “/etc/eagle-usb/eagle-usb.conf” ciji je sadrzaj ovakav:
[code]
#POTS FOR EAGLE
OPTN0=80020066
OPTN4=00000000#Enable OPTN16 for WT-062 testing only
#OPTN16=80818040
VPI=00000000
VCI=00000035
#Note that the following value for encapsulation is in hex and define
#values in Konst.h are decimal. For example value for PPPOA_VC in
#header file is 6 decimal which is 6 in Hex, therefore if we want to use
#PPPOA_VC then we should put 6 in the following line for Encapsulation
#The following values are valid for encapsulation :
#MPOA_MODE_BRIDGED_ETH_LLC —-> 1
#MPOA_MODE_BRIDGED_ETH_VC —-> 2
#MPOA_MODE_ROUTED_IP_LLC —-> 3
#MPOA_MODE_ROUTED_IP_VC —-> 4
#MPOA_MODE_PPPOA_LLC —-> 5
#MPOA_MODE_PPPOA_VC —-> 6
Encapsulation=00000001
#You must set Linetype to 10 To be able to get CMV values from CMV text files
#If you set Linetype to anything other than 10 then driver gets CMVs from
#this file. And also if there is no CMV text file for any reason then
#driver gets CMVs from this file as well
Linetype=00000001
RatePollFreq=00000009
STATIC_IP=none
ISP=PL02
LANG=en
ASYNCHRONOUS_START=1
[/code]
Pokusavao sam da VPI postavim na 00000008 medjutim ni to nije pomoglo.Program “lsmod” pokazuje da je modul vec ucitan:
[code]
$ lsmod |grep -i eagle
eagle-usb 110916 2
usbcore 59148 1 [acm eagle-usb uhci]
[/code]
a “ifconfig” da je “eth0” interfejs startovan:
[code]
$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:60:4C:F3:70:9A
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000RX bytes:0 (0.0 b) TX bytes:168 (168.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 b) TX bytes:100 (100.0 b)
[/code]
Da li neko zna u cemu je problem ili ima neki savet?13. april 2006. u 10:12 pm #43164ZarkoUčesnikPokusaj da koristiš rp-pppoe. Uglavnom treba da imas jednu virtuelnu mreznu karticu (npr eth1). Ne znam kako nju da napraviš uglavnom meni je to mandriva sama sredila.
Evo kako meni izgleda ifconfig
[code]
eth0 Link encap:UNSPEC HWaddr 00-02-3C-01-01-05-89-3D-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:5 dropped:5 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)eth1 Link encap:Ethernet HWaddr 00:13:D4:A9:2B:5A
inet6 addr: fe80::213:d4ff:fea9:2b5a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:50773 errors:0 dropped:0 overruns:0 frame:0
TX packets:49799 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:45423521 (43.3 MiB) TX bytes:18310532 (17.4 MiB)lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:196 errors:0 dropped:0 overruns:0 frame:0
TX packets:196 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15064 (14.7 KiB) TX bytes:15064 (14.7 KiB)ppp0 Link encap:Point-to-Point Protocol
inet addr:213.137.114.130 P-t-P:213.137.103.140 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:50573 errors:0 dropped:0 overruns:0 frame:0
TX packets:49597 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:44299323 (42.2 MiB) TX bytes:17214413 (16.4 MiB)
[/code]I kad podešavaš sa adsl-setup treba da staviš za interface eth1 a za dns server
Edituj /etc/eagle-usb/eagle-usb.no-CMV.conf
Treba da stoji izmedju ostalog:
[code]
VPI=00000008
VCI=00000035
Encapsulation=00000001
Linetype=00000001
[/code]Ako su ti potrebni celokupni pomenuti fajlovi kontaktiraj me na pp.
13. april 2006. u 10:46 pm #43165DVSoftwareUčesnikne bi rekao da ti je eth1 virtualna
eth0 ti je verovatno ethernet preko firewire (ako ga imash) ili neshto drugo, jer je meni to na notebook
[code]eth0 Link encap:UNSPEC HWaddr 56-3F-02-00-56-3F-02-00-00-00-00-00-00-00-00-00
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:1188 (1.1 Kb)[/code](down je inache, samo sam je greshkom konfigurisao umesto eth1)
13. april 2006. u 10:56 pm #43166Милан АксићUčesnik13. april 2006. u 11:05 pm #43167ZarkoUčesnikImam firewire na zvucnoj (audigy2).
Verovatno mi je onda ppp0 bridge-ovan sa pravom mrežnom eth1? Da li neko zna kako se stvorio ppp0? Interesuje me da bih mogao da podesim adsl iz neke druge distribucije osim iz mandrive.13. april 2006. u 11:32 pm #43168DVSoftwareUčesnikpa adsl ti je pppoe (ppp over ethernet) konekcija
i normalno je da ti se prilikom konekcije pravi ppp0 interfejs15. april 2006. u 12:21 am #43169Милан АксићUčesnikI kad podešavaš sa adsl-setup treba da staviš za interface eth1 a za dns server
Ovaj program nije deo upravljackih programa za modem, mozda je to nesto sto dolazi sa “Mandrake” distribucijom.
Edituj /etc/eagle-usb/eagle-usb.no-CMV.conf …
Da, probao sam i tako, ali bez uspeha.
Poslao sam i e-pismo tehnickoj podrsci kompanije “Sagem”, gde sam potanko objasnio problem i svoje pokusaje da isti resim, ali dobio sam samo kratak odogovor da ne pruzaju podrsku za Linuks.
Zarko, prihvatam tvoju ponudu, i ocekujem da mi sto pre mozes posaljes tvoje datoteke kako bih mogao da ih uporedim (adresu e-poste sam ti poslao privatnom porukom).
15. april 2006. u 9:33 am #43170ZarkoUčesnikNe, adsl-setup i adsl-start dolaze sa rp-ppoe. Skini rp-pppoe i pokreni ga sa ./go-gui i tu mozes podesiti ovo sto sam ti pricao.
Za encapsulaciju, vci i vpi moras editovati konfiguracione fajlove koji idu uz eagle-usb.
15. april 2006. u 1:59 pm #43171Милан АксићUčesnikPaket “rp-pppoe” vec imam, medjutim u nazivima programa umesto “adsl” kod tebe, kod mene stoji “pppoe”, znaci “adsl-setup” je kod mene “pppoe-setup”.
Dakle nakon sto sam ponovo instalirao upravljacki program za modem (u medjuvremenu sam ga bio deinstralirao) pokrenuo sam “eagleconfig” gde sam ponovo izabrao “PL02” samo radi upisa osnovnih parametara u “/etc/eagle-usb/eagle-usb.conf” koje sam kasnije promenio, pa je datoteka izgledala ovako:
[code]
#POTS FOR EAGLE
#OPTN0=80020066
#OPTN4=00000000
#Enable OPTN16 for WT-062 testing only
#OPTN16=80818040
VPI=00000008
VCI=00000035
#Note that the following value for encapsulation is in hex and define
#values in Konst.h are decimal. For example value for PPPOA_VC in
#header file is 6 decimal which is 6 in Hex, therefore if we want to use
#PPPOA_VC then we should put 6 in the following line for Encapsulation
#The following values are valid for encapsulation :
#MPOA_MODE_BRIDGED_ETH_LLC —-> 1
#MPOA_MODE_BRIDGED_ETH_VC —-> 2
#MPOA_MODE_ROUTED_IP_LLC —-> 3
#MPOA_MODE_ROUTED_IP_VC —-> 4
#MPOA_MODE_PPPOA_LLC —-> 5
#MPOA_MODE_PPPOA_VC —-> 6
Encapsulation=00000001
#You must set Linetype to 10 To be able to get CMV values from CMV text files
#If you set Linetype to anything other than 10 then driver gets CMVs from
#this file. And also if there is no CMV text file for any reason then
#driver gets CMVs from this file as well
Linetype=00000001
RatePollFreq=00000009
#STATIC_IP=none
#ISP=PL02
#LANG=en
#ASYNCHRONOUS_START=1
[/code]
dakle postavio sam kao komentar sve ono sto se nije nalazilo u tvojoj datoteci (parameter “Linetype=00000001” sam postavio i na 10 – “Linetype=0000000A” u kasnijim pokusajima) a onda sam najzad pokrenuo “pppoe-setup”.
Nakon konfigurisanja datoteka “/etc/ppp/pppoe.conf” izgledala je skoro potpuno isto kao i ona koju si mi ti poslao osim sto u komentarima prefiks programa pocinja sa “pppoe” umesto sa “adsl”, sto je kod mene izabrani interfejs bio “eth0” a u tvom “eth1” i naravno sto su se korisnicka imena razlikovala. Datoteka je onda izgledala ovako:
[code]
#***********************************************************************
#
# pppoe.conf
#
# Configuration file for rp-pppoe. Edit as appropriate and install in
# /etc/ppp/pppoe.conf
#
# NOTE: This file is used by the pppoe-start, pppoe-stop, pppoe-connect and
# pppoe-status shell scripts. It is *not* used in any way by the
# “pppoe” executable.
#
# Copyright (C) 2000 Roaring Penguin Software Inc.
#
# This file may be distributed under the terms of the GNU General
# Public License.
#
# LIC: GPL
# $Id: pppoe.conf,v 1.11 2005/08/09 02:49:12 dfs Exp $
#***********************************************************************# When you configure a variable, DO NOT leave spaces around the “=” sign.
# Ethernet card connected to DSL modem
ETH=’eth0′# PPPoE user name. You may have to supply “@provider.com” Sympatico
# users in Canada do need to include “@sympatico.ca”
# Sympatico uses PAP authentication. Make sure /etc/ppp/pap-secrets
# contains the right username/password combination.
# For Magma, use [email protected]
USER=’korisnicko_ime@medianis’# Bring link up on demand? Default is to leave link up all the time.
# If you want the link to come up on demand, set DEMAND to a number indicating
# the idle time after which the link is brought down.
DEMAND=no
#DEMAND=300# DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;
# NOCHANGE=do not adjust.
DNSTYPE=SERVER# Obtain DNS server addresses from the peer (recent versions of pppd only)
# In old config files, this used to be called USEPEERDNS. Changed to
# PEERDNS for better Red Hat compatibility
PEERDNS=yesDNS1=
DNS2=# Make the PPPoE connection your default route. Set to
# DEFAULTROUTE=no if you don’t want this.
DEFAULTROUTE=yes### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU’RE AN EXPERT
# How long pppoe-start waits for a new PPP interface to appear before
# concluding something went wrong. If you use 0, then pppoe-start
# exits immediately with a successful status and does not wait for the
# link to come up. Time is in seconds.
#
# WARNING WARNING WARNING:
#
# If you are using rp-pppoe on a physically-inaccessible host, set
# CONNECT_TIMEOUT to 0. This makes SURE that the machine keeps trying
# to connect forever after pppoe-start is called. Otherwise, it will
# give out after CONNECT_TIMEOUT seconds and will not attempt to
# connect again, making it impossible to reach.
CONNECT_TIMEOUT=30# How often in seconds pppoe-start polls to check if link is up
CONNECT_POLL=2# Specific desired AC Name
ACNAME=# Specific desired service name
SERVICENAME=# Character to echo at each poll. Use PING=”” if you don’t want
# anything echoed
PING=”.”# File where the pppoe-connect script writes its process-ID.
# Three files are actually used:
# $PIDFILE contains PID of pppoe-connect script
# $PIDFILE.pppoe contains PID of pppoe process
# $PIDFILE.pppd contains PID of pppd process
CF_BASE=`basename $CONFIG`
PIDFILE=”/var/run/$CF_BASE-pppoe.pid”# Do you want to use synchronous PPP? “yes” or “no”. “yes” is much
# easier on CPU usage, but may not work for you. It is safer to use
# “no”, but you may want to experiment with “yes”. “yes” is generally
# safe on Linux machines with the n_hdlc line discipline; unsafe on others.
SYNCHRONOUS=no# Do you want to clamp the MSS? Here’s how to decide:
# – If you have only a SINGLE computer connected to the DSL modem, choose
# “no”.
# – If you have a computer acting as a gateway for a LAN, choose “1412”.
# The setting of 1412 is safe for either setup, but uses slightly more
# CPU power.
CLAMPMSS=1412
#CLAMPMSS=no# LCP echo interval and failure count.
LCP_INTERVAL=20
LCP_FAILURE=3# PPPOE_TIMEOUT should be about 4*LCP_INTERVAL
PPPOE_TIMEOUT=80# Firewalling: One of NONE, STANDALONE or MASQUERADE
FIREWALL=STANDALONE# Linux kernel-mode plugin for pppd. If you want to try the kernel-mode
# plugin, use LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
LINUX_PLUGIN=# Any extra arguments to pass to pppoe. Normally, use a blank string
# like this:
PPPOE_EXTRA=””# Rumour has it that “Citizen’s Communications” with a 3Com
# HomeConnect DSL Modem DualLink requires these extra options:
# PPPOE_EXTRA=”-f 3c12:3c13 -S ISP”# Any extra arguments to pass to pppd. Normally, use a blank string
# like this:
PPPD_EXTRA=””########## DON’T CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING
# If you wish to COMPLETELY overrride the pppd invocation:
# Example:
# OVERRIDE_PPPD_COMMAND=”pppd call dsl”# If you want pppoe-connect to exit when connection drops:
# RETRY_ON_FAILURE=no
[/code]
Nakon konfigurisanja, pokretanjem “startadsl” se naravno opet nije uspostavljala konekcija, ali nije se uspostavljala ni sa “pppoe-start” (analogno “adsl-start”), samo se interfejs “eth0” podigne i nakon nekog vremena prikaze sledece:
[code]
…………….TIMED OUT
/usr/bin/pppoe-start: line 194: 2458 Terminated $CONNECT “$@” >/dev/null 2>&1
[/code]15. april 2006. u 4:16 pm #43172DVSoftwareUčesnika jesi li zatrazhio lokalnu ip adresu od dhcp servera
u zavisnosti od distribucije
dhclient eth0
ili
dhcpcd eth0 -
AutorČlanci
Moraš biti prijavljen da bi postavio komentar u ovoj temi.