Quelques commandes de conf du routeur cisco 1800 series
Re-initialisation de cisco routeur 1841
rommon 1>confreg 0x2142
rommon 1>reset
Diverses commandes:
routix>enable
routix#
routix#config
routix(config)#
routix(config)#interface FastEthernet0/0
routix(config-if)#ip address 10.5.3.1 255.255.255.255.0
routix(config-if)#no shutdown
routix(config-if)#end ou ctrl+z
routix#show ?
routix#show running-config
etc
Re-initialisation de la conf:
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#config
Router(config)#config-register 0x2102
Router(config)#end
Router#show version
//maj date
Router#clock set 19:34:00 6 august 2012
//desactivation du temp de connexion console
Router(config)#line console 0
Router(config-line)#exec-timeout 0 0
//selection de l’info
Router#sh run | include ip route
//affiche seulement l’info interface fa0/0
Router#sh run interface fastEthernet 0/0
//Affiche stats sys
Router#show interfaces stats
//Initialise les stats
Router#clear counters
//affiche, creee un vlan
Router# vlan database
Router(vlan)# show
…
Configuration register is 0xC402 (will be 0x2102 at next reload)
Router#reload
System configuration has been modified. Save? [yes/no]: n
Proceed with reload? [confirm]
Save configuration with confirmation:
Router#copy startup-config running-config
Save configuration without confirmation:
Router#write
Restart your router:
Router#reload
Copy ios image to flash
Router#delete old_image
Router#squeeze flash:
Router#copy tftp://tftp server IP address/new-IOS-image-name flash:
Test your image
Router#boot system flash my_image_ios
Transfert de fichiers par ssh et tar
tar -c toto.txt | ssh user@host_dest tar -C chemin_absolu_destination -x