PRACTICA 1 SEGUNDO PARCIAL
VLAN
Las VLAN se
crea en el modo de configuración global mediante el comando vlan id de la VLAN. Una vez creadas las
VLAN, se asignan a los puertos del switch a los que se conectara el router.
Para realizar esta tarea, se ejecuta el comando switchport access vlan id de la VLAN desde el modo de configuración
de la interfaz en el switch para cada interfaz a la cual se conectara el
router.
Fig.
1. Topología de red
Configuración
del switch
Switch>en
Switch#config t
Switch(config)#interface fa0/2
Switch(config-if)#switchport mode
trunk
Switch(config-if)#exit
Switch(config)#vlan 2
Switch(config-vlan)#name alejandra
Switch(config-vlan)#exit
Switch(config)#vlan 3
Switch(config-vlan)#name segundo
Switch(config-vlan)#exit
Switch(config)#vlan 4
Switch(config-vlan)#name sanchez
Switch(config-vlan)#exit
Switch(config)#exit
Switch#
Switch#sh vlan
VLAN Name Status Ports
----
-------------------------------- --------- -------------------------------
1
default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig1/1, Gig1/2
2 alejandra active
3 segundo active
4 sanchez active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
VLAN Type SAID
MTU Parent RingNo BridgeNo
Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------
------ -------- ---- -------- ------ ------
1
enet 100001 1500
- -
- - -
0 0
2
enet 100002 1500
- - -
- - 0
0
3
enet 100003 1500
- - -
- - 0
0
4
enet 100004 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
Switch#config t
Enter configuration commands, one
per line. End with CNTL/Z.
Switch(config)#interface fa 0/1
Switch(config-if)#switchport access vlan
2
Switch(config-if)#exit
Switch(config)#interface fa 0/10
Switch(config-if)#switchport access
vlan 3
Switch(config-if)#exit
Switch(config)#interface fa 0/20
Switch(config-if)#switchport access
vlan 4
Switch(config-if)#exit
Switch(config)#exit
Switch#sh vlan
VLAN Name Status Ports
----
-------------------------------- --------- -------------------------------
1
default
active Fa0/2, Fa0/3, Fa0/4,
Fa0/5
Fa0/6, Fa0/7, Fa0/8, Fa0/9
Fa0/11, Fa0/12, Fa0/13, Fa0/14
Fa0/15, Fa0/16, Fa0/17, Fa0/18
Fa0/19, Fa0/21, Fa0/22, Fa0/23
Fa0/24, Gig1/1, Gig1/2
2 alejandra active Fa0/1
3 segundo active Fa0/10
4 sanchez active Fa0/20
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
VLAN Type SAID
MTU Parent RingNo BridgeNo
Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------
------ -------- ---- -------- ------ ------
1
enet 100001 1500
- - -
- - 0
0
2
enet 100002 1500
- - -
- - 0
0
3
enet 100003 1500
- - -
- - 0
0
--More--
Router>
Router>en
Router#config
t
Enter
configuration commands, one per line.
End with CNTL/Z.
Router(config)#interface
fa0/0
Router(config-if)#no
shut
Router(config-if)#exit
Router(config)#interface
fa0/1
Router(config-if)#no
shut
Router(config-if)#exit
Router(config)#interface
eth1/0
Router(config-if)#no
shut
Router(config-if)#exit
Router(config)#exit
Router#config
t
Router(config)#interface
eth1/0.2
Router(config-subif)#encapsulation
dot1q 2
Router(config-subif)#ip
address 192.168.1.33
%
Incomplete command.
Router(config-subif)#ip
address 192.168.1.33 255.255.255.224
Router(config-subif)#exit
Router(config)#interface
eth1/0.3
Router(config-subif)#
Router(config-subif)#encapsulation
dot1q 3
Router(config-subif)#ip
address 192.168.3.1 255.255.255.224
Router(config-subif)#exit
Router(config)#interface
eth1/0.4
Router(config-subif)#encapsulation
dot1q 4
Router(config-subif)#ip
address 192.168.4.1 255.255.255.224
Router(config-subif)#exit
Router(config)#interface
fa0/0.2
Router(config-subif)#
Router(config-subif)#encapsulation
dot1q 2
Router(config-subif)#ip
address 192.168.1.34 255.255.255.224
%
192.168.1.32 overlaps with Ethernet1/0.2
Router(config-subif)#
Router(config-subif)#ip
address 192.168.1.4 255.255.255.224
Router(config-subif)#exit
No hay comentarios:
Publicar un comentario