-
-
Save Dviejopomata/86b6cf46557be390fa35ebb4a20bd4c6 to your computer and use it in GitHub Desktop.
Ejercicio1 redes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# En el switch 2 y 3 ejecutamos los comandos como client | |
vtp mode client | |
vtp domain UOC | |
vtp password cisco123 | |
end | |
# Configuramos la password en el switch 1 | |
line con 0 | |
password cisco123 | |
login | |
end | |
# En el switch 1 configuramos las VLAN | |
vlan 99 | |
name management | |
vlan 10 | |
name contabilidad | |
vlan 20 | |
name compras | |
vlan 30 | |
name distribucion | |
# ponemos que la VLAn management va a ser la default | |
switchport mode trunk | |
switchport trunk native vlan 99 | |
no shutdown | |
exit | |
Ejecutamos la vlan por defecto para las interfaces de conexion en S1,S2,S3 | |
# on fa0/1 | |
int fa0/1 | |
# run trunk | |
# on fa0/2 | |
int fa0/2 | |
# Ahora vamos a configurar la seguridad de los puertos | |
interface fa0/6 | |
switchport mode access | |
no shutdown | |
switchport port-security | |
switchport port-security maximum 1 | |
switchport port-security mac-address sticky | |
switchport port-security violation shutdown | |
interface fa0/11 | |
switchport mode access | |
no shutdown | |
switchport port-security | |
switchport port-security maximum 1 | |
switchport port-security mac-address sticky | |
switchport port-security violation shutdown | |
interface fa0/18 | |
switchport mode access | |
no shutdown | |
switchport port-security | |
switchport port-security maximum 1 | |
switchport port-security mac-address sticky | |
switchport port-security violation shutdown | |
exit | |
# Configuramos las ip en los diferentes switches | |
# S1 | |
interface vlan 99 | |
ip address 172.17.99.11 255.255.255.0 | |
exit | |
# S2 | |
interface vlan 99 | |
ip address 172.17.99.12 255.255.255.0 | |
exit | |
# S3 | |
interface vlan 99 | |
ip address 172.17.99.13 255.255.255.0 | |
exit | |
# COnfiguramos los accesos en las interfaces de los switch S2,S3 | |
interface fa0/6 | |
switchport access vlan 30 | |
interface fa0/11 | |
switchport access vlan 10 | |
interface fa0/18 | |
switchport access vlan 20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment