Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

SwitchCapa3#show run

Building configuration...
hostname SwitchCapa3
!
spanning-tree vlan 1 priority 8192
spanning-tree vlan 30 priority 8192
spanning-tree vlan 50 priority 8192
spanning-tree vlan 100 priority 8192
spanning-tree vlan 200 priority 8192
vtp file nvram:vlan.dat
vtp domain LAB
vtp mode transparent
archive
log config
hidekeys
!
vlan 30,50,100,200
!
!
interface Port-channel1
switchport trunk allowed vlan 1,100,200,1002-1005
switchport mode trunk
!
interface FastEthernet1/0
switchport trunk allowed vlan 1,100,200,1002-1005
switchport mode trunk
duplex full
speed 100
channel-group 1 mode on
!
interface FastEthernet1/1
switchport trunk allowed vlan 1,100,200,1002-1005
switchport mode trunk
duplex full
speed 100
channel-group 1 mode on
!
interface FastEthernet1/2
switchport access vlan 30
duplex full
speed 100
spanning-tree portfast
!
interface FastEthernet1/3
switchport access vlan 50
duplex full
speed 100
spanning-tree portfast
!
interface Vlan1
no ip address
shutdown
!
interface Vlan30
ip address 172.16.30.1 255.255.255.0
!
interface Vlan50
ip address 172.16.50.1 255.255.255.0
!
interface Vlan100
ip address 172.16.100.1 255.255.255.0
!
interface Vlan200
ip address 172.16.200.1 255.255.255.0
!

SwitchCapa3#
Comandos a poner en sw capa 3 - LOS COMANDOS VAN EN ORDEN

1. crear vlans
config term
vlan 30
ex
vlan 50
ex
vlan 100
ex
vlan 200
ex
interface vlan 30
ip address 172.16.30.1 255.255.255.0

interface vlan 50
ip address 172.16.50.1 255.255.255.0

interface vlan 100


ip address 172.16.100.1 255.255.255.0

interface vlan 200


ip address 172.16.200.1 255.255.255.0

end

2. COMPROBAR QUE SE HA CREADO TODO BIEN:


show vlan-switch
SW_Capa3 - CONFIGURAR
VTP:
vlan database
vtp transparent
vtp domain LAB
exit

SPANNING-TREE
config term
spanning-tree vlan 1 root primary
spanning-tree vlan 30 root primary
spanning-tree vlan 50 root primary
spanning-tree vlan 100 root primary
spanning-tree vlan 200 root primary
exit

Trunk and port channel


config term
interface port-channel 1
switchport mode trunk
switchport trunk allowed vlan 100,200
switchport trunk allowed vlan 1,1002-1005,100,200
exit
exit
config term
interface range fastEthernet 1/0 - 1
switchport mode trunk
switchport trunk allowed vlan 1,1002-1005,100,200
channel-group 1 mode on
exit
exit

comprobar todo bien en sw_capa3:


show vtp status
show interface fastethernet 1/0 trunk
show spanning-tree summary
Configuramos puertos de ACCESO en switch_capa3
config term
interface fastEthernet 1/2
switchport mode access
switchport access vlan 30
spanning-tree portfast
speed 100
duplex full
exit

interface fastEthernet 1/3


switchport mode access
switchport access vlan 50
spanning-tree portfast
exit
exit

config term
ip routing

You might also like