You are on page 1of 2

Switch>ena -> entra a modo exec

Switch# conf term -> entra a modo conf general


Switch(config)# interface (Puerto) -> entra a config puerto
Switch(Conf-if)# speed (velocidad) -> modifica veloc de trans
Switch(Conf-if)# bandwidth (ancho de banda) -> modifica anchio de banda
Switch(Conf-if)# description -> crea descripcion del puerto
----------------------
Switch# sh run -> muestra config del equipo en ejecucion
Switch# sh startup-config -> muestra config del equipo
Switch(config)# ena pass cisco -> habilita pass
Switch# dir -> muestra el directorio de archivos del equipo
Switch# wr -> guarda la config del equipo
Switch(config)# hostname (nombre) -> da nombre al equipo
Switch# Show MAC-ADDRESS-TABLE ->muestra tabla mac
SW_MESA_1# clear mac-address-table dynamic -> Borra las MAC de los equipos cone
ctados a los puertos de red
Switch(config)# mac-address-table static #mac fastethernet 0/#Puerto. -> configu
ra la mac del equipo conectado como estatico
Switch(config)# mac address-table static direccion MAC vlan # interface #puerto
-> agregar mac estaticos
Switch(config)# no mac address-table static direccion MAC vlan # interface #puer
to -> borra mac estaticos
---------------------
Switch(Conf-if)#switchport access vlan 1
Switch(Conf-if)#switchport portsecurity mac address hh.hh.hh
Switch(Conf-if)#switchport portsecurity violation shutdown
Switch(Conf-if)#switchport portsecurity maximum 1
Switch(Conf-if)#switchport portsecurity mode access
Switch(Conf-if)#switchport portsecurity
Switch(Conf-if)#shutdown
Switch(Conf-if)#no shutdown
------------------
Switch# erase startup-config
Switch# reload
Switch(Conf-if)# switchport mode Access vlan (#vlan)
Switch# show vlan id (id vlan)
Switch#show interfaces fastEthernet 0/2 switchport
Switch# show mac-address table vlan (#vlan)
Switch_1(config-if)# switchport trunk allowed vlan remove 2 - 4094.
Switch_1(config-if)# switchport trunk allowed vlan add (ID de vlan creado)
Switch_1(config-if)# switchport mode trunk.
De presentarse algún mensaje de error al momento de ingresar el comando, utilice :
Switch(config-if)#Switchport trunk encapsulation dot1q
----------------
##CONFIG TELNET
Switch(Conf)# inter vlan 1
Switch(Conf-if)# ip address 192.168.1M.#sw 255.255.255.0
Switch(Conf-if)# no shut
Switch(Conf)# line vty 0 15
Switch(Conf-line)# password cisco
Switch(config)# ena pass cisco -> habilita pass
----------
show spanning-tree
show spanning-tree blockedports
config dentro de interfaces
spanning-tree mode rapid-pvst
spanning-tree vlan 1 priority 0
default spanning-tree vlan 1 priority
spanning-tree portfast y anote sus resultados.
spanning-tree bpduguard enable
shutdown
no shutdown
channel-group 1 mode active
----------------------
en modo exec
copy startup-config tftp:
copy flash:c2950 .bin tftp:

interface range fastethernet 0/10 -12. config rango de IP

------
macro
en modo de config global se hacen las macro
Macro name ipvlan
Interface vlan 1(la macros se corre apartir de la interface)
Ip address 1.1.1.1 255.255.255.0
No shutdown
Exit
Line vty 0 15 (opcional para telnet)
Password cisco (opcional para telnet)
Exit
Enable password cisco(opcional para telnet)
@
Macro name rapidstp
Configure terminal (Aquí igualmente se tiene que aplicar en una interface)
spanning-tree mode rapid-pvst
exit
@

macro ejemplo
Switch(config)# macro name test
switchport access vlan $VLANID
switchport port-security maximum $MAX
#macro keywords $VLANID $MAX
@

You might also like