Академический Документы
Профессиональный Документы
Культура Документы
switch> enable
switch# configure terminal
switch(config)# hostname s1
s1(config)# line console 0
s1(config-line)# password cisco
s1(config-line)# exit
s1(config)#line vty 0 15 /router solo del 0 4
s1(config)#enable secret class
s1(config)#service password-encryption
s1(config)#banner motd #solo personal !!!#
creacion de vlans
s1(config)#vlan 10
s1(config-vlan)# name Students / solo se crea
s1(config)#end
asignacion de puertos a las vlan
s1(config)#interface range f0/1-10
s1(config-range)#switchport mode access
s1(config-range)#switchport access vlan 20
//cuando no tenemos activado el protocolo DTP tenemos que configurlo
configuracion de enlaces troncales
s1(config)#interfce g0/0
s1(config-if)# switchport mode trunk
s1(config-if)# switchport trunk native vlan 99/ ejemplo
s1(config-if)# switchport trunk allowed 10,20,30,99
para poner seguridad en puertos
s1(config)#switchport port-security maximum 2
s1(config)#switchport port-security mac-address sticky
s1(config)#switchport port-security violation protect
para que ls psuertos no negocien es
s1(config-if)#switchport nonegatiate
Configuracion de la administracin de switches
S1(config)#interface vlan 1
S1(config-if)#Ip address 192.168.10.2 255.255.255.0
S1(config-if)#no shutdown
S1(config-if)#exit