domingo, 20 de agosto de 2017

3 - VLANS PARTE 3

VLANS PARTE 3

Continuaremos a configuração de vlans mas agora usaremos um trunk para que os computadores dos dois switches possam se comunicar
.

Equipamentos necessários:

1 Router 1941

Topologia:

Usando a topologia passada iremos adicionar um roteador para fazer roteamento inter vlan pois os switches que adicionamos são L2.
No Router0:
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/1.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface GigabitEthernet0/1.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
!
interface GigabitEthernet0/1.30
encapsulation dot1Q 30
ip address 192.168.30.1 255.255.255.0

No Switch0:
interface GigabitEthernet0/2
switchport trunk allowed vlan 10,20,30

switchport mode trunk


No Switch0 alteramos os ips das interfaces vlans 10,20 e 30.

interface Vlan10
description Vlan10
ip address 192.168.10.253 255.255.255.0
!
interface Vlan20
description Vlan20
ip address 192.168.20.253 255.255.255.0
!
interface Vlan30
description Vlan30
ip address 192.168.30.253 255.255.255.0

!

No Router0 precisamos verificar se o CEF está ativado. Se não estiver, precisamos ativar no modo de configuração para otimizar o encaminhamento de pacotes.

Router0#conf t

Router0(config)#ip cef

A partir do PC0 iremos pingar os outros computadores e o gateway para testar o roteamento inter vlan:

C:\>ping 192.168.10.1 -n 1
Pinging 192.168.10.1 with 32 bytes of data:
Reply from 192.168.10.1: bytes=32 time=1ms TTL=255

C:\>ping 192.168.10.3 -n 1
Pinging 192.168.10.3 with 32 bytes of data:
Reply from 192.168.10.3: bytes=32 time=12ms TTL=128

C:\>ping 192.168.10.4 -n 1
Pinging 192.168.10.4 with 32 bytes of data:
Reply from 192.168.10.4: bytes=32 time=13ms TTL=128

C:\>ping 192.168.20.1 -n 1
Pinging 192.168.20.1 with 32 bytes of data:
Reply from 192.168.20.1: bytes=32 time=1ms TTL=255

C:\>ping 192.168.20.2 -n 1
Pinging 192.168.20.2 with 32 bytes of data:
Reply from 192.168.20.2: bytes=32 time<1ms TTL=127

C:\>ping 192.168.20.3 -n 1
Pinging 192.168.20.3 with 32 bytes of data:
Reply from 192.168.20.3: bytes=32 time<1ms TTL=127

C:\>ping 192.168.20.4 -n 1
Pinging 192.168.20.4 with 32 bytes of data:
Reply from 192.168.20.4: bytes=32 time=13ms TTL=127

C:\>ping 192.168.30.1 -n 1
Pinging 192.168.30.1 with 32 bytes of data:
Reply from 192.168.30.1: bytes=32 time=1ms TTL=255

C:\>ping 192.168.30.2 -n 1
Pinging 192.168.30.2 with 32 bytes of data:
Reply from 192.168.30.2: bytes=32 time=1ms TTL=127

C:\>ping 192.168.30.3 -n 1
Pinging 192.168.30.3 with 32 bytes of data:
Reply from 192.168.30.3: bytes=32 time=1ms TTL=127

C:\>ping 192.168.30.4 -n 1
Pinging 192.168.30.4 with 32 bytes of data:
Reply from 192.168.30.4: bytes=32 time=1ms TTL=127



Nenhum comentário:

Postar um comentário