It’s very  easy to setup ssh access, in the following exemple we have enabled ssh access direct from any source on the internet :

<pre>domain-name example.com
ca generate rsa key 1024
show ca mypubkey rsa
ca save all
ssh 0.0.0.0 0.0.0.0 outside
ssh 0.0.0.0 0.0.0.0 inside</pre>
Tagged with:  

If your switch was already in a stack in a previous life, here how to fix things up and use it in standalone :

  • Config Terminal
  • switch X renumber Y where X is actual stack number and Y the one you wich it to have.
  • wr
  • reload

There you go !

Tagged with:  
  1. Power off the unit,
  2. Press “Mode” button and keep it pressed for 2 minutes while putting power back on
  3. To confirm that it’s working, you should get at the prompt “switch:”
  4. Enter the following command “flash_init”
  5. Enter the command “dir flash:” to see flash card content
  6. Rename the file config.text with the following command : “rename flash:config.text flash:config.old”
  7. Launch the IOS with the command “boot”
  8. Press “n” at the question to enter initial configuration wizard
  9. You now have a factory reset switch, if you got good backup of the config and that default config are fine with you simply save running config in the flash with the following command : “copy run flash:config.text”
  10. There you go !
Tagged with:  

– conf t

– http server enable

– http 10.x.x.x 255.255.255.0 Inside (10.x.x.x is the network you can reach it from, 255.255.255.0 is the subnetmask et inside the interface)

– You can now reach it via  Https://ipinside/admin

Tagged with:  

Cisco – Enable SSH remote login

On 24 August 2012, in Cisco, IT Procedure, Networking, by Himselff

1. conf t

2. ip domain-name votredomaine.com

3. crypto key generate rsa general-keys modulus 2048

4. ip ssh time-out 60

5. ip ssh authentication-retries 2

6. username myuser secret mypassword

7. line vty 0 15

8. login local

9. Get out and save everything

Tagged with:  

sh mac address-table dynamic | inc aa-bb-cc-11-22-33

Tagged with:  

IOS Update for Cisco Catalyst

On 19 August 2011, in Cisco, IT Procedure, by Himselff

1. Download your IOS version

2. In enable, type the following command :

– archive download-sw /overwrite tftp://ip of the tftp server/filename.tar

3. If you ran out of space, you can free up some with those :

– dir flash: to get flash content, if there’s a “D” in the permission, it’s because it’s a Drive

– delete /force /recursive folder_to_delete

– delete /force file_to_download

Tagged with:  

How to factory reset a cisco Catalyst switch

On 26 January 2011, in Cisco, Networking, by Himselff
  1. In Enable mode
  2. Write Erase
  3. Delete flash:vlan.dat
  4. reload
  5. After reload, do not run the “Initial Setup configuration Wizard”, it’s way less trouble not to.
Tagged with:  

How to do port mirroring in cisco catalyst

On 24 January 2011, in Cisco, Networking, by Himselff

</p>
<p>monitor session 1 source interface Fa0/7<br />
monitor session 1 destination interface Fa0/4</p>
<p>

Always add source first then destination

Tagged with: