Skip to content

Instantly share code, notes, and snippets.

@rafabarzotto
Created February 22, 2017 23:37
Show Gist options
  • Save rafabarzotto/424f4921b320c6539a3d332aa284c379 to your computer and use it in GitHub Desktop.
Save rafabarzotto/424f4921b320c6539a3d332aa284c379 to your computer and use it in GitHub Desktop.
c>hostname
c>line console 0
c>password #
c>login
c>enable secret class
c>service password-enc
c>line console vty 0 15
c>login local
c>transport input ssh
c>ip domain name cisco.com
c>ip ssh version 2
c>crypto key generate rsa
c>username admin secret cisco
c>interface range f0/3-24, g0/1-2 (seleciona)
c>shutdown
c>interface range f0/1-2
c>switchport mode access
c>switchport port-security maximum 2
c>switchport port-security mac-address sticky (regista mac que chegam no sistema, para se chegar mais que o limiete bloquear)
C> show vlan br
C> dir flash
c> erase startup-config
c> delete vlan.dat
c> reload
C>vlan 10
c> name nome da vlan
C>
c> interface f0/11
c>swithport access vlan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment