Documente Academic
Documente Profesional
Documente Cultură
Ejercicio 1
Se crean tres redes VLAN en un switch, posteriormente se comunican mediante un router. La topologa es la siguiente.
Red/Mascara
172.16.12.0 /24
172.16.13.0 /24
172.16.14.0 /24
Nombre
Sistemas
Desarrollo
Redes
Solucion
Equipo Direccion
de Red
Gateway
PC0
172.16.12.11
255.255.255.0
172.16.12.1
PC1
172.16.12.12
255.255.255.0
172.16.12.1
PC2
172.16.13.11
255.255.255.0
172.16.13.1
PC3
172.16.13.12
255.255.255.0
172.16.13.1
PC4
172.16.14.11
255.255.255.0
172.16.14.1
PC5
172.16.14.12
255.255.255.0
172.16.14.1
Name
-------------------------------default
Sistemas
Status
--------active
active
13
Desarrollo
active
14
Redes
active
1002 fddi-default
1003 token-ring-default
1004 fddinet-default
1005 trnet-default
...
Switch#
Ports
------------------------------Fa0/22, Fa0/23, Fa0/24
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
act/unsup
act/unsup
act/unsup
act/unsup
from
from
from
from
172.16.12.12:
172.16.12.12:
172.16.12.12:
172.16.12.12:
bytes=32
bytes=32
bytes=32
bytes=32
time=2ms
time=0ms
time=0ms
time=0ms
TTL=128
TTL=128
TTL=128
TTL=128
from
from
from
from
172.16.12.1:
172.16.12.1:
172.16.12.1:
172.16.12.1:
bytes=32
bytes=32
bytes=32
bytes=32
time=54ms TTL=255
time=0ms TTL=255
time=0ms TTL=255
time=0ms TTL=255
Reply
Reply
Reply
Reply
from
from
from
from
172.16.13.1:
172.16.13.1:
172.16.13.1:
172.16.13.1:
bytes=32
bytes=32
bytes=32
bytes=32
time=1ms
time=0ms
time=0ms
time=0ms
TTL=255
TTL=255
TTL=255
TTL=255
from
from
from
from
172.16.14.1:
172.16.14.1:
172.16.14.1:
172.16.14.1:
bytes=32
bytes=32
bytes=32
bytes=32
time=1ms
time=1ms
time=0ms
time=1ms
TTL=255
TTL=255
TTL=255
TTL=255
--------------------------------------------------------------------PC>ping 172.16.14.11
Pinging 172.16.14.11 with 32 bytes of data:
Request timed out.
Reply from 172.16.14.11: bytes=32 time=12ms TTL=127
Reply from 172.16.14.11: bytes=32 time=12ms TTL=127
Reply from 172.16.14.11: bytes=32 time=11ms TTL=127
Ping statistics for 172.16.14.11:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 11ms, Maximum = 12ms, Average = 11ms
PC>
Ejercicio 2
Se crean tres redes VLAN en la topologa siguiente.
Solucion
Configuramos todos los switches para que sean parte del dominio EJE02
---------------------------------------------------------------------Switch 0
---------------------------------------------------------------------Switch>enable
Switch#vlan database
Switch(vlan)#vtp domain EJE02
Switch(vlan)#exit
Switch#
---------------------------------------------------------------------Switch 1
---------------------------------------------------------------------Switch>enable
Switch#vlan database
Switch(vlan)#vtp domain EJE02
Switch(vlan)#exit
Switch#exit
---------------------------------------------------------------------Switch 2
---------------------------------------------------------------------Switch>enable
Switch#vlan database
Switch(vlan)#vtp domain EJE02
Switch(vlan)#exit
Switch#exit
---------------------------------------------------------------------Switch 3
---------------------------------------------------------------------Switch>enable
Switch#vlan database
Switch(vlan)#vtp domain EJE02
Switch(vlan)#exit
Switch#exit
---------------------------------------------------------------------Switch 4
---------------------------------------------------------------------Switch>enable
Switch#vlan database
Switch(vlan)#vtp domain EJE02
Switch(vlan)#exit
Switch#exit
Configuramos el Switch 0 como servidor VTP
Switch#vlan database
Switch(vlan)#vtp server
Device mode already VTP SERVER.
Switch(vlan)#exit
Switch#
switches como clientes VTP
Configuramos los demas
-------------------------------------------------Switch 1
-------------------------------------------------Switch#vlan database
Switch(vlan)#vtp client
Setting device to VTP CLIENT mode.
Switch(vlan)#exit
Switch#
-------------------------------------------------Switch 2
-------------------------------------------------Switch#vlan database
Switch(vlan)#vtp client
8
Fa0/15
1002
1003
1004
1005
fddi-default
token-ring-default
fddinet-default
trnet-default
act/unsup
act/unsup
act/unsup
act/unsup
Switch#
Configuramos en todos los switches, menos en el ultimo
los puertos 21 a 24 como troncales,
Por ejemplo, ejecutando el comando en el Switch 4 obtenemos (se muestra un listado parcial):
Switch#show 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
10
VLAN0010
active
20
VLAN0020
active
30
VLAN0030
active
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup
1005 trnet-default
act/unsup
...
Switch#
Asignamos los puertos respectivos a cada VLAN en cada switch
-----------------------------------------------------------Switch 1
-----------------------------------------------------------Switch#configure terminal
Switch(config)#interface range fastethernet 0/1-5
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#no shutdown
Switch(config-if-range)#exit
Switch(config)#interface range fastethernet 0/6-10
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#no shutdown
Switch(config-if-range)#exit
Switch(config)#interface range fastethernet 0/11-15
Switch(config-if-range)#switchport access vlan 30
Switch(config-if-range)#no shutdown
Switch(config-if-range)#exit
Switch(config)#
-----------------------------------------------------------Switch 2
-----------------------------------------------------------Switch#configure terminal
Switch(config)#interface range fastethernet 0/1-5
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#no shutdown
Switch(config-if-range)#exit
Switch(config)#interface range fastethernet 0/6-10
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#no shutdown
Switch(config-if-range)#exit
Switch(config)#interface range fastethernet 0/11-15
Switch(config-if-range)#switchport access vlan 30
11
Switch(config-if-range)#no shutdown
Switch(config-if-range)#exit
Switch(config)#
-----------------------------------------------------------Switch 3
-----------------------------------------------------------Switch#configure terminal
Switch(config)#interface range fastethernet 0/1-5
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#no shutdown
Switch(config-if-range)#exit
Switch(config)#interface range fastethernet 0/6-10
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#no shutdown
Switch(config-if-range)#exit
Switch(config)#interface range fastethernet 0/11-15
Switch(config-if-range)#switchport access vlan 30
Switch(config-if-range)#no shutdown
Switch(config-if-range)#exit
Switch(config)#
-----------------------------------------------------------Switch 4
-----------------------------------------------------------Switch#configure terminal
Switch(config)#interface range fastethernet 0/1-5
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#no shutdown
Switch(config-if-range)#exit
Switch(config)#interface range fastethernet 0/6-10
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#no shutdown
Switch(config-if-range)#exit
Switch(config)#interface range fastethernet 0/11-15
Switch(config-if-range)#switchport access vlan 30
Switch(config-if-range)#no shutdown
Switch(config-if-range)#exit
Switch(config)#
Equipo
Direccion IP
Mascara de Red
Gateway
PC0
192.168.10.11
255.255.255.0
192.168.10.1
PC1
192.168.20.11
255.255.255.0
192.168.20.1
PC2
192.168.30.11
255.255.255.0
192.168.30.1
PC3
192.168.20.12
255.255.255.0
192.168.20.1
PC4
192.168.30.12
255.255.255.0
192.168.30.1
PC5
192.168.10.12
255.255.255.0
192.168.10.1
PC6
192.168.20.13
255.255.255.0
192.168.20.1
PC7
192.168.10.13
255.255.255.0
192.168.10.1
PC8
192.168.20.14
255.255.255.0
192.168.20.1
PC9
192.168.30.13
255.255.255.0
192.168.30.1
PC10
192.168.10.14
255.255.255.0
192.168.10.1
12
Priority
Address
Hello Time
Aging Time
Interface
Role Sts Cost
Prio.Nbr Type
---------------- ---- --- --------- -------- -------------------------------Fa0/21
Desg FWD 19
128.21
P2p
13
Fa0/22
Fa0/23
Fa0/24
Desg FWD 19
Desg FWD 19
Desg FWD 19
128.22
128.23
128.24
P2p
P2p
P2p
VLAN0010
Spanning tree enabled protocol ieee
Root ID
Priority
24586
Address
0060.2FD1.01AD
This bridge is the root
Hello Time 2 sec Max Age 20 sec
Bridge ID
Priority
Address
Hello Time
Aging Time
Interface
---------------Fa0/1
Fa0/21
Fa0/22
Fa0/23
Fa0/24
Role
---Desg
Desg
Desg
Desg
Desg
Sts
--FWD
FWD
FWD
FWD
FWD
Cost
--------19
19
19
19
19
Prio.Nbr
-------128.1
128.21
128.22
128.23
128.24
Type
-------------------------------P2p
P2p
P2p
P2p
P2p
VLAN0020
Spanning tree enabled protocol ieee
Root ID
Priority
24596
Address
0060.2FD1.01AD
This bridge is the root
Hello Time 2 sec Max Age 20 sec
Bridge ID
Priority
Address
Hello Time
Aging Time
Interface
---------------Fa0/6
Fa0/21
Fa0/22
Fa0/23
Fa0/24
Role
---Desg
Desg
Desg
Desg
Desg
Priority
Address
Sts
--FWD
FWD
FWD
FWD
FWD
Cost
--------19
19
19
19
19
Prio.Nbr
-------128.6
128.21
128.22
128.23
128.24
Type
-------------------------------P2p
P2p
P2p
P2p
P2p
VLAN0030
Spanning tree enabled protocol ieee
Root ID
Priority
24606
Address
0060.2FD1.01AD
This bridge is the root
Hello Time 2 sec Max Age 20 sec
Bridge ID
14
Hello Time
Aging Time
Interface
---------------Fa0/21
Fa0/22
Fa0/23
Fa0/24
Fa0/11
Role
---Desg
Desg
Desg
Desg
Desg
2 sec
20
Sts
--FWD
FWD
FWD
FWD
FWD
Cost
--------19
19
19
19
19
Prio.Nbr
-------128.21
128.22
128.23
128.24
128.11
Type
-------------------------------P2p
P2p
P2p
P2p
P2p
Switch#
Configuramos el puerto 20 del Switch 0 como troncal, ya que este enlace conecta al router con
el switch 0
Switch>enable
Switch#configure terminal
Switch(config)#interface fastethernet 0/20
Switch(config-if)#switchport mode trunk
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config-if)#
En el router creamos una subinterfaz por cada VLAN transportada en el enlace trunk (interfaz fa
0/0 del router):
Router#configure terminal
Router(config)#interface fastethernet 0/0
Router(config-if)#no ip address
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface fastethernet 0/0.1
Router(config-subif)#encapsulation dot1q 10
Router(config-subif)#ip address 192.168.10.1 255.255.255.0
Router(config-subif)#no shutdown
Router(config-subif)#exit
Router(config)#interface fastethernet 0/0.2
Router(config-subif)#encapsulation dot1q 20
Router(config-subif)#ip address 192.168.20.1 255.255.255.0
Router(config-subif)#no shutdown
Router(config-subif)#exit
Router(config)#interface fastethernet 0/0.3
Router(config-subif)#encapsulation dot1q 30
Router(config-subif)#ip address 192.168.30.1 255.255.255.0
Router(config-subif)#no shutdown
Router(config-subif)#exit
Router(config)#
Router#
entre todas las maquinas
Comprobamos la conexion
(Los valores pueden variar de una computadora a otra)
------------------------------------------------------15
from
from
from
from
192.168.10.12:
192.168.10.12:
192.168.10.12:
192.168.10.12:
bytes=32
bytes=32
bytes=32
bytes=32
time=14ms
time=11ms
time=11ms
time=12ms
TTL=128
TTL=128
TTL=128
TTL=128
from
from
from
from
192.168.10.1:
192.168.10.1:
192.168.10.1:
192.168.10.1:
bytes=32
bytes=32
bytes=32
bytes=32
time=4ms
time=4ms
time=1ms
time=3ms
TTL=255
TTL=255
TTL=255
TTL=255
from
from
from
from
192.168.20.1:
192.168.20.1:
192.168.20.1:
192.168.20.1:
bytes=32
bytes=32
bytes=32
bytes=32
time=1ms
time=0ms
time=0ms
time=0ms
TTL=255
TTL=255
TTL=255
TTL=255
16
from
from
from
from
192.168.30.1:
192.168.30.1:
192.168.30.1:
192.168.30.1:
bytes=32
bytes=32
bytes=32
bytes=32
time=47ms TTL=255
time=0ms TTL=255
time=0ms TTL=255
time=0ms TTL=255
17
18