Comandos Roteador Quagga

## Acesso / Modos Entrar no console Quagga (VTYSH)
 vtysh 
Entrar no modo privilegiado
 enable 
Entrar no modo de configuração global
 configure terminal 
Sair de um nível de configuração
 exit 
Sair totalmente do VTYSH
 end 
Mostrar ajuda
 ? 
--- ## Sistema Mostrar versão do Quagga
 show version 
Mostrar configuração ativa
 show running-config 
Salvar configuração
 write memory 
Reiniciar serviço Quagga
 service quagga restart 
Ver status do serviço
 service quagga status 
--- ## Interfaces Mostrar interfaces
 show interface 
Mostrar resumo de interfaces IP
 show ip interface brief 
Detalhe de interface
 show interface eth0 
Entrar em interface
 interface eth0 
Configurar IP na interface
 ip address 192.168.1.1/24 
Ativar interface
 no shutdown 
Desativar interface
 shutdown 
--- ## Rotas 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 Entrar no processo BGP
 router bgp 65001 
Configurar vizinho BGP
 neighbor 10.0.0.1 remote-as 65002 
Anunciar rede
 network 192.168.1.0/24 
Mostrar resumo BGP
 show ip bgp summary 
Mostrar tabela BGP
 show ip bgp 
Mostrar vizinhos
 show ip bgp neighbors 
Resetar sessão BGP
 clear ip bgp 10.0.0.1 
Resetar todas sessões
 clear ip bgp * 
--- ## OSPF Entrar no processo OSPF
 router ospf 
Adicionar rede no OSPF
 network 192.168.1.0/24 area 0 
Mostrar vizinhos OSPF
 show ip ospf neighbor 
Mostrar status OSPF
 show ip ospf 
Mostrar banco LSDB
 show ip ospf database 
--- ## RIP Entrar no RIP
 router rip 
Ativar RIP v2
 version 2 
Adicionar rede
 network 192.168.1.0/24 
Mostrar status RIP
 show ip rip 
--- ## Diagnóstico Ping
 ping 8.8.8.8 
Traceroute
 traceroute 8.8.8.8 
Ver ARP
 show ip arp 
Ver CPU/processos
 top 
Ver logs do Quagga
 tail -f /var/log/quagga/*.log 
--- ## Debug Ativar debug BGP
 debug bgp 
Ativar debug OSPF
 debug ospf 
Desativar debug geral
 undebug all 
--- ## Linux (junto com Quagga) Ver serviços
 systemctl status quagga 
Reiniciar Quagga
 systemctl restart quagga 
Ver rotas Linux
 ip route 
Ver interfaces
 ip addr show 
Captura de pacotes
 tcpdump -i eth0 

Leave A Comment