Una vlan es un método para crear varias redes lógicas independientes e una red física.
Una vlan es una red de computadores que se comportan como si estuvieran conectados al mismo route, aunque pueden en realidad estar conectados en diferentes redes locales.
VLANs quedará:
• VLAN4: 192.168.4.0/24.
• Switch0: puertos 1 al 9.
• Switch1: puertos 1 al 9.
• VLAN5: 192.168.5.0/24.
• Switch0: puertos 9, 10, 12.
• Switch1: puertos 10 al 14.
• TRUNK
• Switch0: fastEthernet 0/11, gigabitEthernet 1/1.
• Switch1: gigabitEthernet 1/1.
• Router0: fastEthernet 0/0.
Se crean las vlans
DAY(config)# interface vlan 4
DAY (config-if)# description Vlan4
DAY (config-if)# no shutdown
DAY (config)# interface vlan 5
DAY (config-if)# description Vlan5
DAY (config-if)# no shutdown
TECH(config)# interface vlan 4
TECH (config-if)# description Vlan4
TECH (config-if)# no shutdown
TECH (config)# interface vlan 5
TECH (config-if)# description Vlan5
TECH (config-if)# no shutdown
Se ponen los puertos alas vlans
DAY(config)#interface range fastEthernet 0/1 - fastEthernet 0/8
DAY (config-if-range)#switchport mode access
DAY (config-if-range)#switchport access vlan 4
DAY (config-if-range)#exit
DAY (config)#interface range fastEthernet 0/9, fastEthernet 0/10, fastEthernet0/12
DAY (config-if-range)#switchport mode access
DAY (config-if-range)#switchport access vlan 5
DAY (config-if-range)#exit
TECH(config)#interface range fastEthernet 0/1 - fastEthernet 0/9
TECH (config-if-range)#switchport mode access
TECH (config-if-range)#switchport access vlan 4
TECH (config-if-range)#exit
TECH (config)#interface range fastEthernet 0/10 - fastEthernet 0/14
TECH (config-if-range)#switchport mode access
TECH (config-if-range)#switchport access vlan 5
TECH (config-if-range)#exit
Se configuran los puertos de los trunk
DAY(config)#interface fastEthernet 0/11
DAY (config-if)#switchport mode trunk
DAY (config-if)#switchport trunk encapsulation dot1q
DAY (config-if)#switchport trunk allowed vlan 4,5
DAY (config-if)#exit
DAY (config)#interface gigabitEthernet 1/1
DAY (config-if)#switchport mode trunk
DAY (config-if)#switchport trunk encapsulation dot1q
DAY (config-if)#switchport trunk allowed vlan 4,5
DAY (config-if)#exit
sw1(config)#interface gigabitEthernet 1/1
sw1(config-if)#switchport mode trunk
sw0(config-if)#switchport trunk encapsulation dot1q
sw1(config-if)#switchport trunk allowed vlan 4,5
sw1(config-if)#exit
Enrutamiento entre las vlan ( esto va en el router)
central(config)#interface fastEthernet 0/0
central(config-if)#no shutdown
central(config-if)#exit
central(config)# interface fastEthernet 0/0.4
central(config-if)# encapsulation dot1Q 4
central(config-if)# ip address 192.168.4.1 255.255.255.0
exit
central(config)# interface fastEthernet 0/0.5
central(config-if)# encapsulation dot1Q 5
central(config-if)# ip address 192.168.5.1 255.255.255.0
exit
Verificamos is las vlans están bien
sw1#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/15, Fa0/16, Fa0/17, Fa0/18
Fa0/19, Fa0/20, Fa0/21, Fa0/22
Fa0/23, Fa0/24, Gig1/2
4 VLAN0004 active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9
5 VLAN0005 active Fa0/10, Fa0/11, Fa0/12, Fa0/13
Fa0/14
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
sw1#show vlan id 4
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
4 VLAN0004 active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
4 enet 100004 1500 - - - - - 0 0
DAY#show interfaces vlan 4
Vlan4 is up, line protocol is up
Hardware is CPU Interface, address is 0007.ecaa.64a6 (bia 0007.ecaa.64a6)
MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input 21:40:21, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
1682 packets input, 530955 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicast)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
563859 packets output, 0 bytes, 0 underruns
0 output errors, 23 interface resets
0 output buffer failures, 0 output buffers swapped out
TECH#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Gig1/1 on 802.1q trunking 1
Port Vlans allowed on trunk
Gig1/1 4-5
Port Vlans allowed and active in management domain
Gig1/1 4,5
Port Vlans in spanning tree forwarding state and not pruned
Gig1/1 4,5
0 comentarios:
Publicar un comentario