HOME PAGE OF RUSTY

» Bridgemon sous linux
» Le modem adsl2mue avec le firmware 2.17-TI (premiers pas)
» Le modem adsl2mue avec le firmware 2.17-TI, configuration free degroupé

» Le modem adsl2mue avec le firmware 4.12-EU/2.17-TI, configuration CLI
» Comment installer un firmware sur un adsl2mue "brické"
» Le firmware d'origine 4.12-EU
» Le modem ethernet am200 de chez linksys
»
Le modem-routeur a02-ra141 de chez atlantis-land


Voici le fichier SAGEM_F@st_908-948 qui fournit le logiciel BridgeMon sous linux.


Voici quelques pages web du modem adsl2mue de chez linksys, muni du firmware antipodal 2.17-TI, synchronisé sur mon ip 82.66.163.12 au dslam ax113-1. Toutes les autres ips du dslam étaient accessibles par ping mais aucune autre ip.

home
set up
modem status
connexion ethernet (au routeur wrt54g)
connexion adsl



Deux semaines plus tard un freenaute KiaN a fait fonctionner correctement le modem adsl2mue sur une ligne free dégroupée avec le firmware 2.17-TI. L'astuce est d'ajouter une route statique (ADVANCED ==> static routing) vers l'ip au dslam 82.66.163.12 par la passerelle [gateway] au dslam 82.66.163.254.

home
setup
setup free
advanced static routing
modem status



Deux semaines plus tard, grâce à un post d'un freenaute (KiaN) en attente de sa freebox, j'ai reussi à faire fonctionner correctement le modem adsl2mue sur ma ligne, sans modifier le firmware d'origine. Pour configurer le modem sur une ligne free dégroupée, il faut utiliser la ligne de commande CLI du modem. 

Voici les commandes pour configurer  le modem pour mon ip 82.66.163.12 (sous linux). D'abord on fait une connexion ethernet par dhcp au modem, puis on lance la commande ssh pour activer la ligne de commande du modem.


[root@mandriva /]# dhclient eth0
Internet Software Consortium DHCP Client V3.0.1rc13
Copyright 1995-2002 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/eth0/08:00:46:08:75:93
Sending on   LPF/eth0/08:00:46:08:75:93
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPOFFER from 192.168.1.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.2 -- renewal in 1725 seconds.

[root@mandriva /]# ssh root@192.168.1.1
root@192.168.1.1's password:admin
DSL Modem CLI
Copyright (c) 2004 Texas Instruments, Inc.
cli> enable
Password: Admin
New priv level = 5
cli# wan
cli(wan)# connection 1
cli(wan connection1)# show
connection type         : pppoa
connection name:        : connection01
NAT                     : Enabled
Firewall                : Enabled
IGMP Proxy              : Disabled
UPnP                    : Disabled
VLan                    : Disabled

PVC:
   vpi                  : 8
   vci                  : 35

QOS class               : UBR

Static DNS entries:
   nameserver 1         :
   nameserver 2         :
   nameserver 3         :

PPP connection settings:
   Encapsulation Mode   : LLC
   Authentication       : Auto
   Username             : adsl
   Connection Mode      : keep-alive
   keep-alive time      : 10
   MTU size             : 1500
   Set Default Route    : Enabled
   Debug Mode           : Disabled

Static Route List
      Connection   Dest IP          Mask             Gateway          Metric
-------------------------------------------------------------------------


IP QoS Configuration
   Low Priority         : 40
   Medium Priority      : 60
   IP QoS State         : Disabled
   Trusted Mode         : Disabled

cli(wan connection1)# ?

  apply       Apply the current changes to the running system. Does not save the settings to flash
  atm         Set ATM parameters
  connection  Set the basic connection settings
  disable     Set privilege level to zero
  discard     Discards any pending changes to the system
  dmz         Enable/Disable DMZ
  dns         Modify the static DNS entries
  enable      Change privilege level
  end         Return to top-level configure mode
  exit        Go up one context level
  firewall    Enable/Disable Firewall
  help        CLI usage help
  igmp        Enable/Disable IGMP
  ipqos       Enable IP QoS
  logoff      Quit the CLI
  nat         Enable/Disable NAT
  port        Access Port Forward settings
  quit        Quit the CLI
  reboot      Reboots the system.
  route       Configure static routes
  save        Saves any applied changes to flash.
  show        Show current configuration
  static      Set up a Static Connection
  upnp        Enable/Disable UPNP
  voice       Enable Voice

cli(wan connection1)# connection type static
cli(wan connection1)# apply
cli(wan connection1)# save
cli(wan connection1)# connection name free
cli(wan connection1)# apply
cli(wan connection1)# save
cli(wan connection1)# dns static primary 212.27.53.252 secondary 212.27.54.252
cli(wan connection1)# apply
cli(wan connection1)# save
cli(wan connection1)# static encapsulation vc mode routed
cli(wan connection1)# apply
cli(wan connection1)# save
cli(wan connection1)# atm pvc 8 36
cli(wan connection1)# apply
cli(wan connection1)# save
cli(wan connection1)# route static-add 82.66.163.12 255.255.255.0 82.66.163.254
cli(wan connection1)# apply
cli(wan connection1)# save
cli(wan connection1)# static 82.66.163.12 netmask 255.255.255.0
cli(wan connection1)# apply
cli(wan connection1)# save
cli(wan connection1)# static 82.66.163.12 default-gateway 82.66.163.254
cli(wan connection1)# apply
cli(wan connection1)# save
cli(wan connection1)# show
connection type         : static
connection name:        : free
NAT                     : Enabled
Firewall                : Enabled
IGMP Proxy              : Disabled
UPnP                    : Disabled
VLan                    : Disabled

PVC:
   vpi                  : 8
   vci                  : 36

QOS class               : UBR

Static DNS entries:
   nameserver 1         : 212.27.53.252
   nameserver 2         : 212.27.54.252
   nameserver 3         :

Static connection settings:
   Encapsulation Mode   : VCMux Routed
   IP Address           : 82.66.163.12
   Netmask              : 255.255.255.0
   Gateway              : 82.66.163.254

Static Route List
      Connection   Dest IP          Mask             Gateway          Metric
-------------------------------------------------------------------------
   1: connection1        82.66.163.12     255.255.255.0    82.66.163.254


IP QoS Configuration
   Low Priority         : 40
   Medium Priority      : 60
   IP QoS State         : Disabled
   Trusted Mode         : Disabled

Voice Configuration
   Voice State          : Disabled

cli(wan connection1)# quit



- Si on veut mettre un routeur wifi (comme wrt54g de chez linksys) dérrière  le modem,  il faut modifier les ip du modem ou du routeur (par exemple en choissisant  192.168.0.*  ou 192.168.2.* pour le modem).   

- En faisant « ftp  192.168.1.1 » immédiatement après avoir démarré le modem, on tombe sur une 3e interface ftp-adam2 qui est accessible avec les identifiants adam2/adam2.

- La commande « shell » ouvre l'interface busybox sur la ligne de commande. C'est une version de linux avec son aboréscence des fichiers.



Voici une méthode pour reinstaller un firmware sur le modem adsl2mue en utilisant le logiciel ftp-adam2. Le logiciel ftp-adam2 est disponible pour une periode tres courte apres demarrage. Il faut faire plusieurs essais, en changeant legerement l'instant ou la premiere commande ftp est lancée.

mettre sous tension le modem, connecté en ethernet
- taper "ftp 192.168.1.1"
- login: adam2
- mdp: adam2

Avant de flasher le firmware, il faut d'abord verifier que le tableau de partitions  de la memoire flash est correct :


ftp> quote GETENV mtd0
mtd0   0x900a0000,0x90400000
ftp> quote GETENV mtd1
mtd1   0x90020000,0x900a0000
ftp> quote GETENV mtd2
mtd2   0x90000000,0x90010000
ftp> quote GETENV mtd3
mtd3   0x90010000,0x90020000


(mtd1 contient le noyau linux,  mtd0 le systeme, mtd2 les fichiers de demarrage et mtd3 la conifguration. ) On corrige des erreurs comme suivant :

ftp> quote SETENV mtd0,0x900a0000,0x90400000
200 SETENV command successful
ftp> quote SETENV mtd1,0x90020000,0x900a0000
200 SETENV command successful
ftp> quote SETENV mtd2,0x90000000,0x90010000
200 SETENV command successful
ftp> quote SETENV mtd3,0x90010000,0x90020000
200 SETENV command successful


Pour flasher le firmware, il faut lancer le commandes suivantes sous ftp-adam2 :

ftp> bin
200 Type set to I
ftp> quote MEDIA FLSH
200 Media set to FLSH.

- d'abord charger le nouveau firmware :

ftp> put fichier.img "fs mtd0"
200 Port command successful.
150 Opening BINARY mode data connection for file transfer.
226 Transfer complete.

- apres charger le noyau linux :

ftp> put fichier.bin "kernel mtd1"
200 Port command successful.
150 Opening BINARY mode data connection for file transfer.
226 Transfer complete.

- a la fin redemarrer le modem :

ftp> quote REBOOT
221-Thank you for using the FTP service on ADAM2.
221 Goodbye.
Connection closed by remote host.

et hop le led "power" devient vert de nouveau Sourit


 

http://www.beyondlogic.org/nb5/ADAM2_ftp.htm
(commandes de ftp-adam2)
http://www.linux-mips.org/wiki/ADSL2MUE
(description technique du modem adsl2mue)



Le firmware d'origine 4.12-EU peut etre recuperé d'un modem vierge en utilisant les interfaces ssh et http.

ssh root@192.168.1.1
password: admin
DSL Modem CLI
Copyright (c) 2004 Texas Instruments, Inc.
cli> shell

busybox# cat /dev/mtdblock/0 > /var/mtd0.bin
busybox# cat /dev/mtdblock/1 > /var/mtd1.bin
busybox# /usr/sbin/thttpd -g -d /var -u root -p 1080


Apres on ouvre un navigateur web et lance la commande
http://192.168.1.1:1080/
Quelques repertoires du modem apparaissent sur l'ecran, y inclus les deux fichiers mtd0.bin (fs) et mtd1.bin (kernel). Apres telechargement, on peut flasher ces deux fichiers en utilisant ftp-adam2 comme ci-dessus (apparemment il vaut mieux flasher mtd0.bin d'abord et mtd1.bin apres).

Voici quelques pages du modem ethernet adsl2+ am200 de chez linksys.

am200

Le manuel du modem n'est pas encore disponible sur le site web de linksys. Le modem synchronise a la norme adsl2+ sur ma ligne free degroupée. En telechargeant le grand fichier iso du site web http://test-debit.free.fr, la vitesse de telechargement varie entre 5Mbps et 10Mbps.

set up
management
port forwarding
port triggering
status

La configuration de ce modem s'effectue uniquement pas l'interface web http://192.168.1.1, login/mdp =admin/admin. Il n'y a pas d'interfaces ssh, ftp ou telnet. Par contre on peut aussi charger un firmare par le logiciel tftp.



 Voici quelques pages web du modem-routeur adsl2+ a02-ra141 de chez atlantis-land.

internet set up
lan set up
modulation
routing
modem status
connexion ethernet
connexion adsl

Depuis le mois d'aout 2006, le modem synchronise a la norme adsl2+ suite aux modifications au dslam par free :

modem status

Le modem-routeur a au moins deux autres interfaces :

FTP :

[root@mandrake rusty]# ftp 192.168.1.254
Connected to 192.168.1.254.
220 router FTP version 1.0 ready at Sat Jan 01 21:18:34 2000
500 Unknown command 'auth GSSAPI'
500 Unknown command 'auth KERBEROS_V4'
KERBEROS_V4 rejected as an authentication type
Name (192.168.1.254:rusty): admin
331 Enter PASS command
Password: atlantis
230 Logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ?
Commands may be abbreviated.  Commands are:

!               cr              mdir            proxy           send
$               delete          mget            sendport        site
account         debug           mkdir           put             size
append          dir             mls             pwd             status
ascii           disconnect      mode            quit            struct
bell            form            modtime         quote           system
binary          get             mput            recv
sunique
bye             glob            newer           reget           tenex
case            hash            nmap            rstatus         trace
ccc             help            nlist           rhelp           type
cd              idle            ntrans          rename          user
cdup            image           open            reset           umask
chmod           lcd             passive         restart
verbose
clear           ls              private         rmdir           ?
close           macdef          prompt          runique
cprotect        mdelete         protect         safe
ftp> ls
200 Port command okay
150 Opening data connection for LIST
--w--w--w-   1 owner    group         1081826 Jul 01 12:00 ras
-rw-rw-rw-   1 owner    group           16384 Jul 01 12:00 rom-0
226 File sent OK
ftp> quit
221 Goodbye!


TELNET :

[root@mandrake rusty]# telnet 192.168.1.254
Trying 192.168.1.254...
Connected to 192.168.1.254 (192.168.1.254).
Escape character is '^]'.

Password: atlantis
Copyright (c) 2001 - 2005 ADSL Company
router> ?
Valid commands are:
sys             exit            ether           wan
etherdbg        usb             ip              bridge
dot1q           pktqos          show            set
lan
router> exit