-
Notifications
You must be signed in to change notification settings - Fork 0
/
Etapa-003-ConfiguracaoGatewaySVI.txt
108 lines (82 loc) · 4.9 KB
/
Etapa-003-ConfiguracaoGatewaySVI.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
!Autor: Robson Vaamonde
!Procedimentos em TI: http://procedimentosemti.com.br
!Bora para Prática: http://boraparapratica.com.br
!Robson Vaamonde: http://vaamonde.com.br
!Facebook Procedimentos em TI: https://www.facebook.com/ProcedimentosEmTi
!Facebook Bora para Prática: https://www.facebook.com/BoraParaPratica
!Instagram Procedimentos em TI: https://www.instagram.com/procedimentoem
!YouTUBE Bora Para Prática: https://www.youtube.com/boraparapratica
!Data de criação: 18/04/2020
!Data de atualização: 07/12/2021
!Versão: 0.04
!Testado e homologado no Cisco Packet Tracer 7.3.x e 8.0.x e GNS3 2.2.x
!Acessando o modo EXEC Privilegiado
enable
!Acessando o modo de Configuração Global de comandos
configure terminal
!Configuração do Gateway padrão IPv4 no Switch
!DICA: configuração do Gateway IPv4 em Switch Layer 2 serve somente para acesso remoto (monitoramento/gerenciamento)
!DICA: Switch Layer 3 o recurso de Gateway é utilizado tanto para acesso remoto ou para roteamento de redes/gateway
!OBSERVAÇÃO: esse recurso é necessário para administração remota ou monitoramento do Switch Layer 2
!OBSERVAÇÃO: existe a possibilidade da configuração do Gateway utilizando o endereço IPv6 em Switch Layer 2
ip default-gateway 192.168.1.254
!Configuração da Interface Virtual do Switch SVI (Switch Virtual Interface)
!DICA: interfaces virtuais são criadas utilizando o recurso de VLAN (Virtual-LAN) do Switch Layer 2 ou 3
!DICA: é recomendado utilizar outra VLAN para o SVI, não é recomendado utilizar a VLAN padrão 1 para essa finalidade
!OBSERVAÇÃO: em Switch Layer 2 utilizamos o SVI somente para administração remota ou monitoramento
!OBSERVAÇÃO: o SVI é necessário para o acesso remoto via Linhas Virtuais (VTY) utilizando os protocolos Telnet ou SSH
interface vlan 1
!Configuração da Descrição da Interface Virtual VLAN-1
!DICA: sempre utilizar o comando: description nas Interfaces para efeito de documentação
!OBSERVAÇÃO: documentação de Interfaces facilita o processo de identificação e função dela na rede
description Interface de Gerenciamento do Switch SW-L2-2960-1
!Configuração do Endereçamento IPv4 da Interface Virtual VLAN-1
!DICA: o endereço IPv4 deve ser da mesma faixa de rede do Gateway Padrão utilizado na rede
!DICA: é recomendado que os endereços de rede dos Switches sejam de redes diferentes dos desktops
!OBSERVAÇÃO: configuração do endereço IPv4 deve ser: IP + Máscara de Rede Completa, não utilizar CIDR
ip address 192.168.1.250 255.255.255.0
!Inicializando a Interface Virtual da VLAN-1
!DICA: por padrão todas as Interfaces estão no status desligada (Shutdown) no Switch ou Router
!DICA: por padrão todas as Portas de Rede estão no status ligada (No-Shutdown) no Switch
!OBSERVAÇÃO: o comando: no também é utilizado para ligar as interfaces tirando do status shutdown
no shutdown
!Saindo de todos os níveis é voltando para o modo EXEC Privilegiado
!DICA: somente no modo EXEC Privilegiado você tem o comando copy para salvar as configurações
!DICA: existe o comando: do, esse recurso permite executar comandos fora do seu nível padrão
!EXEMPLO: sw-l2-2960-1(config-line)# do copy running-config startup-config |
!sw-l2-2960-1(config-line)# do show running-config | sw-l2-2960-1(config-line)# do write
end
!Salvando as configurações da memória RAM (Running-Config) para a memória NVRAM (Startup-Config)
copy running-config startup-config
!Visualizando as configurações da memória RAM (Running-Config)
show running-config
!Visualizando as configurações das VLAN's padrão do Switch
show vlan brief
!Visualizando as configurações das interfaces e portas de rede do Switch
show ip interface brief
==============================================================================================
!Automação da configuração do Switch 2
!Acessando o modo EXEC Privilegiado
enable
!Acessando o modo de Configuração Global de comandos
configure terminal
!Configuração do Gateway padrão IPv4 no Switch
ip default-gateway 192.168.1.254
!Configuração da Interface Virtual do Switch SVI
interface vlan 1
!Configuração da Descrição da Interface Virtual
description Interface de Gerenciamento do Switch SW-L2-2960-2
!Configuração do Endereçamento IPv4 da Interface Virtual
ip address 192.168.1.251 255.255.255.0
!Inicializando a Interface Virtual do Switch
no shutdown
!Saindo de todos os níveis e voltando para o modo EXEC Privilegiado
end
!Salvando as configurações da memória RAM para a memória NVRAM
write
!Visualizando as configurações da memória RAM
show running-config
!Visualizando as configurações das VLAN padrão do Switch
show vlan brief
!Visualizando as configurações das interfaces e portas de rede do Switch
show ip interface brief