Just another problem

Cisco – Ordenar ‘sh ip cache verbose flow’ usando awk

Posted in cisco by Adriano on 26/02/2010

cat cacheflow.txt | awk ‘{line=$0; line = substr(line,1,length(line)-1); getline; print line ” ” $0;}’ > saida.txt

Tagged with:

Cisco: domain-lookup

Posted in tech by Adriano on 02/07/2008

Para disabilitar o domain-lookup apenas para a sessão atual, use

terminal no domain-lookup

Tagged with:

Cisco: Guia de Comandos

Posted in tech by Adriano on 30/06/2008

Um guia para cada modo de configuração: basta usar o comando show parser dump. Digite show parser dump <mode>, usando um dos modos de configuração (ex., interface, router…):

RouterA#sh parser dump router
 Mode Name :router
0 no protocol shutdown
0 no mpls ldp sync
0 no mpls ldp autoconfig area <address>
0 no mpls ldp autoconfig area <0-4294967295>
0 no mpls ldp autoconfig
0 no mpls traffic-eng router-id
0 no mpls traffic-eng multicast-intact
0 no mpls traffic-eng area <0-4294967295>
0 no mpls traffic-eng scanner interval
0 no mpls traffic-eng scanner max-flash
0 no mpls traffic-eng scanner
0 no mpls traffic-eng level-1
0 no mpls traffic-eng level-2
0 no mpls traffic-eng
0 no max-area-addresses
0 no net <address>
0 no is-type
...

Para um maior detalhe, use o parametro extend.

fonte: http://www.ciscoblog.com/archives/2008/06/cisco_command_r.html

Tagged with:

Cisco: Envio de rotas através de tunel – GRE + OSPF

Posted in tech by Adriano on 13/06/2008

ROUTER A – Anuncia a rota default:

!
interface Tunnel0
 description Tunnel to RouterB
 ip unnumbered Loopback0
 ip tcp adjust-mss 1436
 ip ospf 50 area 0
 tunnel source Loopback0
 tunnel destination 10.2.2.2
!
router ospf 50
 router-id 10.1.1.1
 log-adjacency-changes
 passive-interface default
 no passive-interface Tunnel0
 default-information originate
!

ROUTER B – Recebe a rota defaul via ospf:

!
interface Tunnel0
 description Tunnel to RouterB
 ip unnumbered Loopback0
 ip tcp adjust-mss 1436
 ip ospf 50 area 0
 tunnel source Loopback0
 tunnel destination 10.1.1.1
!
router ospf 50
 router-id 10.2.2.2
 log-adjacency-changes
 passive-interface default
 no passive-interface Tunnel0
 distance 1
!

Distance = 1 faz com que a rota default recebida por este processo OSPF tenha preferência sobre qualquer outro protocolo.

Não foi usado o comando ‘keepalive’ no tunel pois há o keepalive (hello packets) do ospf.

Tagged with: , , ,