Enable
config ter
interface vlan 88
ip address 172.31.88.4 255.255.255.0
ip default-gateway 172.31.88.1
enable
vlan database
vlan 10 name ventas
vlan 20 name produccion
vlan 30 name marketing
vlan 88 name administracion
vlan 99 name nativa
exit
config ter
interface G0/2
switchport mode trunk
switchport trunk native vlan 99
exit
switchport nonegotiate
switchport trunk allowed vlan 10,20,30,88,99
exit
interface range Fa0/7-12
switchport access vlan 10
exit
interface range Fa0/13-20
switchport access vlan 20
exit
interface range Fa0/1-6
switchport access vlan 30
exit
//Contraseñas
enable
config ter
enable secret itsasecret
line console 0
password letmein
login
exit
line vty 0 15
password c1$co
exit
service password-encryption
banner motd #Authorized Access Only !!#
interface range Fa0/21-24
shut
exit
interface g0/1
shut
exit
interface fa0/14
shut
exit
interface fa0/4
shut
exit
interface fa0/6
switchport mode access
switchport port-security
switchport port-security maximum 2
switchport port-security mac-address sticky
switchport port-security mac-address sticky 0030.F279.4A6B
switchport port-security violation restrict