Está en la página 1de 3

Dejar sw como root, cambiando la priority

#spanning-tree vlan [n vlan] priority [n]


Por defecto el priority es 32768 y el mas bajo sera el root
Vtp modo server-client-transparent
vtp domain explo3
vtp mode transparent
vtp password explo3
vtp version 2

Switch_B#vlan database
Switch_B(vlan)#vtp [client/server/transparent]
Switch_B(vlan)#vtp domain [nombre de dominio]
Crear enlaces tipo trunk
Switch_B(config)#interface [f/s] [n]
Switch_B(config-if)#switchport mode trunk
Switch_B(config-if)#end
Crear vlans
Switch>
Switch>enable
Switch#vlan database
Switch(vlan)#vlan [n vlan] name [nombre vlan]

Para asignar vlan alos port por rango interface range:
Switch>enable
Switch#configure terminal
Switch(config)#interface range fastEthernet 0/1 - 12
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#exit
Switch(config)#interface range fastEthernet 0/13 - 23
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#exit
Switch(config)#interface fastEthernet 0/24
Switch(config-if)#switchport mode trunk



COMANDOS VTP
sw1(config)#vtp version 2
#vtp domain duoc.cl
#vtp mode server/transparent/client
#vtp password cisco
#int fa0/24
#switchport mode trunk

COMANDOS VLAN
sw1#vlan database
switch.vlan.#vlan 10 name x
#vlan 20 name y
#vlan 30 name z
#vlan nativa mas el nombre
#exit
sw1#sh vlan
sw1#conf t
sw1(config)#inter fa0/1 o inter range fa0/1-7
#switchport mode access
#switchport access vlan 10

R1(config)#inter f0/0.10
#encapsulation dot1Q 10
#ip address 10.0.0.1 255.0.0.0
#exit
#inter fa0/0.20
#ip address 20.0.0.1 255.0.0.0
#exit
#inter fa0/0
#no shu

COMANDOS VLAN NATIVA
sw1#vlan database
#vlan 99 name ADM
#exit

ESTO SE HACE EN TODOS LOS SW

sw1(config)#inter vlan 99
#ip add 1.0.0.2 255.0.0.0
# no shut
#exit
#ip default-gateway 1.0.0.1
#enable secret cisco
#line vty 0 15
#password cisco
#login
#exit

R1(config)#inte fa0/0.99
#encapsulation dot1Q 99 native
#ip address 1.0.0.0 255.0.0.0


*LA VLAN NATIVA DEBE ESTAR EN TODOS LOS SW. INCLUYENDO EL
TRANSPARENT
*LA VLAN NATIVA JAMAS SE DECLARA EN LOS PROTOCOLOS DE
ENRUTAMIENTO.
*PARA PODER ACCEDER A LA VLAN NATIVA DESDE OTRO PC FUERA DEL
DOMINIO. SE HACE POR DEFECTO O POR ST

También podría gustarte