Vlan 6
Vlan 6
Vlan 6
Configuración PC1
Máscara: 255.255.255.0
Configuración PC2
Gateway: 192.168.10.1
Configuración PC3
Gateway: 192.168.20.1
Configuración PC4
Máscara: 255.255.255.0
Default Gateway: 192.168.20.1
Configuración PC5
Máscara: 255.255.255.0
Configuración PC6
Máscara: 255.255.255.0
Configuración PC7
Máscara: 255.255.255.0
Configuración PC8
Máscara: 255.255.255.0
Configuración Sw0
Sw0#config t
Enter configuration commands, one per line. End with CNTL/Z.
Sw0(config)#enable secret clave0
Crear uno o varios usuarios para el acceso por consola o telnet
Sw0(config)#username Cesar passwords profe
Sw0(config)#username otrousuario passwords otraclave
Para asociarlos con la consola y la línea vty
Sw0(config)#line console 0
Sw0(config-line)#login local
Sw0(config-line)#exit
Sw0(config)#line vty 0 15
Sw0(config-line)#login local
Configuracion Sw1
Switch>ena
Switch#Sw1
Translating "Sw1"...domain server (255.255.255.255)
% Unknown command or computer name, or unable to find computer address
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname Sw1
Sw1(config)#enable secret clave1
Sw1(config)#username Cesar pass <Tab>
Sw1(config)#username Cesar password profe
Sw1(config)#username otrousuario pass<Tab>
Sw1(config)#username otrousuario password otraclave
Sw1(config)#vlan 20
Sw1(config-vlan)#name seccion3
Sw1(config-vlan)#vlan 100
Sw1(config-vlan)#name seccion2
Sw1(config-vlan)#exit
Sw1(config)#line console 0
Sw1(config-line)#login local
Sw1(config-line)#line vty 0 15
Sw1(config-line)#login local
Sw1(config-line)#exit
Sw1(config)#int f0/1
Sw1(config-if)#switchport mode acces
Sw1(config-if)#switchport access vlan 20
Sw1(config-if)#int f0/2
Sw1(config-if)#switchport mode acces
Sw1(config-if)#switchport access vlan 20
Sw1(config-if)#int f0/24
Sw1(config-if)#switchport mode trunk
Sw1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to
down
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
100 enet 100100 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
Configuracion Sw2
Switch>ena
Switch#Sw2
Translating "Sw1"...domain server (255.255.255.255)
% Unknown command or computer name, or unable to find computer address
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname Sw1
Sw2(config)#enable secret clave2
Sw2(config)#username Cesar pass <Tab>
Sw2(config)#username Cesar password profe
Sw2(config)#username otrousuario pass<Tab>
Sw2(config)#username otrousuario password otraclave
Sw2(config)#vlan 40
Sw2(config-vlan)#name seccion5
Sw2(config-vlan)#vlan 200
Sw2(config-vlan)#name seccion2
Sw2(config-vlan)#exit
Sw2(config)#line console 0
Sw2(config-line)#login local
Sw2(config-line)#line vty 0 15
Sw2(config-line)#login local
Sw2(config-line)#exit
Sw2(config-if)#int range f0/1-2
Sw2(config-if-range)#switchport mode access
Sw2(config-if-range)#switchport access vlan 40
Sw2(config-if)#int f0/24
Sw2(config-if)#switchport mode trunk
Sw2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to
down
Configuracion Sw3
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname Sw3
Sw3(config)#enable secret clave3
Sw3(config)#username Cesar secret profe
Sw3(config)#vlan 50
Sw3(config-vlan)#name seccion6
Sw3(config)#vlan 200
Sw3(config-vlan)#name seccion2
Sw3(config-vlan)#exit
Sw3(config-vlan)#exit
Sw3(config)#line console 0
Sw3(config-line)#login local
Sw3(config-line)#line vty 0 15
Sw3(config-line)#login local
Sw3(config-line)#exit
Sw3(config)#int range f0/1-2
Sw3(config-if-range)#switchport mode access
Sw3(config-if-range)#switch access vlan 50
Sw3(config-if-range)#int f0/24
Sw3(config-if)#switchport mode trunk
Sw3(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to
down
Sw3#wr
Building configuration...
[OK]
Sw3#
Se configuran todas las vlan relacionadas con el Sw4 (vlan 10, vlan 20 y vlan 100)
Sw4(config)#vlan 10
Sw4(config-vlan)#name seccion1
Sw4(config-vlan)#vlan 20
Sw4(config-vlan)#name seccion3
Sw4(config-vlan)#vlan 100
Sw4(config-vlan)#name seccion2
Sw4(config-vlan)#exit
Sw4(config-if)#ip add
Sw4(config-if)#ip address 192.168.10.1 255.255.255.0
Sw4(config-if)#int vlan 20
Sw4(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up
Para establecer conectividad entre vlan 10, vlan 20 y vlan100 con vlan 40, vlan 50 y vlan
200 se especifican las rutas a través del Sw5 por la IP 192.168.30.2
Sw4(config)#ip route 192.168.40.0 255.255.255.0 192.168.30.2
Sw4(config)#ip route 192.168.50.0 255.255.255.0 192.168.30.2
Sw4(config)#ip route 192.168.200.0 255.255.255.0 192.168.30.2
Sw4(config)#exit
Configuración Sw5
Switch>ena
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname Sw5
Sw5(config)#enable passwor
Sw5(config)#enable password clave5
Sw5(config)#username cesar secret profe
Sw5(config)#line console 0
Sw5(config-line)#login local
Sw5(config-line)#line vty 0 15
Sw5(config-line)#login local
Sw5(config-line)#exit
Sw5(config)#vlan 40
Sw5(config-vlan)#name seccion4
Sw5(config-vlan)#vlan 50
Sw5(config-vlan)#name seccion5
Sw5(config-vlan)#vlan 200
Sw5(config-vlan)#name seccion2
Sw5(config-vlan)#exit
Sw5(config)#ip routing
Sw5(config)#int range f0/23-24
Sw5(config-if-range)#switchport trunk encapsulation dot1q
Sw5(config-if-range)#switchport mode trunk
Sw5(config-if-range)#exit
Sw5(config)#int g0/1
Sw5(config-if)#no switchport
Sw5(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to
down
Sw5#wr
Building configuration...
[OK]
Sw5#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Sw5#