Vous êtes sur la page 1sur 36

IOS

 

show clock

show version

sh license

show running-config

show running-config

show runn | inclute prefix

 

show users

 

show users clear line vty 0

username bruno privilege 15 password 1234

send

 

show tech-support

show ip interface brief

show interface gi0/1

 

show interface description (newer IOS)

show controller interface

show runn config interface g0/1

 
 
 
 
 
 

show diags

show environment all

show history

write erase / erase startup-config

 

ping dest

ping (setting source int)

 
 
 
 

reload

 
 
 
 
 
 
 
 
 
 

clear counters

clear arp-cache

clock set

show arp

show ip route

show logging

show processes cpu

terminal length 0

terminal monitor

terminal no monitor

show ip traffic

show route-map

show route-map mapname
show route-map mapname
 
 
 
 
 
 
 
 
 

ip route 0.0.0.0 0.0.0.0 10.0.0.1

 
 

show clns interface

show clns neighbors

show ip route isis

show isis topology

 
 

sh bgp ipv6 summary / show bgp ipv6 unicast

show ip bgp neighbor peer advertised-routes

show ip bgp neighbors neigh received-routes

show ip bgp peer-group

show ip bgp peer-group group

show ip bgp network mask

show ip bgp network mask longer-prefixes

show ip bgp regexp regex

show ip bgp summary

clear ip bgp

clear ip bgp neighbor

 
 

show ip ospf database

show ip ospf neighbor

show ip ospf interface

show ip route ospf

 
 

show ipv6 neighbors

show ipv6 route

show tcp brief

show ip ospf database show ip ospf neighbor show ip ospf interface show ip route ospf

IOS and JunOS commands

JunOS

show system uptime

show version

show system license

show configuration

show configuration | display set

show configuration | display set | match "prefix"

Basic Shows

Usuários

show system users set system root-authentication plain-text-password request system logout user adilson all

set system login user bruno full-name "Bruno Nunes" class super-user authentication plain-text-password request message

request support info

show interface terse

Suporte - Tac

show interfaces ge-0/0/1 detail

Interfaces

show interfaces description

show interfaces interface extensive

show configuration interfaces ge-0/0/1 show configuration interfaces ge-0/0/1 | display set

set interfaces lo0.1 family inet address 192.168.30.1/24

show interfaces ge-0/0/1 statistics show interfaces ge-0/0/1.0 media show interfaces ge-0/0/1 extensive

monitor interface ge-0/0/1

show chassis hardware

show chassis environment

show cli history

load factory-default

ping dest rapid (for cisco like output) ping dest bypass-routing ping rapid count 1000 size 1400 x.x.x.x ping x.x.x.x bypass-routing interface so-1/0/2 count 1000 size 1400 rapid

Reiniciar ou Desligar Devices

request system reboot request system halt

Processos Junos

user@host> restart routing user@host>restart web-management

show system processes show system processes extensive show system processes detail

Gerenciamento

set system services ssh

set system services telnet

set system services web-management http set system services web-management https

clear interface statistics clear arp set date show arp

show route

show log messages

show system process

set cli screen-length 0

monitor start messages

monitor stop

show system statistic

show policy

show policy name mapname

Shows de diagnóstico

show chassis routing-engine

show system processes extensive

show chassis forwarding

Tracing - Debug

help topic interface

help reference help reference interface

help apropos

Help Types

help syslog help syslog ACCT_ACCOUNTING_FERROR

commit check

commit confirm commit comment commit and-quit

configure ou edit

configure exclusive

configure private

Commit Types

Configure Types

rollback

rollback 0

Roolback Types

Rescue - "Configuração de Resgate"

user@host> request system configuration rescue save

user@host# rollback rescue

user@host> request system configuration rescue delete

Static Route

admin@# set routing-options static route 0.0.0.0/0 next-hop 10.0.0.1

show isis interface

show isis adjacency

ISIS

show isis routes / show route protocol isis

show isis spf brief

show bgp summary

BGP

show route advertising-protocol bgp peer

show route receive-protocol bgp peer

show bgp group

show bgp group group

show route protocol bgp prefix

show route range prefix

show route aspath-regexp “regex”

show bgp summary clear bgp neighbor

clear bgp neighbor peer

deactivate protocols bgp group BGP neighbor 10.10.10.1

show ospf database

show ospf neighbor

show ospf interface

show ospf route / show route protocol ospf

show ipv6 neighbors

show route table inet6.0

show system connection

OSPF

IPV6

TCP DUMP - FLOW - USANDO EM SRX show security flow session interface reth1.179 destination-prefix 200.198.220.136 show security flow session interface reth1.179 source-prefix 200.198.220.136

Atalhos - Shortcuts

show ospf database show ospf neighbor show ospf interface show ospf route / show route protocol

mparação

Propósito

 

Display current date

Information about running software release (IOS also shows hardware infos)

Mostrar Licença

Mostra a configuração - neste modo no Junos de forma hierárquica.

Mostra a configuração no modo de linha inteira, parecido com cisco

Mostra a configuração filtrando apenas o desejado "prefix" no exemplo

 

Mostrar usuários logados

Definir senha de root - Obrigatório

Deslogar usuário com sessão presa

Criar novo usuário

Envia mensagem para usuários logados

 

Displays a lot of information. Often needed for TAC request.

Displays IPv4 addresses per interface (in JunOS: IPv6 and ISO as well)

Shows interface configuration, counters and status

 

Shows description, status and interface name

Displays physical port informations

Exibe apenas a configuração de uma interface.

No Junos Só é possível criar uma interface Loopback0 porém nessa interface podemos adicionar diversos Ips

 
 
 

estastística em tempo real

 

Displays hardware diagnostics and status

Infos about Voltage, Power consumption, Temperature,…

Shows recent entered commands

Resets to factory defaults. IOS requires reload, JunOS needs a “commit”

 

Simple Ping

Ping with specific source interface

 
 
 
 

Reboot the system

Desliga a caixa corretamente

 
 
 
 
 
 
 
 
 

Clears the interface counters

Clears the ARP cache

Set the actual time

Shows ARP cache

Displays the global routing table

Shows infos about loghost (IOS only) and local buffered log file content

Displays CPU utilization

Continous output to terminal without more- breaks

Start logging to terminal (when connected remotely)

Stop logging to terminal (when connected remotely)

Shows infos about IP related traffic (BGP, EIGRP, PIM, ARP, ICMP)

Shows all configured route-maps (JunOS also shows Prefix-Lists,…)

Shows content of route-map mapname

 
 
 
 
 
 
 
 
 
 

todos os itens em interface que eu posso estudar

Reference material outra forma de explicação

Find help information about a topic

Lhe ajuda a interpretar um erro encontrado no Log

 
 

Verifica a consistência da configuração. Verifica a sintaxe se está correta ou não

 
 
 
 
 

Modo de configuração - Comum Compartilha a configuração candidata com demais usuários Caso seja comitado, você comita as alterações de todos os users, não somente o que você configurou

Obtain exclusive lock (other users cannot make changes) Lock da configuração candidata

Você inicia a configuração somente pra você - qualquer outra pessoa que logar na caixa não vai conseguir comitar- quando eu uso o configure exclusive somente eu tenho permissão de comitar.

Work in private database (other's changes do not show)

Você começa a editar uma cópia da configuração candidata Ninguem irá saber o que você está configurando mesmo que execute o comando show | compare Quando você comita, somente a sua alteração é comitada. mesmo que exista outro usuário fazendo configurações.

 
 

descarta a ultima alteração feita

 
 

Cria o arquivo de rescue

Efetuar roolback do arquivo rescue

Deleta o arquivo de rescue

 
 

Exemplo de Rota padrão

 
 

Shows IS-IS information from participating interfaces

Shows ES-IS and IS-IS neighbors

Display only IS-IS originated routes

Shows the resulting IS-IS topology table after spf calculation

 
 

Displays IPv6 BGP neighbors

Shows whether a neighbor supports the route refresh capabilty

Shows whether a neighbor supports the route refresh capability

Displays BGP informations about all peer- groups

Displays BGP informations about a specific peer-group

BGP informations about a specific prefix

BGP informations about a specific prefix as well as longer prefixes

Shows routes matching AS path filter regex

Shows all BGP IPv4 neighbors

Clears all BGP sessions

Clears BGP session to a specifis neighbor

desativa a sessão bgp para este neighbor

 

Shows the OSPF database

Displays all OSPF neighbors

Shows OSPF informations for the interface (e.g. state, dead time,…)

Display only OSPF originated routes

 

Display discovered IPv6 neighbors

Display IPv6 routing table

Shows established TCP connections from/to router (BGP, SSH, Telnet,…)

Shows the OSPF database Displays all OSPF neighbors Shows OSPF informations for the interface (e.g. state,
 

Quanto tepo a caixa está ligada ?

Versão

 

Mostrar Configuração

 
 
 

Suporte - Tac

 

Interaces

 

Ideal para ambientes críticos - Mais utilizado.

Bastante utilizado.

Geralmente usuado em ambiente critico - o rescue configuration deve ter a configuração minima necessária para restabelecer a gerencia - IP, Gerencia, Roteament etc.