Entrar no shell do FRR
vtysh
Entrar no modo privilegiado
enable
Entrar no modo de configuração global
configure terminal
Sair de níveis de configuração
exit
Sair totalmente do vtysh
end
Mostrar ajuda
?
---
## Sistema
Mostrar versão do FRR
show version
Mostrar status do sistema FRR
show system
Mostrar configuração ativa
show running-config
Salvar configuração
write memory
Reiniciar serviço FRR (Linux)
systemctl restart frr
Ver status do serviço
systemctl status frr
---
## Interfaces
Mostrar interfaces e IPs
show interface
Mostrar resumo das interfaces IP
show ip interface brief
Entrar na interface
interface eth0
Adicionar IP na interface
ip address 192.168.1.1/24
Ativar interface (Linux)
no shutdown
Desativar interface
shutdown
---
## Roteamento
Mostrar tabela de rotas IPv4
show ip route
Mostrar rotas conectadas
show ip route connected
Mostrar rotas estáticas
show ip route static
Adicionar rota estática
ip route 0.0.0.0/0 192.168.1.1
---
## BGP
Mostrar resumo BGP
show ip bgp summary
Mostrar tabela BGP
show ip bgp
Mostrar vizinhos BGP
show ip bgp neighbors
Mostrar vizinho específico
show ip bgp neighbors 10.0.0.1
Resetar sessão BGP
clear ip bgp 10.0.0.1
Resetar todas sessões BGP
clear ip bgp *
---
## OSPF
Mostrar status OSPF
show ip ospf
Mostrar vizinhos OSPF
show ip ospf neighbor
Mostrar banco LSDB
show ip ospf database
Mostrar interfaces OSPF
show ip ospf interface
Mostrar rotas OSPF
show ip route ospf
---
## OSPFv3 (IPv6)
Mostrar status OSPFv3
show ipv6 ospf6
Mostrar vizinhos OSPFv3
show ipv6 ospf6 neighbor
Mostrar rotas OSPFv3
show ipv6 route ospf6
---
## VRF
Mostrar VRFs
show vrf
Mostrar rotas em VRF
show ip route vrf NOME_VRF
---
## Diagnóstico
Ping
ping 8.8.8.8
Traceroute
traceroute 8.8.8.8
Ver ARP
ip neigh
Ver CPU e processos FRR
top
Ver logs do FRR
journalctl -u frr -f
---
## Debug
Ativar debug BGP
debug bgp updates
Ativar debug OSPF
debug ospf events
Desativar debug
no debug all
---
## Configuração básica
Entrar no modo configuração
configure terminal
Configurar hostname
hostname ROUTER-01
Criar loopback
interface lo
ip address 1.1.1.1/32



