[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 |
mettre sous tension le modem, connecté en
ethernet - taper "ftp 192.168.1.1" - login: adam2 - mdp: adam2 |
ftp> quote GETENV mtd0 mtd0 0x900a0000,0x90400000ftp> quote GETENV mtd1 mtd1 0x90020000,0x900a0000ftp> quote GETENV mtd2 mtd2 0x90000000,0x90010000ftp> quote GETENV mtd3 mtd3 0x90010000,0x90020000 |
ftp> quote SETENV mtd0,0x900a0000,0x90400000 ftp> quote SETENV mtd1,0x90020000,0x900a0000 ftp> quote SETENV mtd2,0x90000000,0x90010000 ftp> quote SETENV mtd3,0x90010000,0x90020000 |
ssh root@192.168.1.1 busybox#
cat /dev/mtdblock/0 > /var/mtd0.bin |
[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! |
[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 |