Sesion 6-1
- 1. CONFIGURACION DEL S1,S2,S3
1.- NOMBRE
2.- CONTRASEÑAS
3.- CONFIGURAR LAS VLANS
4.- CONFIGURAR INTERFACES
5.- ACELERAR EL PROCESO STP
6.- CONVERTIR EL SWITCH CAPA 2 EN
7.- CONFIURAR PUERTA DE ENLACE
8.- SEGURIDAD POR PUERTO
----->ACTIVAR SEGURIDAD POR PUERTO
----->ACEPTAR 4 CONEXIONES SIMULTANEAS
----->APRENDER DINAMICAMENTE LAS DIRECCIONES MAC DE LOS EQUIPOS QUE SE CONECTAN
AL SERVIDOR
----->EN CASO DE VIOLACION, EL PUERTO SE DEBE DE BLOQUEAR
S1
-----------
Switch>ENABLE
Switch#configure terminal
Switch(config)#hostname S1
S1(config)#enable secret cisco1
S1(config)#line console 0
S1(config-line)#password
S1(config-line)#password cisco2
S1(config-line)#logging synchronous
S1(config-line)#login
S1(config-line)#exit
S1(config-line)#exit
S1(config)#line vty 0 15 ---- switch tienes 15
S1(config-line)#password cisco3
S1(config-line)#login
S1(config-line)#exit
vlans
--------------
S1(config)#vlan 10
S1(config-vlan)#name oficina1
S1(config-vlan)#exit
S1(config)#vlan 20
S1(config-vlan)#name oficina2
S1(config-vlan)#exit
S1(config)#vlan 30
S1(config-vlan)#name servers
S1(config-vlan)#exit
S1(config)#vlan 99
S1(config-vlan)#name nativa
S1(config-vlan)#exit
troncales (cable cruzado -----)
-------------
S1(config)#interface range fa0/20-24
S1(config-if-range)#switchport mode trunk
S1(config-if-range)#switchport trunk native vlan 99
S1(config-if-range)#no shutdown
interfaces
--------------
S1(config)#interface fa0/10
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 30
S1(config-if)#no shutdown
S1(config-if)#exit
1(config)#interface fa0/15
- 2. S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 10
S1(config-if)#no shutdown
S1(config-if)#exit
S1(config)#spanning-tree mode rapid-pvst
S1(config)#interface vlan 99
S1(config-if)#ip add 10.10.99.4 255.255.255.0
S1(config-if)#no shutdown
S1(config-if)#exit
S1(config)#ip default-gateway 10.10.99.1
S1(config)#interface fa0/10
S1(config-if)#switchport port-security
S1(config-if)#switchport port-security maximum 4
S1(config-if)#switchport port-security mac-add sticky
S1(config-if)#switchport port-security violation shutdown
S1(config-if)#end
S1#copy run start