Commit inicial automático

This commit is contained in:
2025-11-28 00:29:42 -03:00
commit 5cd1348e69
513 changed files with 18638 additions and 0 deletions
+149
View File
@@ -0,0 +1,149 @@
# Contingência
Este documento contém informações e procedimentos a serem executados somente em situações de emergência.
## Links de Internet
Ambos os data centers (PR01 e SP01) possuem seus links de internet redundantes, com operadoras e roteadores distintos.
Cada data center opera em modo "ativo x ativo" de forma totalmente independente, replicando as informações entre si.
Desta forma, cada data center possui o seu respectivo bloco IP divulgado publicamente através do protocolo BGP.
- __PR01__: 177.11.20.0/23
- __SP01__: 177.11.22.0/23
Os data centers possuem 2 roteadores responsáveis pelo roteamento BGP ao qual trabalham balanceando o tráfego entre os links de cada operadora.
Desta forma, caso ocorra alguma falha com um link de um data center, todo o tráfego será direcionado para o link que está ativo, garantindo o funcionamento de todo o ambiente de forma automatizada e transparente aos usuários.
Em casos de emergência pode ser necessário tomar algumas ações manuais, afim de estabilizar o funcionamento do ambiente.
### Link Intermitente.
Existem situações onde o link pode ficar intermitente (falha / ativo), nestes casos quando um link falhar, todo o tráfego daquele data center será direcionado para o outro link e quando o link ficar ativo, as rotas serão propagadas e consequentemente o link começará a receber tráfego novamente.
Se o link ficar intermitente, o usuário ficará recebendo novas rotas e com isso o acesso aos sistemas IPM se tornarão instáveis.
Afim de estabilizar o acesso aos sistemas IPM, podemos tomar a ação de derrubar o link que está intermitente, até que a operadora restabeleça o serviço.
#### Procedimentos
- __Data Center de Curitiba/PR (PR01)__
><i>Primeiro, deve-se identicar o link com falha, onde, várias evidências estarão disponíveis no monitoramento via `Dude` e via `Zabbix`.</i>
- __Data Center de Curitiba/PR (SP01)__
__A DOCUMENTAR__
```
# Operação em roteadores
Desativar Link da Algar
Conectar no roteador "pr01-rt-algar01" - "192.168.24.5"
Colocar a VLAN 3 em modo "Shutdown"
pr01-rt-algar01# configure terminal
pr01-rt-algar01 (config)# interface Port-channel1.3
pr01-rt-algar01 (config-subif)# shutdown
pr01-rt-algar01 (config-subif)# exit
pr01-rt-algar01 (config)# exit
Conferir Roteamento BGP
pr01-rt-algar01# sh ip bgp sum
BGP router identifier 177.11.20.33, local AS number 262295
BGP table version is 671612696, main routing table version 671612696
976476 network entries using 242166048 bytes of memory
976483 path entries using 132801688 bytes of memory
141537/141535 BGP path/bestpath attribute entries using 39630360 bytes of memory
124681 BGP AS-PATH entries using 6798530 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 421396626 total bytes of memory
6 received paths for inbound soft reconfiguration
BGP activity 14404110/13427634 prefixes, 127162975/126186492 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
100.110.98.2 4 16735 0 0 1 0 0 03:10:02 Idle
177.11.20.42 4 262295 36318226 100069862 671612696 0 0 33w4d 976475
177.11.20.43 4 262295 0 0 1 0 0 never Idle (Admin)
177.11.20.44 4 262295 0 0 1 0 0 never Idle (Admin)
Ativar Link da Algar
Conectar no roteador "pr01-rt-algar01" - "192.168.24.5"
Colocar a VLAN 3 em modo "Ativo"
pr01-rt-algar01# configure terminal
pr01-rt-algar01 (config)# interface Port-channel1.3
pr01-rt-algar01 (config-subif)# no shutdown
pr01-rt-algar01 (config-subif)# exit
pr01-rt-algar01 (config)# exit
Conferir Roteamento
pr01-rt-algar01#sh ip bgp sum
BGP router identifier 177.11.20.33, local AS number 262295
BGP table version is 669109255, main routing table version 669109255
982451 network entries using 243647848 bytes of memory
1474994 path entries using 200599184 bytes of memory
220229/145791 BGP path/bestpath attribute entries using 61664120 bytes of memory
191502 BGP AS-PATH entries using 9829366 bytes of memory
1509 BGP community entries using 324938 bytes of memory
126 BGP extended community entries using 12924 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 516078380 total bytes of memory
2 received paths for inbound soft reconfiguration
BGP activity 14398233/13415760 prefixes, 126034559/124559569 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
100.110.98.2 4 16735 146222 22 669109255 0 0 00:07:26 981390
177.11.20.42 4 262295 36141286 99872135 669109290 0 0 33w4d 493595
177.11.20.43 4 262295 0 0 1 0 0 never Idle (Admin)
177.11.20.44 4 262295 0 0 1 0 0 never Idle (Admin)
```
Em casos extremos, onde é necessário fazer com que o link de um data center torne o outro data center visível na internet, através do LAN to LAN.
```
# pr01-rt-algar01
router bgp 262295
no neighbor 177.11.20.43 shutdown
no neighbor 177.11.20.44 shutdown
address-family ipv4
network 177.11.20.0 mask 255.255.252.0
# pr01-rt-vivo01
router bgp 262295
no neighbor 177.11.20.43 shutdown
no neighbor 177.11.20.44 shutdown
address-family ipv4
network 177.11.20.0 mask 255.255.252.0
# Palo Alto
Network > Virtual Routers > OSPF > Export Rules
########################
# sp01-rt-ascenty01
router bgp 262295
no neighbor 177.11.20.41 shutdown
no neighbor 177.11.20.42 shutdown
address-family ipv4
network 177.11.20.0 mask 255.255.252.0
# sp01-rt-ascenty02
router bgp 262295
no neighbor 177.11.20.41 shutdown
no neighbor 177.11.20.42 shutdown
address-family ipv4
network 177.11.20.0 mask 255.255.252.0
# Palo Alto
Network > Virtual Routers > OSPF > Export Rules
```
![PA3220_Virtual_Router_PR01](../img/pa3220_virtual_routers_ospf_export_pr01.png)
![PA3220_Virtual_Router_SP01](../img/pa3220_virtual_routers_ospf_export_sp01.png)