Está en la página 1de 6

......CONFIGURACI�N GENERAL......

CONFIGURACI�N DEL NOMBRE DE HOST:

Switch>enable
Switch#config terminal
Switch(Config)# hostname S1

CCONFIGURACI�N DE LAS CONTRASE�AS:

---------Contrase�a de acceso a consola


Switch>enable
Switch# config t
Switch(config)# line console 0
Switch(config-line)# password ------
Switch(config)#login
Switch(config) # exit

-------- contrase�a a acceso a modo privilegiado


Switch>enable
Switch# configure terminal
Switch(config)# enable password -----
Switch(config)# exit

----------contrase�a secreta de acceso a modo privilegiado


Switch>enable
Switch# config t
Switch(config)# enable secret ------
Switch(config)# exit

-----------contrase�a Terminal virtual (lineas VTY)


Switch>enable
Switch# config t
Switch(config)#line vty 0 15
Switch(config-line)#password ----
Switch(config-line)#login
Switch(config-line)#exit

ENCRIPTACI�N DE CONTRASE�AS:

Switch>enable
Switch# config t
Switch(config)# service password-encryption
config(config)# exit

MENSAJE DE ENTRADA:

Switch>enable
Switch# config t
Switch(config)# banner motd "mensaje"
Switch# exit

CONFIGURACI�N DE INTERFACES:

------#--configuraci�n de la interface giga


switch(config)# interface g0/1
switch(config-if)# ip address 192.168.10.1 255.255.255.0
switch(config-if)#no shutdown
---------configuraci�n interfaces fast
switch>enable
switch#conf t
switch(config)# interface fa0/1
switch(config-if)# ip address 192.168.10.1 255.255.255.0
switch(config-if)#no shutdown

--------configuraci�n de interfaz serial DTE


switch>enable
switch#conf t
switch(config)# interface se0/0/0
switch(config-if)# ip address 192.168.10.1 255.255.255.0
switch(config-if)#no shutdown

GUARDAR LA CONFIGURACI�N:

SA# copy running-config startup-config


SA#write memory

CONFIGURACI�N DEL GATEWAY POR DEFECTO:

switch(config)# ip default-gateway 194.68.1.1

DESACTIVE LA B�SQUEDA DEL DNS:

Switch(Config)# no ip domain lookup

-------CONFIGURACI�N DE VLAN----------

----------Creaci�n de vlan
switch#vlan database
Switch(vlan)#vlan [n�mero de vlan] name [nombre de vlan]
Switch(vlan)#exit

ASIGNACI�N DE VLAN MODO ACCESO

Switch(config)#interface [Interfaz]
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan [n�mero de vlan]
Switch(config-if)#no shutdown

CONFIGURACI�N DE ENLACES TRONCALES

SA(config-if)#interface range fa 0/17,FA0/15


SA(config-if)#switchport mode trunk
SA(config-if)#switchport trunk native vlan 99
SA(config-if)#no shutdown

--------Enrutamiento de todas las vlan


SA(config-if)#switchport trunk allowed vlan all (10,20,30,40)

--------------CONFIGURAR EN SWITCH DE CAPA TRES


SA(config)#ip route 0.0.0.0 0.0.0.0 172.16.30.1
SA(config)#interface vlan 10
SA(config-if)#ip address 192.168.10.1 255.255.255.0
SA(config-if)#no shutdown

----------------CONFIGURACI�N DEL ROUTER PARA VLAN---------------


RA>enable
RA#conf t
RA(config)#INTERFACE G0/0
RA(config-if)#NO SHUTdown

RA(config-if)#INTERFACE G0/0.10
RA(config-subif)#ENCAPsulation Dot1Q 10
RA(config-subif)#IP ADDress 10.10.10.1 255.255.255.0

RA(config-subif)#INTERFACE G0/0.20
RA(config-subif)#ENCapsulation Dot1Q 20
RA(config-subif)#IP ADDress 10.10.20.1 255.255.255.0

RA(config-subif)#INTERFACE G0/0.99
RA(config-subif)#ENcapsulation Dot1Q 99 NATIVE
RA(config-subif)#IP ADDress 10.10.99.1 255.255.255.0
RA(config-subif)#END

EJEMPLO DE SALTO

S1(config-if)# exit
S1(config-if)# do show vlan brief

SEGURIDAD DE PUERTO

SC1(config)#int fa0/18
SC1(config-if)#switchport port-security maximum 4
SC1(config-if)#switchport port-security mac-address sticky
SC1(config-if)#switchport port-security violation shutdown

----------------------CONFIGURACI�N DE
PVST+-------------------------

CONFIGURANDO Y VERIFICANDO EL BRIDGE ID

S1(config)# spanning-tree VLAN 1 root primary


S1(config)# end

S2(config)# spanning-tree VLAN 1 root secondary


S2(config)# end

S3(config)# spanning-tree VLAN 1 priority 24576


S3(config)# end
S3# show spanning-tree

PORTFAST Y BPDU Guard

S2(config)#interface fa0/11
S2(config-if-range)#spanning-tree portfast
S2(config-if-range)#spanning-tree bpduguard enable
S2(config)# end

BALANCEO DE CARGA EN PVST+

S3(config)# spanning-tree VLAN 20 root primary


S3(config)# spanning-tree VLAN 10 root secondary
S1(config)# spanning-tree VLAN 10 root primary
S1(config)# spanning-tree VLAN 20 root secondary

S3(config)# spanning-tree VLAN 20 priority 4096


S1(config)# spanning-tree VLAN 10 priority 4096

S3# show spanning-tree active

---------------------CONFIGURACI�N DE RAPID PVST+-------------------

S1(config)# spanning-tree mode rapid-p

--------------PROTOCOLO ROUTING OSPF---------

R1(config)# router ospf 10


R1(config-router)# router-id 1.1.1.1
R1(config-router)# network 172.16.1.0 0.0.0.255 area 0
R1(config-router)# network 172.16.3.0 0.0.0.3 area 0
R1(config-router)# network 192.16.10.4 0.0.0.3 area 0
R1(config-router)# exit
R1(config)# end

COMANDOS BASICOS DEL ROUTER

#show ip protocols � muestra informaci�n acerca de los protocolos de routing


configurados.
#show ip route � muestra la informaci�n de la tabla de routing.
#show ip ospf neighbor � muestra informaci�n acerca de los vecinos OSPF.
#show ip interfaces � muestra informaci�n detallada de las interfaces.
#show ip interface brief � muestra todas las interfaces con informaci�n de
direccionamiento IP y los estados de interfaz y de protocolo de l�nea.
#show cdp neighbors � muestra informaci�n acerca de los dispositivos Cisco
conectados directamente.
#show port-security � muestra todos los puertos con seguridad habilitada.
#show port-security address � muestra todos los puertos con seguridad MAC
habilitada.
#show interfaces � muestra informaci�n detallada de las interfaces.
#show mac-address-table � Muestra todas las direcciones MAC que el switch ha
aprendido.
#show cdp neighbors � muestra informaci�n acerca de los dispositivos Cisco
conectados directamente.

- Borrar conf. del switch � erase startup-config, y luego reload.


- Borrar informaci�n de VLANs� delete flash:vlan.dat.

----SESION 2: PROTOCOLO SPANNING TREE

Lista de Protocolos Spanning Tree

- STP � IEEE 802.1D-1998


- PVST+
- EEE 802.1D-2004
- Rapid Spanning Tree Protocol (RSTP) or IEEE 802.1w
- Rapid PVST+
- Multiple Spanning Tree Protocol (MSTP) or IEEE 802.1s

config#spanning-tree mode rapid-pvst


#spanning-tree vlan 10,20,30,99 priority 4096

------------------ ESTUDIAR -----------------

-tormena broadcast
- spanning tree
eleccion switch raiz
eleccion puerto raiz
puerto
mejora del spanning tree
portfast para que se utiliza
hcrp
vtp ether channel
erase red estart config
examen
vtp spanning ospf

----------------Lab-OSPF (Clase08)------

R1(config)#interface g0/0
R1(config)#ip addr 192.168.200.1 255.255.255.0
R1(config)#no shutdown

R1(config)#interface g0/1
R1(config)#ip addr 192.168.150.1 255.255.255.0
R1(config)#no shutdown

R1(config)#router ospf 4
R1(config)#router-id 1.1.1.1
R1(config)#net 192.168.200.0 0.0.0.255 area 0
R1(config)#net 192.168.150.0 0.0.0.255 area 0
R1(config)#net 192.168.250.0 0.0.0.3 area 0
R1(config)#passive-interface g0/0
R1(config)#pasive-interface g0/1

R1(config)#interface s0/0/1
R1(config)#ip addr 192.168.250.1 255.255.255.252
R1(config)#no shutdown
R1(config)#ip ospf cost 10

{R1(config)#auto-cost reference-baudwidth 1000}

...........................................................

********************************************************************
Ruteando estaticamente conjunto a ospf

R2(config)#interface s0/0/0
R2(config)#ip addr 192.168.250.2 255.255.255.252
R2(config)#no shutdown

R2(config)#interface s0/0/1
R2(config)#ip addr 10.10.10.1 255.255.255.252
R2(config)#no shutdown
R2(config)#interface g0/0
R2(config)#ip addr 192.168.100.1 255.255.255.0
R2(config)#no shutdown

R2(config)#router ospf 4
R2(config)#net 192.168.100.0 0.0.0.255
R2(config)#net 192.168.250.0 0.0.0.3
R2(config)#passive-interface s0/0/0
R2(config)#passive-interface g0/0
R2(config)#auto-cost reference-baudwidth 1000
R2(config)#redistribute static subnets
....R2(config)#default-information originate
R2(config)#exit

R2(config)#ip route 20.20.20.0 255.255.255.0 10.10.10.2

sumarisar las redes

...........................................................

R3(config)#interface loopback 5
R3(config)#ip addr 20.20.20.1 255.255.255.0
R3(config)# no shutdown

R3(config)#interface se0/0/0
R3(config)#ip addr 10.10.10.2 255.255.255.252
R3(config)#no shutdown

R3(config)# ip route 192.168.0.0 255.255.0.0 10.10.10.1

También podría gustarte