Desafio 1 – V-LANs, VTP, VLSM e EtherChannel
Olá pessoal, tenho andado muito ocupado com trabalho e faculdade, por isso andei meio sumido, mais como meu curso acabou resolvi fazer este post com uma topologia para configurarmos.
O desafio consiste no seguinte:
Endereçamento dos hosts para as V-lans indicadas.
Rede: 172.16.22.0/20
Vlans:
122 – Alunos – 150 hosts
222 – ADM – 80 hosts
322 – LAB – 12 hosts
422 – Biblio – 30 hosts
1 – default
Configurar dominio VTP conforme indicado.
Dominio VTP: UNIFEB, senha: cisco
Os switches indicados deverão ser configurados como
Server e os demais como Client
Configurar os etherchannels indicados
A partir de qualquer computador deverá ser
possivel acessar os switches para realizar
configurações.
É isso ai pessoal, o desafio está lançado, dia 11/12 postarei os Confs de cada Switch e o Roteador.
Podem postar seus confs deixando nos comentários deste post.
Segue o arquivo .PKT sem configurações para que não precisem montar a topologia do zero
http://www.4shared.com/file/2Hyr79zy/Desafio_01.html
É isso ai pessoal, bons estudos!!!!
Resolução:
1º Passo: Nomear cada elemento da nossa topologia conforme a figura
Ex: SW1, SW2, H1, H2, R1, NT1, NT2, etc…
2º Passo: Endereçamento (VLSM)
################# Endereçamento dos hosts para as V-lans indicadas #################
Rede com máscara /20 ( intervalo 16 sub-redes com 4094 Hosts )
172.16.22.0/20 – 172.16.37.255/20
Como não precisaremos de tantos hosts assim, faremos adivisão conforme exemplificado abaixo
VLAN 122 – Alunos 150 hosts 172.16.22.0/24 – 0 a 256
VLAN 222 – ADM 80 hosts 172.16.23.0/25 – 0 a 128
VLAN 422 – BIBLIO 30 hosts 172.16.23.128/27 – 128 a 160
VLAN 322 – LAB 12 hosts 172.16.23.160/28 – 160 a 176
VLAN 1 – DEFAULT 13 hosts 172.16.23.176/28 – 176 a 192
Para atender nosso exercicio precisaremos apenas das redes 172.16.22.XX/XX e 172.16.23.XX/XX
3º Passo:
################# Configurando IP’s da VLAN Default em todos os Switchs e no Router #################
OBS: Gateway de cada v-lan iremos setar o ultimo IP válido de cada SUB-REDE na configuração do Roteador
###### Para a segurança dos dispositivos habilitaremos usuario e senha para TELNET e SSH ############
SW1
conf t
hostname SW1
ip default-gateway 172.16.23.190
interface vlan 1
ip address 172.16.23.177 255.255.255.240
no shut
SW2
conf t
hostname SW2
ip default-gateway 172.16.23.190
interface vlan 1
ip address 172.16.23.178 255.255.255.240
no shut
SW3
conf t
hostname SW3
ip default-gateway 172.16.23.190
interface vlan 1
ip address 172.16.23.179 255.255.255.240
no shut
SW4
conf t
hostname SW4
ip default-gateway 172.16.23.190
interface vlan 1
ip address 172.16.23.180 255.255.255.240
no shut
SW5
conf t
hostname SW5
ip default-gateway 172.16.23.190
interface vlan 1
ip address 172.16.23.181 255.255.255.240
no shut
SW6
conf t
hostname SW6
ip default-gateway 172.16.23.190
interface vlan 1
ip address 172.16.23.182 255.255.255.240
no shut
SW7
conf t
hostname SW7
ip default-gateway 172.16.23.190
interface vlan 1
ip address 172.16.23.183 255.255.255.240
no shut
SW8
conf t
hostname SW8
ip default-gateway 172.16.23.190
interface vlan 1
ip address 172.16.23.184 255.255.255.240
no shut
SW9
conf t
hostname SW9
ip default-gateway 172.16.23.190
interface vlan 1
ip address 172.16.23.185 255.255.255.240
no shut
SW10
conf t
hostname SW10
ip default-gateway 172.16.23.190
interface vlan 1
ip address 172.16.23.186 255.255.255.240
no shut
SW11
conf t
hostname SW11
ip default-gateway 172.16.23.190
interface vlan 1
ip address 172.16.23.187 255.255.255.240
no shut
SW12
conf t
hostname SW12
ip default-gateway 172.16.23.190
interface vlan 1
ip address 172.16.23.188 255.255.255.240
no shut
SW13
conf t
hostname SW13
ip default-gateway 172.16.23.190
interface vlan 1
ip address 172.16.23.189 255.255.255.240
no shut
#################### SEGURANÇA DOS ELEMENTOS #########################
#################### Habilitanto conexao SSH ao roteador####################
hostname R1
ip domain-name redes.com.br
crypto key generate rsa
username admin privilege 15 secret cisco
username netsecurity privilege 7 secret cisco
line vty 0 4
login local
transport input ssh
4º Passo:
################# Configurar o Roteador para fazer a comunicação entre V-Lans #################
R1
interface gigabitEthernet 0/0.1
encapsulation dot1Q 1
ip address 172.16.23.190 255.255.255.240
interface gigabitEthernet 0/0.122
encapsulation dot1Q 122
ip address 172.16.22.254 255.255.255.0
interface gigabitEthernet 1/0.222
encapsulation dot1Q 222
ip address 172.16.23.126 255.255.255.128
interface gigabitEthernet 0/0.322
encapsulation dot1Q 322
ip address 172.16.23.174 255.255.255.240
interface gigabitEthernet 1/0.422
encapsulation dot1Q 422
ip address 172.16.23.158 255.255.255.224
interface gigabitEthernet 0/0
NO SHUT
interface gigabitEthernet 1/0
NO SHUT
5º Passo: Configurar os IP’s em cada Host obedecendo a divisão de sub-redes para as V-lans
############### IP’s dos HOSTS ###############
HOST IP Gateway V-lan
NT1 172.16.22.1/24 Gw .254 Alunos
NT2 172.16.23.129/27 Gw .158 Biblio
NT3 172.16.22.2/24 Gw .254 Alunos
H1 172.16.23.130/27 Gw .158 Biblio
H2 172.16.22.3/24 Gw .254 Alunos
H3 172.16.23.131/27 Gw .158 Biblio
H4 172.16.23.1/25 Gw .126 adm
H5 172.16.22.4/24 Gw .254 Alunos
H6 172.16.22.5/24 Gw .254 Alunos
H7 172.16.23.2/25 Gw .126 adm
H8 172.16.22.6/24 Gw .254 Alunos
H9 172.16.23.132/27 Gw .158 Biblio
H10 172.16.22.7/24 Gw .254 Alunos
H11 172.16.23.3/25 Gw .126 adm
H12 172.16.23.4/25 Gw .126 adm
H13 172.16.23.133/27 Gw .158 Biblio
H14 172.16.23.5/25 Gw .126 adm
H15 172.16.23.134/27 Gw .158 Biblio
6º Passo: Definindo o Peer-vlan Spanning Tree (PVST)
############### DEFININDO os Switchs que serão – STP Server e Secundário ###############
SW1
spanning-tree vlan 1 priority 4096
spanning-tree vlan 122 priority 4096
spanning-tree vlan 222 priority 4096
spanning-tree vlan 322 priority 4096
spanning-tree vlan 422 priority 4096
SW2
spanning-tree vlan 1 priority 8192
spanning-tree vlan 122 priority 8192
spanning-tree vlan 222 priority 8192
spanning-tree vlan 322 priority 8192
spanning-tree vlan 422 priority 8192
7º Passo:
############### Configurando o dominio VTP server nos SW1 e SW2 ###############
SW1
conf t
vtp mode server
vtp domain UNIFEB
vtp version 2
vtp password cisco
SW2
conf t
vtp mode server
vtp domain UNIFEB
vtp version 2
vtp password cisco
8º Passo:
############### Configurando As V-LANS solicitas nos SW1 e SW2 ###############
SW1
vlan 122
name ALUNOS
Vlan 222
name ADM
vlan 322
name LAB
vlan 422
name BIBLIO
SW2
vlan 122
name ALUNOS
Vlan 222
name ADM
vlan 322
name LAB
vlan 422
name BIBLIO
9º Passo:
############### DEFININDO o restante dos switchs para clients ###############
SW3 ao SW13
vtp mode client
vtp domain UNIFEB
vtp version 2
vtp password cisco
OBS: Ativando os Switchs em modo client eles receberam todas as configurações de V-lans pelos VTP Servers (SW1 e SW2)
10º Passo:
############### DEFININDO as int. TRUNK e ACESSO para a comunicação entre VLANS ###############
SW1
interface gigabitEthernet 0/1
switchport mode trunk
interface gigabitEthernet 1/1
switchport mode trunk
interface gigabitEthernet 2/1
switchport mode trunk
interface gigabitEthernet 3/1
switchport mode trunk
interface gigabitEthernet 4/1
switchport mode trunk
interface gigabitEthernet 5/1
switchport mode trunk
interface gigabitEthernet 6/1
switchport mode trunk
interface gigabitEthernet 7/1
switchport mode trunk
interface gigabitEthernet 8/1
switchport mode trunk
interface gigabitEthernet 9/1
switchport mode trunk
SW2
interface gigabitEthernet 0/1
switchport mode trunk
interface gigabitEthernet 1/1
switchport mode trunk
interface gigabitEthernet 2/1
switchport mode trunk
interface gigabitEthernet 3/1
switchport mode trunk
interface gigabitEthernet 4/1
switchport mode trunk
interface gigabitEthernet 5/1
switchport mode trunk
interface gigabitEthernet 6/1
switchport mode trunk
interface gigabitEthernet 7/1
switchport mode trunk
interface gigabitEthernet 8/1
switchport mode trunk
interface gigabitEthernet 9/1
switchport mode trunk
SW3
interface gigabitEthernet 0/1
switchport mode trunk
interface gigabitEthernet 1/1
switchport mode trunk
interface gigabitEthernet 2/1
switchport mode trunk
interface gigabitEthernet 3/1
switchport mode trunk
interface gigabitEthernet 4/1
switchport mode trunk
interface gigabitEthernet 5/1
switchport mode trunk
interface gigabitEthernet 7/1
switchport mode trunk
interface gigabitEthernet 6/1
switchport mode trunk
SW4
interface gigabitEthernet 0/1
switchport mode trunk
interface gigabitEthernet 1/1
switchport mode trunk
interface gigabitEthernet 4/1
switchport mode trunk
interface gigabitEthernet 5/1
switchport mode trunk
interface gigabitEthernet 3/1
switchport mode trunk
interface gigabitEthernet 7/1
switchport mode trunk
interface gigabitEthernet 2/1
switchport mode trunk
interface gigabitEthernet 6/1
switchport mode trunk
interface gigabitEthernet 9/1
switchport mode trunk
SW5
interface gigabitEthernet 0/1
switchport mode trunk
interface gigabitEthernet 1/1
switchport mode trunk
interface gigabitEthernet 4/1
switchport mode trunk
interface gigabitEthernet 5/1
switchport mode trunk
interface gigabitEthernet 3/1
switchport mode trunk
interface gigabitEthernet 2/1
switchport mode trunk
interface gigabitEthernet 6/1
switchport mode trunk
interface gigabitEthernet 7/1
switchport mode trunk
interface gigabitEthernet 8/1
switchport mode trunk
interface gigabitEthernet 9/1
switchport mode trunk
SW6
interface gigabitEthernet 0/1
switchport mode trunk
interface gigabitEthernet 1/1
switchport mode trunk
interface gigabitEthernet 2/1
switchport mode trunk
interface gigabitEthernet 3/1
switchport mode trunk
interface gigabitEthernet 4/1
switchport mode trunk
interface gigabitEthernet 5/1
switchport mode trunk
interface gigabitEthernet 6/1
switchport mode trunk
interface gigabitEthernet 7/1
switchport mode trunk
interface gigabitEthernet 8/1
switchport mode trunk
SW7
interface gigabitEthernet 1/1
switchport mode trunk
interface gigabitEthernet 1/2
switchport mode trunk
interface range fastEthernet 0/1-3
switchport mode access
interface fastEthernet 0/1
switchport access vlan 122
interface fastEthernet 0/2
switchport access vlan 422
interface fastEthernet 0/3
switchport access vlan 122
SW8
interface gigabitEthernet 1/1
switchport mode trunk
interface gigabitEthernet 1/2
switchport mode trunk
interface fastEthernet 0/1
switchport access vlan 422
switchport mode access
interface fastEthernet 0/2
switchport access vlan 122
switchport mode access
interface fastEthernet 0/4
switchport access vlan 422
switchport mode access
SW9
interface gigabitEthernet 1/1
switchport mode trunk
interface gigabitEthernet 1/2
switchport mode trunk
interface fastEthernet 0/1
switchport access vlan 222
switchport mode access
interface fastEthernet 0/2
switchport access vlan 122
switchport mode access
SW10
interface gigabitEthernet 1/1
switchport mode trunk
interface gigabitEthernet 1/2
switchport mode trunk
interface fastEthernet 0/1
switchport access vlan 122
switchport mode access
interface fastEthernet 0/2
switchport access vlan 222
switchport mode access
interface fastEthernet 0/3
switchport access vlan 122
switchport mode access
SW11
interface gigabitEthernet 1/1
switchport mode trunk
interface gigabitEthernet 1/2
switchport mode trunk
interface fastEthernet 0/1
switchport access vlan 422
switchport mode access
interface fastEthernet 0/2
switchport access vlan 122
switchport mode access
interface fastEthernet 0/3
switchport access vlan 222
switchport mode access
SW12
interface gigabitEthernet 1/1
switchport mode trunk
interface gigabitEthernet 1/2
switchport mode trunk
interface fastEthernet 0/1
switchport access vlan 222
switchport mode access
interface fastEthernet 0/2
switchport access vlan 422
switchport mode access
SW13
interface gigabitEthernet 1/1
switchport mode trunk
interface gigabitEthernet 1/2
switchport mode trunk
interface fastEthernet 0/1
switchport access vlan 222
switchport mode access
interface fastEthernet 0/2
switchport access vlan 422
switchport mode access
PASSO 11:
Faça todos os testes de ping ou outros protocolos pelo modo de simulação do Packet Tracer
Se você fez todas as configurações corretamente nesse momento todos os HOSTS devem se comunicar.
PASSO 12: Configurando o Etherchannel (Agregação de Links)
################ CONFIGURAÇÃO ETHERCHANNEL SW1 SW2 ####################
########################### LACP ###########################################
SW1
interface gigabitEthernet 0/1
channel-group 1 mode active
interface gigabitEthernet 1/1
channel-group 1 mode active
interface gigabitEthernet 2/1
channel-group 1 mode active
interface gigabitEthernet 3/1
channel-group 1 mode active
SW2
interface gigabitEthernet 0/1
channel-group 1 mode active
interface gigabitEthernet 1/1
channel-group 1 mode active
interface gigabitEthernet 2/1
channel-group 1 mode active
interface gigabitEthernet 3/1
channel-group 1 mode active
################ CONFIGURAÇÃO ETHERCHANNEL SW1 SW3 ####################
########################### LACP ###########################################
SW1
interface gigabitEthernet 4/1
channel-group 2 mode active
interface gigabitEthernet 5/1
channel-group 2 mode active
SW3
interface gigabitEthernet 4/1
channel-group 2 mode active
interface gigabitEthernet 5/1
channel-group 2 mode active
################ CONFIGURAÇÃO ETHERCHANNEL SW1 SW4 ####################
########################### LACP ###########################################
SW1
interface gigabitEthernet 6/1
channel-group 3 mode active
interface gigabitEthernet 7/1
channel-group 3 mode active
SW4
interface gigabitEthernet 4/1
channel-group 3 mode active
interface gigabitEthernet 5/1
channel-group 3 mode active
################ CONFIGURAÇÃO ETHERCHANNEL SW3 SW4 ####################
########################### PAgP ###########################################
SW3
interface gigabitEthernet 3/1
channel-group 4 mode desirable
interface gigabitEthernet 7/1
channel-group 4 mode desirable
do wr
SW4
interface gigabitEthernet 3/1
channel-group 4 mode desirable
interface gigabitEthernet 7/1
channel-group 4 mode desirable
do wr
################ CONFIGURAÇÃO ETHERCHANNEL SW2 SW5 ####################
########################### PAgP ###########################################
SW2
interface gigabitEthernet 4/1
channel-group 5 mode desirable
interface gigabitEthernet 5/1
channel-group 5 mode desirable
SW5
interface gigabitEthernet 4/1
channel-group 5 mode desirable
interface gigabitEthernet 5/1
channel-group 5 mode desirable
################ CONFIGURAÇÃO ETHERCHANNEL SW2 SW6 ####################
########################### PAgP ###########################################
SW2
interface gigabitEthernet 6/1
channel-group 6 mode desirable
interface gigabitEthernet 7/1
channel-group 6 mode desirable
SW6
interface gigabitEthernet 4/1
channel-group 6 mode desirable
interface gigabitEthernet 5/1
channel-group 6 mode desirable
################ CONFIGURAÇÃO ETHERCHANNEL SW5 SW6 ####################
########################### LACP ###########################################
SW5
interface gigabitEthernet 7/1
channel-group 1 mode active
interface gigabitEthernet 8/1
channel-group 1 mode active
SW6
interface gigabitEthernet 7/1
channel-group 1 mode active
interface gigabitEthernet 8/1
channel-group 1 mode active
OBS:
Atenção nos Channel-groups
SW5 SW10
SW5 SW11
SW6 SW12
SW6 SW13
############################################################################
A partir daqui o Packet Tracer apresentou problemas na Convergência, foi necessário remover o segundo link de cada conexão.
############################################################################
################ CONFIGURAÇÃO ETHERCHANNEL SW5 SW10 ###################
########################### PAgP ###########################################
SW5
interface gigabitEthernet 0/1
channel-group 6 mode desirable
interface gigabitEthernet 1/1
channel-group 6 mode desirable
SW10
interface gigabitEthernet 1/1
channel-group 6 mode desirable
interface gigabitEthernet 1/2
channel-group 6 mode desirable
################ CONFIGURAÇÃO ETHERCHANNEL SW5 SW11 ###################
########################### PAgP ###########################################
SW5
interface gigabitEthernet 2/1
channel-group 3 mode desirable
interface gigabitEthernet 3/1
channel-group 3 mode desirable
SW11
interface gigabitEthernet 1/1
channel-group 3 mode desirable
interface gigabitEthernet 1/2
channel-group 3 mode desirable
################ CONFIGURAÇÃO ETHERCHANNEL SW6 SW12 ###################
########################### LACP ###########################################
SW6
interface gigabitEthernet 0/1
channel-group 4 mode active
interface gigabitEthernet 1/1
channel-group 4 mode active
SW12
interface gigabitEthernet 1/1
channel-group 4 mode active
interface gigabitEthernet 1/2
channel-group 4 mode active
################ CONFIGURAÇÃO ETHERCHANNEL SW6 SW13 ###################
########################### LACP ###########################################
SW6
interface gigabitEthernet 3/1
channel-group 5 mode active
interface gigabitEthernet 2/1
channel-group 5 mode active
SW13
interface gigabitEthernet 1/2
channel-group 5 mode active
interface gigabitEthernet 1/1
channel-group 5 mode active
O Packet Tracer não consegue concluir a convergência quando ativado o Etherchannel nestas interfaces, e não consegui descobrir o problema, se alguem tiver uma ideia, poderia postar aqui.
Obrigado e até o proximo desafio!!!!
Fala aí Diogo blz!
Eu iniciei o curso CCNA pela Fundação Bradesco, e terminei o módulo 1 essa semana.
Estou esperando você postar as respostas desse desafio, pois as topologias que eu montei até presente momento foram simples, essa que você passou me parece um pouco complexa, pois ainda não estudei os protocolos VTP,LACP,PAGP, obrigado pela atenção um abraço.
Coincidência Rui, acabei de postar a resolução…. abraço e bons estudos, qualquer dúvida pode perguntar….
Diogo, baixei o lab porém qdo vou abrir meu pkt. diz que esse arquivo não é compatível com essa versão, uso o pkt. 5.3, poderia postar novamente o lab. obrigado.