• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
Resumen CCNA 3 | Comandos http.telecossur.blogspot.com
Switch de Capa 2
-------------------------------------------
Crear una vlan
Forma 1:
switch#configure terminalswitch(config)#vlan 2switch(config-vlan)#name ssurswitch(config-vlan)#exitswitch(config)#exitswitch#
Forma 2:
swirch#vlan database
Warning: It is recommended to configure VLAN from config mode, as VLAN database mode isbeing deprecated. Please consult user documentation for configuring VTP/VLAN in configmode.
switch(vlan)#vlan 2 name ssur
VLAN 2 added:Name: ssur
swirch(vlan)#exitSwirch#
ssur es un ejemplo
Eliminar Archivo vlan.dat
Switch#dalete flash:vlan.dat
Switch#show vlan
-------------------------------------------
Contraseñas (enable – consola – vty y encriptado)
switch#configure terminalSwitch(config)#enable secret ssur_1Switch(config)#Switch(config)#line console 0Switch(config-line)#password ssur_2Switch(config-line)#loginSwitch(config-line)#exitSwitch(config)#Switch(config)#line vty 0 15Switch(config-line)#password ssur_3Switch(config-line)#loginSwitch(config-line)#exitSwitch(config)#service password-encryption
ssur_1 , ssur_2 y ssur_3 son ejemplo
Switch#show running-config
-------------------------------------------
Interface (trunk o access) y asociarlos a vlan
 Agregar a vlan 2 y dejarla como acceso
Switch#configure terminalSwitch(config)#interface fastEthernet 0/1
piriwenho@hotmail.com1
 
Resumen CCNA 3 | Comandos http.telecossur.blogspot.com
Switch(config-if)#switchport mode accessSwitch(config-if)#switchport access vlan 2Switch(config-if)#exitSwitch(config)#exit
Dejarla Trunk 
Switch#configure terminalSwitch(config)#interface fastEthernet 0/1Switch(config-if)#switchport mode trunkSwitch(config-if)#exitSwitch(config)#exit
 Asignar interfaces por rango
Switch(config)#interface range fastEthernet 0/1 - 5Switch(config-if-range)#
Switch#show running-configSwitch#show interface trunkSwitch#show vlan
-------------------------------------------
 
Puerta de enlace por defecto
switch#configure terminalSwitch(config)#ip default-gateway A.B.C.DSwitch(config)#exitSwitch#
Switch#show running-config
-------------------------------------------
 
 Vlan de administración
switch#configure terminalSwitch(config)#interface vlan 2Switch(config-if)#ip address 10.0.0.1 255.0.0.0Switch(config-if)#no shutdown
 Vlan 2, 10.0.0.1 y 255.0.0.0 son ejemplo
Switch#show running-config
-------------------------------------------
 Vlan nativa
switch#configure terminalSwitch(config)#interface fastEthernet 0/5Switch(config-if)#switchport mode trunkSwitch(config-if)#switchport trunk native vlan 2
 Vlan 2 y F0/5 son ejemplo
Switch#show interfaces fastEthernet 0/5 switchport
-------------------------------------------
 VTY (virtual trunking protocol)
Dominio (ej. inacap)
Switch#configure terminal
piriwenho@hotmail.com2
 
Resumen CCNA 3 | Comandos http.telecossur.blogspot.com
Switch(config)#vtp domain inacap
Modo client / server / transparent
Switch(config)#vtp mode clientSwitch(config)#vtp mode serverSwitch(config)#vtp mode transparent
Switch#show vtp status
-------------------------------------------
Spanning-tree
Bridge ID
Switch#configure terminalSwitch(config)#spanning-tree vlan 2 priority 4096
Ejemplo: vlan 2<0-61440> bridge priority in increments of 4096
Port ID
Switch#configure terminalSwitch(config)#spanning-tree vlan 2 root primary
Switch#show spanning-tree
-------------------------------------------
Direcciones MAC
Configuracion MAC Statica
Switch#configure terminalSwitch(config)#mac-address-table static 0000.0a00.1232 vlan 2interface fastEthernet 0/10000.0a00.1232, vlan 2, F0/1 son ejemplo
Seguridad a los puertos
Switch(config)#interface fastEthernet 0/1Switch(config-if)#switchport port-securitySwitch(config-if)#switchport port-security maximum 1Switch(config-if)#switchport port-security mac-address stickySwitch(config-if)#switchport port-security violation shutdownSwitch(config-if)#
Eliminar configuracion MAC Statica
Switch#configure terminalSwitch(config)#no mac-address-table static 0000.0a00.1232 vlan 2interface fastEthernet 0/1
Switch#show port-security interface fastEthernet 0/1Switch#sh mac-address-tableSwitch#sh mac-address-table static
-------------------------------------------
IP Snooping
Switch#configure terminalSwitch(config)#ip dhcp snoopingSwitch(config)#interface fastEthernet 0/2Switch(config-if)#ip dhcp snooping trust
piriwenho@hotmail.com3
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...