martes, 27 de diciembre de 2011

Fijar Hora

Configuracion de zona horaria y como se fija el tiempo, cuando se presenta un reinicio del router el tiempo se detiene y vuelve a iniciar el reiniciar el router.

set system time-zone america/bogota
set date 201103291105.55

set date aaaammddhhmm.ss

FTP JUNIPER

Commando para enviar via FTP el archivo de configuracion desde un router Juniper hacis un servidor FTP, todos los campos no son obligatorios sin embargo entre mas completa sea la informacion considero es mejor.
Este comando se ejecuta desde el modo de usuario sin entrar al modo de configuracion.
usuario@nombre_del_router>file copy /config/juniper.conf.1.gz ftp://usuario:contraseña@ip_servidor_ftp source-address LAN
Aca hay dos campos de usuario, no son el mismo. El primero el el usario con el que se accede al router y el segundo es el usuario del FTP.
Igualmente se debe tenr un servidor FTP cnfigurado donde queremos que se descarge el archivo, configurando correctamente el usuario y la carpeta donde se descargara la configuracion.

lunes, 26 de diciembre de 2011

PING

_______________________________________________________________
REALIZANDO UN PING DESDE UN ROUTER CISCO CON 100 REPETICIONES
_______________________________________________________________

ROUTER#ping X.X.X.X repeat 100
Type escape sequence to abort.Sending 100, 100-byte ICMP Echos to X.X.X.X, timeout is 2 seconds:!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Success rate is 100 percent (100/100), round-trip min/avg/max = 1/1/4 ms

_______________________________________________________________
REALIZANDO UN PING DESDE UN ROUTER JUNIPER CON 100 REPETICIONES
_______________________________________________________________
USUARIO@ROUTER> ping X.X.X.X rapid count 100
PING X.X.X.X (X.X.X.X): 56 data bytes!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
--- X.X.X.X ping statistics ---100 packets transmitted, 100 packets received, 0% packet lossround-trip min/avg/max/stddev = 30.345/32.798/39.103/1.910 ms
____________
COMENTARIOS
____________
Para realizar las 100 repeticiones se utilizan los comandos repeat en Cisco y count en Juniper
En juniper se utliza el comando Rapid para tener la misma salidad que se tiene con Cisco.

Si no lo ejecutaramos el count el ping seria infinito y para detenerlo deberiamos usar los camandos de parada control/C.

viernes, 23 de diciembre de 2011

COMANDOS

Cisco Command
Juniper Command
show run
sh configuration
sh ver
sh ver
show ip interface brief
show interface terse
show interface [intfc]
show interfaces [intfc] detail
show controller intfc
show interfaces intfc extensive
show interface incl (protoDesc)
show interfaces description
show ip route
show route
show ip bgp summary
show bgp summary
show ip bgp net mask
show route protocol bgp prefix
show ip bgp net mask longer-prefixes
show route range prefix
show ip bgp regexp AS-regexp
show route aspath-regexp "AS-regexp"
show ip bgp neighbors neigh received-routes
show route receive-protocol bgp neigh

show route source-gateway neigh protocol bgp
show ip bgp neighbor neigh advertised-routes
show route advertising-protocol bgp neigh
show clns neighbors
show isis adjacency
show clns interface
show isis interface
show ip route isis
show isis routes
show isis topology
show isis spf
show ip ospf interface
show ospf neighbor
show ip ospf interface
show ospf interface
show ip route ospf
show ospf route
show ip ospf database
show ospf database
show version
show version, show system uptime
show diags
show chasis hardware
show processes cpu
show system process
show tech-support
request support info
show logging
show log messages
show route-map name
show policy name
show ip prefix-list name
show policy name
show ip community-list list
configure,
show policy-options community name
show environment all
show chassis environment
ping dest
ping dest rapid (for cisco like output)
ping dest (for unix like output)
ping (setting source int)
ping dest bypass-routing
terminal monitor
monitor start messages
terminal no monitor
monitor stop
terminal length 0
set cli screen-length 0

martes, 20 de diciembre de 2011

Tabla ARP en Junos

Para ver las entradas ARP en JUNOS show arp no-resolve, se puede obviar el no-resolve pero se demora mas en la resolucion.

Mi primer aporte

En cisco IOS utilizo regularmente el comando show ip accounting, pero en juniper no encontre algo que me diera la misma salida. Verificando varias opciones la mas parecida es show security flow session.

En IOS la salida es:

Source Destination Packets Bytes
172.16.17.4 172.16.11.30 188354 36848028
172.16.11.18 172.24.1.17 30699 1841940

En Junos la salida es:

Session ID: 15882, Policy name: default-permit/5, Timeout: 1798, Valid
In: 172.16.6.219/1698 --> 10.10.10.253/49155;tcp, If: fe-0/0/0.0, Pkts: 295, Bytes: 31516 Out: 10.10.10.253/49155 --> 172.16.6.219/1698;tcp, If: fe-0/0/1.0, Pkts: 260, Bytes: 33237