Professional Documents
Culture Documents
Switch Capa 3
Switch Capa 3
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
end
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
config term
ip routing