CLASE 2
EDIFICIO CENTRAL
SWITCH PISO 1
a //crear vlans://
vlan 10
name estudiantes
vlan 20
name profesores
vlan 100
name servidores-equipos
b //configurar interface modo acceso://
interface Fa0/1
switchport mode acces
switchport access vlan 10
no shutdown
interface Fa0/2
switchport mode acces
switchport access vlan 20
no shutdown
c //configurar interfaces modo trunk://
interface Fa0/22
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan all
no shutdown
d // configuración logs//
enable
configure terminal
logging host 192.168.100.100
logging trap 7
@aulacerti
e //configuracion consola, ssh, claves//
hostname switchpiso1
ip domain-name aulacerti.com
crypto key generate rsa
username admin secret aulacerti
line console 0
password cisco
login
line vty 0 15
transport input ssh
login local
exit
ip ssh version 2
enable secret class
service password-encryption
end
ip default-gateway 192.168.100.1
write memory
copy running-config startup-config
f // port security //
enable
configure terminal
interface FastEthernet0/1
switchport mode access
switchport port-security
switchport port-security maximum 2
switchport port-security mac-address 0011.2233.4455
switchport port-security violation shutdown
end
write memory
show port-security interface FastEthernet0/1
@aulacerti
SWITCH PISO 3
a //crear vlans://
vlan 10
name estudiantes
vlan 20
name profesores
vlan 100
name servidores-equipos
b //configurar interface modo acceso://
interface Gig1/0/21
switchport mode acces
switchport access vlan 100
no shutdown
interface Gig1/0/1
switchport mode acces
switchport access vlan 100
no shutdown
c //configurar interfaces modo trunk://
interface Gig1/0/22
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan all
no shutdown
interface Gig1/0/23
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan all
no shutdown
d // configuración logs//
enable
configure terminal
logging host 192.168.100.100
logging trap 7
@aulacerti
e //configuracion consola, ssh, claves//
hostname switchpiso3
ip domain-name aulacerti.com
crypto key generate rsa
username admin secret aulacerti
line console 0
password cisco
login
line vty 0 15
transport input ssh
login local
exit
ip ssh version 2
enable secret class
service password-encryption
end
ip default-gateway 192.168.100.1
write memory
copy running-config startup-config
f // configurar port security //
enable
configure terminal
interface FastEthernet0/1
switchport mode access
switchport port-security
switchport port-security maximum 2
switchport port-security mac-address 0011.2233.4455
switchport port-security violation shutdown
end
write memory
show port-security interface FastEthernet0/1
g //configurar enrutamiento intervaln ///
interface vlan 100
ip address 192.168.100.1 255.255.255.0
no shutdown
interface vlan 10
ip address 192.168.10.1 255.255.255.0
no shutdown
interface vlan 20
ip address 192.168.20.1 255.255.255.0
no shutdown
ip routing
@aulacerti
EDIFICIO DE INGENIERIA
SWITCH PISO 4
a //crear vlans://
vlan 10
name estudiantes
vlan 20
name profesores
vlan 100
name servidores-equipos
b //configurar interfaces modo trunk://
interface Fa0/23
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan all
no shutdown
interface Fa0/24
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan all
no shutdown
c // configuración logs//
enable
configure terminal
logging host 192.168.100.100
logging trap 7
d //configuracion consola, ssh, claves//
hostname switchpiso3
ip domain-name aulacerti.com
crypto key generate rsa
username admin secret aulacerti
line console 0
password cisco
login
line vty 0 15
transport input ssh
login local
exit
ip ssh version 2
enable secret class
service password-encryption
end
ip default-gateway 192.168.100.1
write memory
copy running-config startup-config
e // configurar port security //
enable
configure terminal
interface FastEthernet0/1
switchport mode access
switchport port-security
switchport port-security maximum 2
switchport port-security mac-address 0011.2233.4455
switchport port-security violation shutdown
end
write memory
show port-security interface FastEthernet0/1
SWITCH PISO 1
a //crear vlans ://
vlan 10
name estudiantes
vlan 20
name profesores
vlan 100
name servidores-equipos
b //configurar interface modo acceso://
interface Fa0/1
switchport mode acces
switchport access vlan 10
no shutdown
interface Fa0/2
switchport mode acces
switchport access vlan 20
no shutdown
c //configurar interfaces modo trunk://
interface Fa0/24
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan all
no shutdown
d // configuración logs//
enable
configure terminal
logging host 192.168.100.100
logging trap 7
@aulacerti
e //configuracion consola, ssh, claves//
hostname switchpiso1
ip domain-name aulacerti.com
crypto key generate rsa
username admin secret aulacerti
line vty 0 15
transport input ssh
login local
exit
ip ssh version 2
end
ip default-gateway 192.168.100.1
f // configurar port security //
enable
configure terminal
interface FastEthernet0/1
switchport mode access
switchport port-security
switchport port-security maximum 2
switchport port-security mac-address 0011.2233.4455
switchport port-security violation shutdown
end
write memory
show port-security interface FastEthernet0/1
@aulacerti