Index of /Reseau/Cisco

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[   ]smart_install.pdf2012-12-17 19:12 368K 
[   ]template2013-01-16 19:08 1.5K 

très utile & dangereux : ntp servi par défaut sur toutes les interfaces à moins que 
interface FastEthernet0/0
 ntp disable

=> disable sur toutes les interfaces externes


Un test plus facile que le telnet sur port 80 vérifier que le http fonctionne :
r01#more http://172.17.1.200/index.html

It works!

sauvegarder une page web : r01#more http://172.17.1.200/index.html | redirect flash:page.html r01#more flash:page.html

It works!

Who is logged in on the router R4#sh users Line User Host(s) Idle Location * 66 vty 0 chw idle 00:00:00 192.168.2.100 67 vty 1 chw idle 00:10:09 192.168.2.156 Interface User Mode Idle Peer Address Or R4#who Line User Host(s) Idle Location * 66 vty 0 chw idle 00:00:00 192.168.2.100 67 vty 1 chw idle 00:10:22 192.168.2.156 Interface User Mode Idle Peer Address R4# And now, the send command, to write a message to a other User on the Router R4#send ? * All tty lines <0-70> Send a message to a specific line aux Auxiliary line console Primary terminal line qdm Send a message to QDM client tty Terminal controller vty Virtual terminal x/y Slot/Port for Modems and here a example: R4#send 66 Enter message, end with CTRL/Z; abort with CTRL/C: Hello User on Line 66 ^Z Send message? [confirm] R4# And the Result on the other end *** *** *** Message from tty67 to tty66: *** Hello User on Line 66 Or send to all Lines R4#send * Enter message, end with CTRL/Z; abort with CTRL/C: Hi ALL Userers .... ^Z Send message? [confirm] r01#sh archive ? config Compare two IOS configuration files log Show archive log information | Output modifiers r01#sh archive log conf all % Config Logger disabled. r01#conf t Enter configuration commands, one per line. End with CNTL/Z. r01(config)#archive r01(config-archive)#log config r01(config-archive-log-cfg)#logging enable r01(config-archive-log-cfg)#? commands for controlling config logging: default Set a command to its defaults exit Exit from the log config submode hidekeys suppress output (e.g. passwords) when displaying logged commands logging Modify config logging parameters no Negate a command or set its defaults notify Send logged commands to target applications r01(config-archive-log-cfg)#hide r01(config-archive-log-cfg)#notify syslog r01#sh archive log conf all idx sess user@line Logged command 1 1 petrus@vty0 | logging enable 2 1 petrus@vty0 | hidekeys 3 1 petrus@vty0 | notify syslog Dump de toutes les commandes : router#sh parser dump all Mode Name :exec 15 upgrade 15 upgrade rom-monitor preference readonly 15 upgrade rom-monitor preference upgrade 15 upgrade rom-monitor file ... r01#sh ip sockets Proto Remote Port Local Port In Out Stat TTY OutputIF 17 --listen-- 85.68.130.167 68 0 0 1 0 17 --listen-- 85.68.130.167 2887 0 0 11 0 17 0.0.0.0 0 85.68.130.167 67 0 0 2211 0 17 --listen-- 85.68.130.167 161 0 0 1001 0 17 --listen-- 85.68.130.167 162 0 0 1011 0 17 --listen-- 85.68.130.167 52750 0 0 1011 0 17 --listen-- --any-- 161 0 0 20001 0 17 --listen-- --any-- 162 0 0 20011 0 17 --listen-- --any-- 52660 0 0 20011 0 17 --listen-- 85.68.130.167 123 0 0 1 0 r01#sh tcp brief TCB Local Address Foreign Address (state) 66070790 172.17.1.253.23 172.17.1.10.49510 ESTAB Cisco Hotkeys Delete Removes one character to the right of the cursor. Backspace Removes one character to the left of the cursor. TAB Finishes a partial command. Ctrl-A Moves the cursor to the beginning of the current line. Ctrl-E Goes to the end of the line. Ctrl-F Moves forward one character. Ctrl-B Moves backwards one character. Ctrl-K Deletes everything to the right of the cursor. Ctrl-P Recalls the previous command in the history buffer. Ctrl-N Forwards the history buffer. Ctrl-R Creates new command prompt, followed by all the characters typed at the last one. This is useful for syslog messages. Ctrl-U Erases a line from the command prompt and also from memory buffer. Ctrl-W Erases a word. Ctrl-Z Ends configuration mode and returns to the EXEC mode. Up Arrow Allows user to scroll forward through previous commands. Down Arrow Allows user to scroll forward through previous commands. Esc-B Moves the cursor to the beginning of previous word. Esc-F Moves the cursor to the beginning of next word. sauvegarder rapidement une conf sans tftp/autre: $ cat copy_run_term.txt term len 0 sho run exit $ cat copy_run_term.txt | nc 172.30.157.253 23 > conf.txt