comandos juniper

38
COMANDOS MÁS USUALES PARA JUNIPER 1

Upload: suciopolicia

Post on 02-Apr-2015

10.952 views

Category:

Documents


12 download

TRANSCRIPT

Page 1: Comandos Juniper

COMANDOS MÁS USUALES PARA JUNIPER

1

Page 2: Comandos Juniper

ÍNDICE

HARDWARE..................................................................................................................................2show system uptime.......................................................................................................................2show chassis alarms........................................................................................................................2show chassis craft-interface.............................................................................................................2show chassis environment...............................................................................................................2show chassis hardware....................................................................................................................2show chassis hardware extensive.....................................................................................................2show chassis routing-engine............................................................................................................2request routing-engine login re1......................................................................................................2request chassis routing-engine master switch....................................................................................2request chassis fpc slot # offline......................................................................................................2request chassis fpc slot # online.......................................................................................................2request chassis fpc slot # restart.......................................................................................................2request support information.............................................................................................................2

CONFIGURACIÓN........................................................................................................................2show version..................................................................................................................................2show configuration.........................................................................................................................2

INTERFACES.................................................................................................................................2show interfaces..............................................................................................................................2show interfaces terse.......................................................................................................................2monitor interface traffic..................................................................................................................2clear interfaces stastitics.................................................................................................................2

FIREWALL.....................................................................................................................................2show firewall.................................................................................................................................2

LOGS...............................................................................................................................................2show firewall log............................................................................................................................2show log user.................................................................................................................................2show log ?.....................................................................................................................................2

DNS Y NTP.....................................................................................................................................2show host www.cisco.com..............................................................................................................2show ntp associations.....................................................................................................................2show ntp status...............................................................................................................................2

IS-IS.................................................................................................................................................2show isis adjacency........................................................................................................................2show isis database..........................................................................................................................2show isis interface..........................................................................................................................2show isis route...............................................................................................................................2

BGP4................................................................................................................................................2show bgp group..............................................................................................................................2show bgp summary.........................................................................................................................2show bgp neighbor.........................................................................................................................2

RUTAS............................................................................................................................................2

2

Page 3: Comandos Juniper

show route.....................................................................................................................................2show route protocol local................................................................................................................2show route protocol direct...............................................................................................................2show route protocol isis..................................................................................................................2show route protocol isis extensive...................................................................................................2show route protocol bgp..................................................................................................................2show route protocol bgp damping suppressed...................................................................................2show route protocol bgp aspath-regex ".* 12715"............................................................................2show route protocol bgp source-gateway 213.140.32.1.....................................................................2show route protocol bgp receive-protocol bgp 213.140.32.1..............................................................2show route protocol bgp advertising-protocol bgp 213.140.32.1........................................................2show route receive-protocol bgp 213.140.39.13................................................................................2show route protocol bgp inactive.....................................................................................................2

MPLS...............................................................................................................................................2show mpls interface........................................................................................................................2show mpls lsp................................................................................................................................2show mpls path..............................................................................................................................2show ldp interface..........................................................................................................................2show ldp session............................................................................................................................2

PING Y TRACEROUTE.................................................................................................................2ping rapid 213.140.32.1 count 1000.................................................................................................2traceroute source 213.140.32.19 62.81.248.1....................................................................................2

SHELL / MONITOR.......................................................................................................................2start shell.......................................................................................................................................2monitor stop...................................................................................................................................2request system software add/var/home/javier/jbundle-4.4R1.5-export.tgz...........................................2configure.......................................................................................................................................2

PARADA / RELOAD DEL EQUIPO.............................................................................................2request system reboot.....................................................................................................................2request system halt.........................................................................................................................2

USUARIOS.....................................................................................................................................2show system users..........................................................................................................................2request system logout.....................................................................................................................2

ACTUALIZACIÓN DE JUNOS.....................................................................................................21. Copiamos la JUNOS a la RE de backup.......................................................................................2

file copy jbundle-4.3R2-export.tgz re1:/var/home/test...................................................................22. Copiamos la configuración actual a la RE de backup.....................................................................2

file copy /config/juniper.conf re1:/var/tmp/copied-juniper.conf.....................................................23. Accedemos a la RE de backup.....................................................................................................2

request routing-engine login re1..................................................................................................24. Activamos la configuración actual en la RE de backup..................................................................2

load replace /var/tmp/copied-juniper.conf....................................................................................2commit and quit.........................................................................................................................2

5. Hacemos un backup del sistema de archivos actual.......................................................................2request system snapshot..............................................................................................................2

6. Activamos la JUNOS en la RE de backup....................................................................................2

3

Page 4: Comandos Juniper

request system software add /var/home/test/jbundle-4.3R2-export.tgz delay-restart reboot.............27. Hacemos un backup del sistema de archivos actual.......................................................................2

request system snapshot..............................................................................................................28. Conmutamos de RE para que la de backup pase a ser la master y viceversa....................................2

request chassis routing-engine master switch................................................................................2

4

Page 5: Comandos Juniper

HARDWARE* Tiempo con el equipo "levantado"

show system uptimeCurrent time: 2001-05-28 14:24:59 UTCSystem booted: 2001-05-22 21:37:43 UTC (5d 16:47 ago)Protocols started: 2001-05-22 21:38:02 UTC (5d 16:46 ago)Last configured: 2001-05-24 08:33:30 UTC (4d 05:51 ago) 2:24PM up 5 days, 16:47, 1 user, load averages: 0.08, 0.07, 0.06

============================================

* Alarmas hardware

show chassis alarmsNo alarms are currently active

============================================

* Vista de la craft-interface

show chassis craft-interfaceFPM Display contents: +--------------------+ |GRTMADPE2 | |Up: 5+16:49 | | | |Fans OK | +--------------------+

Front Panel System LEDs:Host 0 1------------------------OK * *Fail . .Master * .

Front Panel Alarm Indicators:-----------------------------Red LED .Yellow LED .Major relay .Minor relay .

Front Panel FPC LEDs:

5

Page 6: Comandos Juniper

FPC 0 1 2 3 4 5 6 7------------------------------------Red . . . . . . . .Green . * * . . . * .

MCS, SFM, and PCG LEDs: MCS 0 1 SFM 0 1 2 3 PCG 0 1------------------------------------------------Amber . . . . . . . .Green * * * * * * * *Blue * . * * * * * .

============================================

* Estado de la temperatura, ventiladores, etc..

show chassis environmentClass Item Status MeasurementPower PEM 0 OK PEM 1 OKTemp PCG 0 OK 41 degrees C / 105 degrees F PCG 1 OK 48 degrees C / 118 degrees F Host 0 OK 24 degrees C / 75 degrees F Host 1 OK 23 degrees C / 73 degrees F MCS 0 OK 44 degrees C / 111 degrees F MCS 1 OK 48 degrees C / 118 degrees F SPP 0 OK 40 degrees C / 104 degrees F SPR 0 OK 42 degrees C / 107 degrees F SPP 1 OK 42 degrees C / 107 degrees F SPR 1 OK 44 degrees C / 111 degrees F SPP 2 OK 42 degrees C / 107 degrees F SPR 2 OK 41 degrees C / 105 degrees F SPP 3 OK 41 degrees C / 105 degrees F SPR 3 OK 38 degrees C / 100 degrees F FPC 1 OK 39 degrees C / 102 degrees F FPC 2 OK 34 degrees C / 93 degrees F FPC 6 OK 33 degrees C / 91 degrees F FPM CMB OK 24 degrees C / 75 degrees F FPM Display OK 26 degrees C / 78 degrees FFans Rear Bottom Blower OK Spinning at normal speed Rear Top Blower OK Spinning at normal speed Front Top Blower OK Spinning at normal speed Fan Tray Rear Left OK Spinning at normal speed Fan Tray Rear Right OK Spinning at normal speed Fan Tray Front Left OK Spinning at normal speed Fan Tray Front Right OK Spinning at normal speedMisc CIP OK

6

Page 7: Comandos Juniper

============================================

* Visión general de las tarjetas y hardware del equipo

show chassis hardwareHardware inventory:Item Version Part number Serial number DescriptionChassis 51274 M160Midplane REV 05 710-001245 AX3117FPM CMB REV 03 710-001642 AS9508FPM Display REV 02 710-001647 HD1620CIP REV 04 710-002649 HE0476PEM 0 Rev 04 740-001243 MB23580 Power Entry ModulePEM 1 Rev 04 740-001243 MB23554 Power Entry ModulePCG 0 REV 07 710-001568 HA1131PCG 1 REV 07 710-001568 HB3188Host 0 6c0000074a159a01 PresentHost 1 70000007c8722d01 PresentMCS 0 REV 11 710-001226 HA5237MCS 1 REV 11 710-001226 HA5445SFM 0 SPP REV 07 710-001228 HC9077SFM 0 SPR REV 05 710-002189 HB4711 Internet Processor IISFM 1 SPP REV 07 710-001228 HB6229SFM 1 SPR REV 05 710-002189 HD0940 Internet Processor IISFM 2 SPP REV 07 710-001228 HC9859SFM 2 SPR REV 05 710-002189 HE2283 Internet Processor IISFM 3 SPP REV 07 710-001228 HC9088SFM 3 SPR REV 04 710-002189 AV8561 Internet Processor IIFPC 1 REV 10 710-001255 HA3677 FPC Type 1 CPU REV 05 710-001217 HA3911 PIC 0 REV 02 750-002911 HD0274 4x F/E, 100 BASE-TX PIC 1 REV 05 750-001898 HB6980 1x OC-12 ATM, SMIR PIC 2 REV 05 750-001898 HC4889 1x OC-12 ATM, SMIR PIC 3 REV 04 750-003034 HC1864 4x STM-1 SDH, SMIRFPC 2 REV 10 710-001255 HA3879 FPC Type 1 CPU REV 05 710-001217 HA3740 PIC 0 REV 04 750-003034 HC9638 4x OC-3 SONET, SMIR PIC 1 REV 02 750-003032 HA0336 2x OC-3 ATM, SMIRFPC 6 REV 09 710-001611 HA3647 FPC Type 2 CPU REV 05 710-001217 HE4268 PIC 0 REV 11 750-001901 HA5160 4x OC-12 SONET, SMIR PIC 1 REV 01 750-002510 HA2910 2x G/E, 1000 BASE-SX

============================================

* Visiòn detallada del hardware del equipo( numero de serie,..)

show chassis hardware extensive

7

Page 8: Comandos Juniper

============================================

* Estado de la CPU de las REs

show chassis routing-engineRouting Engine status: Slot 0: Current state Master Election priority Master Temperature 24 degrees C / 75 degrees F DRAM 768 Mbytes CPU utilization: User 0 percent Background 0 percent Kernel 3 percent Interrupt 0 percent Idle 97 percent Serial ID 6c0000074a159a01 Start time 2001-05-22 21:37:43 UTC Uptime 5 days, 16 hours, 52 minutes, 37 seconds Load averages: 1 minute 5 minute 15 minute 0.06 0.07 0.06Routing Engine status: Slot 1: Current state Backup Election priority Backup Temperature 23 degrees C / 73 degrees F DRAM 768 Mbytes CPU utilization: User 0 percent Background 0 percent Kernel 1 percent Interrupt 0 percent Idle 99 percent Serial ID 70000007c8722d01 Start time 2001-05-22 21:31:25 UTC Uptime 5 days, 16 hours, 57 minutes, 41 seconds

8

Page 9: Comandos Juniper

============================================

* Acceder por login la otra routing engine

request routing-engine login re1

============================================

* Forzar el cambio de routing engine master de una a otra

request chassis routing-engine master switch

============================================

* Deshabilitar una FPC

request chassis fpc slot # offline

============================================

* habilitar una FPC

request chassis fpc slot # online

============================================

* Resetear una FPC

request chassis fpc slot # restart

============================================

* "show tech" de Juniper

request support informationHostname: GRTMADPE2Model: m160JUNOS base [4.4R1.5]JUNOS Kernel Software Suite [4.4R1.5]JUNOS Routing Software Suite [4.4R1.5]

9

Page 10: Comandos Juniper

JUNOS Packet Forwarding Engine Support [4.4R1.5]JUNOS Online Documentation Files [4.4R1.5]KERNEL 4.4R1.5 #0 built by builder on 2001-04-20 04:48:50 UTCMGD release 4.4R1.5 built by builder on 2001-04-20 05:17:18 UTCCLI release 4.4R1.5 built by builder on 2001-04-20 05:17:21 UTCCHASSISD release 4.4R1.5 built by builder on 2001-04-20 04:51:28 UTCDCD release 4.4R1.5 built by builder on 2001-04-20 04:48:59 UTCRPD release 4.4R1.5 built by builder on 2001-04-20 05:13:20 UTCSNMPD release 4.4R1.5 built by builder on 2001-04-20 04:49:52 UTCMIB2D release 4.4R1.5 built by builder on 2001-04-20 04:49:58 UTCAPSD release 4.4R1.5 built by builder on 2001-04-20 04:51:08 UTCVRRPD release 4.4R1.5 built by builder on 2001-04-20 04:51:11 UTCALARMD release 4.4R1.5 built by builder on 2001-04-20 04:51:22 UTCPFED release 4.4R1.5 built by builder on 2001-04-20 04:52:07 UTCCRAFTD release 4.4R1.5 built by builder on 2001-04-20 04:52:03 UTCSAMPLED release 4.4R1.5 built by builder on 2001-04-20 04:52:12 UTCILMID release 4.4R1.5 built by builder on 2001-04-20 04:52:20 UTCjkernel-dd release 4.4R1.5 built by builder on 2001-04-20 04:44:53 UTCjroute-dd release 4.4R1.5 built by builder on 2001-04-20 05:12:45 UTC

...

...

CONFIGURACIÓN* Version de JUNOS

show versionHostname: GRTMADPE2Model: m160JUNOS base [4.4R1.5]JUNOS Kernel Software Suite [4.4R1.5]JUNOS Routing Software Suite [4.4R1.5]JUNOS Packet Forwarding Engine Support [4.4R1.5]JUNOS Online Documentation Files [4.4R1.5]KERNEL 4.4R1.5 #0 built by builder on 2001-04-20 04:48:50 UTCMGD release 4.4R1.5 built by builder on 2001-04-20 05:17:18 UTCCLI release 4.4R1.5 built by builder on 2001-04-20 05:17:21 UTCCHASSISD release 4.4R1.5 built by builder on 2001-04-20 04:51:28 UTCDCD release 4.4R1.5 built by builder on 2001-04-20 04:48:59 UTCRPD release 4.4R1.5 built by builder on 2001-04-20 05:13:20 UTCSNMPD release 4.4R1.5 built by builder on 2001-04-20 04:49:52 UTCMIB2D release 4.4R1.5 built by builder on 2001-04-20 04:49:58 UTCAPSD release 4.4R1.5 built by builder on 2001-04-20 04:51:08 UTCVRRPD release 4.4R1.5 built by builder on 2001-04-20 04:51:11 UTCALARMD release 4.4R1.5 built by builder on 2001-04-20 04:51:22 UTCPFED release 4.4R1.5 built by builder on 2001-04-20 04:52:07 UTCCRAFTD release 4.4R1.5 built by builder on 2001-04-20 04:52:03 UTCSAMPLED release 4.4R1.5 built by builder on 2001-04-20 04:52:12 UTCILMID release 4.4R1.5 built by builder on 2001-04-20 04:52:20 UTC

10

Page 11: Comandos Juniper

jkernel-dd release 4.4R1.5 built by builder on 2001-04-20 04:44:53 UTCjroute-dd release 4.4R1.5 built by builder on 2001-04-20 05:12:45 UTCjdocs-dd release 4.4R1.5 built by builder on 2001-04-20 05:20:31 UTC

============================================

* Ver la configuracion actual

show configuration

INTERFACES

* Ver el estado de las interfaces

show interfacesPhysical interface: fe-1/0/0, Enabled, Physical link is Down Interface index: 18, SNMP ifIndex: 13 Description: CONEXION directa para SLAs entre GRTMADPE2 y GRRMADPE1 Link-level type: Ethernet, MTU: 1514, Speed: 100mbps, Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled Device flags : Present Running Down Interface flags: Hardware-Down SNMP-Traps Link flags : None Current address: 00:90:69:f1:08:7e, Hardware address: 00:90:69:f1:08:7e Input rate : 0 bps (0 pps), Output rate: 0 bps (0 pps) Active alarms : LINK Active defects : LINK

....

...============================================

* Visión general de los interfaces, estado, y direccionamiento

show interfaces terseInterface Admin Link Proto Local Remotefe-1/0/0 up downfe-1/0/1 up upfe-1/0/1.0 up up inet 213.140.40.130/28 isofe-1/0/2 up downfe-1/0/3 up downat-1/1/0 up downat-1/2/0 up down

11

Page 12: Comandos Juniper

so-1/3/0 up upso-1/3/0.0 up up inet 213.140.36.65/30 isoso-1/3/1 up upso-1/3/1.0 up up inet 213.140.36.73/30 isoso-1/3/2 up downso-1/3/3 up downso-2/0/0 up downso-2/0/1 up downso-2/0/2 up downso-2/0/3 up downat-2/1/0 up upat-2/1/1 up downso-6/0/0 up downso-6/0/1 up downso-6/0/2 up downso-6/0/3 up downge-6/1/0 up upge-6/1/0.0 up up inet 213.140.36.130/30 isoge-6/1/1 up downfxp0 up downfxp0.0 up down inetfxp1 up upfxp1.0 up up tnp 4fxp2 up upfxp2.0 up up tnp 4gre up upipip up uplo0 up uplo0.0 up up inet 213.140.32.19 --> 0/0 iso 49.0000.0000.329c.0001.d58c.2013.0000.00pimd up uppime up uptap up up

============================================

* Trafico de los interfaces en tiempo real

monitor interface traffic

clear interfaces stastitics

* Con el commando “clear interfaces statitics “podemos limpiar las estadísticas del Interface.

12

Page 13: Comandos Juniper

FIREWALL

* Filtros existentes

show firewallFilter/Counter Packet count Byte countin-ext-s-so-1/3/0in-ext-s-so-1/3/1out-ext-s-so-1/3/0out-ext-s-so-1/3/1loopback

13

Page 14: Comandos Juniper

LOGS* Log de paquetes filtrados

show firewall log

============================================

* Log de usuarios

show log user

============================================

* Ver cualquier tipo de log..

show log ?Possible completions: <[Enter]> Execute this command <filename> Log file to display access.aprobed Size: 107830, Last changed: May 24 08:33:37 access.dcd Size: 374351, Last changed: May 24 08:33:41 access.sampled Size: 478127, Last changed: May 24 08:33:48 aprobed Size: 0, Last changed: Mar 31 00:44:54 apsd Size: 24424, Last changed: May 24 08:33:42 chassisd Size: 470341, Last changed: May 28 14:30:01 dcd Size: 23675, Last changed: May 24 08:33:42 ilmid Size: 1145, Last changed: May 22 21:38:52 install Size: 742, Last changed: May 18 15:30:01 interface.log Size: 5066, Last changed: May 22 19:12:35 lastlog Size: 84028, Last changed: May 28 14:20:47 lpd-errs Size: 0, Last changed: Feb 22 05:59:12 maillog Size: 0, Last changed: Feb 22 05:59:12 mastership Size: 6939, Last changed: May 22 21:38:53 messages Size: 110563, Last changed: May 28 14:50:58 messages.0.gz Size: 6940, Last changed: May 28 10:00:00 messages.1.gz Size: 5725, Last changed: May 28 04:00:00 messages.10.gz Size: 6542, Last changed: May 25 22:00:00 messages.2.gz Size: 5825, Last changed: May 27 22:00:00 messages.3.gz Size: 5626, Last changed: May 27 16:00:00 messages.4.gz Size: 5781, Last changed: May 27 10:00:00 messages.5.gz Size: 5828, Last changed: May 27 04:00:00 messages.6.gz Size: 5688, Last changed: May 26 22:00:00 messages.7.gz Size: 5629, Last changed: May 26 16:00:00 messages.8.gz Size: 5829, Last changed: May 26 10:00:00 messages.9.gz Size: 6378, Last changed: May 26 04:00:00 mib2d Size: 9705, Last changed: May 24 08:33:42

14

Page 15: Comandos Juniper

ppp.log Size: 0, Last changed: Feb 22 05:59:12 sampled Size: 54550, Last changed: May 24 08:34:18 sendmail.st Size: 0, Last changed: Feb 22 05:58:40 slip.log Size: 0, Last changed: Feb 22 05:59:12 snapshot Size: 1475, Last changed: Mar 31 00:44:35 snmpd Size: 9200, Last changed: May 24 08:33:42 user Show recent user logins vrrpd Size: 934, Last changed: May 22.........

DNS Y NTP

* "Resolvedor" de nombres:

show host www.cisco.comwww.cisco.com has address 198.133.219.25

============================================

* NTP

show ntp associations***Can't find host localhost remote refid st t when poll reach delay offset disp==============================================================================*gsimadcic8.ri.t .GPS. 1 u 102 256 377 5.07 -0.761 0.63 213.140.34.136 0.0.0.0 16 u - 1024 0 0.00 0.000 16000.0

============================================

show ntp statusstatus=06f4 leap_none, sync_ntp, 15 events, event_peer/strat_chgsystem="JUNOS", leap=00, stratum=2, rootdelay=5.07, rootdispersion=6.97,peer=47468, refid=gsimadcic8.ri.telefonica-data.net,reftime=bebce4b3.cf3ec000 Mon, May 28 2001 14:52:35.809, poll=8,clock=bebce52e.392a8000 Mon, May 28 2001 14:54:38.223, phase=-0.761,freq=67856.05, error=0.63

15

Page 16: Comandos Juniper

IS-IS

* Vecinos de ISIS

show isis adjacencyIS-IS adjacency database:Interface System L State Hold (secs) SNPAfe-1/0/1.0 GRTMADPE1 2 Up 25 0:2:4a:98:ba:a9fe-1/0/1.0 GRRMADPE1 2 Up 25 0:3:e3:5e:f3:1ge-6/1/0.0 GRTMADPE1 2 Up 29 0:2:4a:98:bb:52

============================================

* Tabla de LSPs de ISIS

show isis databaseIS-IS level 1 link-state database: 0 LSPs

IS-IS level 2 link-state database:LSP ID Sequence Checksum Lifetime AttributesGRTHOUGC1.00-00 0x1ad1 0xdfd3 50207 L1 L2GRTMADRR1.00-00 0x883 0x5aac 61120 L1 L2GRTMADRR1.01-00 0x45 0x7589 34029 L1 L2GRTMADRR1.02-00 0x49 0x6693 32424 L1 L2GRTMADDE1.00-00 0x64c 0xd5ea 23408 L1 L2GRTMADDE1.01-00 0x48 0x7b6e 38300 L1 L2GRTMADDE1.02-00 0x4c 0x6c78 45471 L1 L2GRTMADPE1.00-00 0x586 0xc547 65405 L1 L2GRTMADPE2.00-00 0x93 0xec53 65415 L1 L2GRTMADPE2.02-00 0x84 0xc9c1 65415 L1 L2GRTMADPE2.03-00 0x69 0xd53c 65415 L1 L2GRTLONTL1.00-00 0x3d5 0xfba5 61116 L1 L2GRTLONTL1.02-00 0x107 0xd0b9 11037 L1 L2GRTLONTL2.00-00 0x209e 0x5d24 48788 L1 L2GRTLONTL2.01-00 0x46 0x9716 4017 L1 L2GRTLONTL2.02-00 0xadb 0x47c5 23182 L1 L2GRTROMAC1.00-00 0x164 0x9f84 41949 L1 L2GRTROMAC1.01-00 0x43 0x164e 15549 L1 L2GRTROMAC1.02-00 0x48 0x559 31996 L1 L2GRGMADCIC1.00-00 0xfd 0x604b 52048 L1 L2GRGMADCIC1.01-00 0xa3 0xef11 4693 L1 L2GRGMADCIC2.00-00 0x1ae 0xd3a7 38282 L1 L2GRGMADCIC2.01-00 0x74 0x42e5 4610 L1 L2GRTNYCCC1.00-00 0x322c 0x5935 37080 L1 L2GRTNYCCC1.01-00 0x46 0xa94b 44207 L1 L2GRTNYCCC1.02-00 0x4a 0x9a55 46888 L1 L2

16

Page 17: Comandos Juniper

GRTNYCNS1.00-00 0xcf 0xdab7 18445 L1 L2GRTNYCNS1.03-00 0x78 0x222 41132 L1 L2GRTNYCNS2.00-00 0x100 0x6cb4 4629 L1 L2GRTNYCNS2.01-00 0x52 0xdd74 62746 L1 L2GRTMTYTE1.00-00 0x14ad 0x3ca4 40311 L1 L2GRTMTYTE1.01-00 0x9 0x2843 63169 L1 L2GRTBUECI1.00-00 0x82 0x1ff1 39703 L1 L2GRTSAOLS2.00-00 0x86 0xb909 6335 L1 L2GRTSAOLS2.02-00 0x9 0x847d 58018 L1 L2GRTMIASD1.00-00 0x1462 0x2fd 23406 L1 L2GRTMIASD1.01-00 0x47 0x9274 8645 L1 L2GRTMIASD1.02-00 0x45 0x8f78 14446 L1 L2GRTMIATIC1.00-00 0x13a 0xfe5 39600 L1 L2GRRMADRR1.00-00 0x58 0x125f 26368 L1 L2GRRMADDE1.00-00 0x6e 0xdd3c 49534 L1 L2GRRMADPE1.00-00 0x58 0x517d 65404 L1 L2GRRMADPE1.01-00 0x1 0 0 L1 L2GRRMADPE1.02-00 0x4b 0x617d 58514 L1 L2GRRLONTL1.00-00 0x38f 0xcbee 18035 L1 L2GRRNYCCC1.00-00 0x58 0x6fcc 63292 L1 L2GRRNYCNS1.00-00 0x47 0x7c0c 17192 L1 L2GRRNYCNS1.01-00 0x4d 0x2b05 37186 L1 L2GRRMIASD1.00-00 0x5b 0x4441 14164 L1 L2GRRROMAC1.00-00 0x56 0xad8e 33506 L1 L2GRRMTYTE1.00-00 0xa 0x9bd2 17449 L1 L2GRRMTYTE1.01-00 0x7 0xd576 10168 L1 L2GRRMTYTE1.02-00 0x9 0xcabc 10062 L1 L2 53 LSPs

============================================

* Metrica y estado de los interfaces respecto a ISIS

show isis interfaceIS-IS interface database:Interface L CirID Level 1 DR Level 2 DR L1/L2 Metricfe-1/0/1.0 2 0x3 Disabled GRTMADPE2.03 10/4000ge-6/1/0.0 2 0x2 Disabled GRTMADPE2.02 10/400lo0.0 0 0x1 Disabled Passive 0/0so-1/3/0.0 0 0x1 Disabled Passive 10/10so-1/3/1.0 0 0x1 Disabled Passive 10/10

============================================

17

Page 18: Comandos Juniper

* Tabla de rutas de ISIS

show isis route IS-IS routing table Current version: L1: 658 L2: 4201Prefix L Version Metric Type Interface Via10.10.10.0/30 2 4201 7100 int ge-6/1/0.0 GRTMADPE163.144.131.64/30 2 4201 2900 int ge-6/1/0.0 GRTMA............

BGP4*Sesiones BGP divididas por los grupos

show bgp groupGroup Type: Internal AS: 12956 Local AS: 12956 Export: [ next-hop-self ] Total peers: 8 Established: 8 213.140.32.1+19589 213.140.32.9+179 213.140.32.17+58368 213.140.32.33+52828 213.140.32.37+45661 213.140.32.69+16080 213.140.32.73+179 213.140.32.77+25854 Route Queue Timer: unset Route Queue: empty

Group Type: External Local AS: 12956 Export: [ TDE24 filter-list-1 ] Options: <RemovePrivateAS> Total peers: 1 Established: 1 213.140.36.74+179 Route Queue Timer: unset Route Queue: empty

============================================

18

Page 19: Comandos Juniper

* Resumen de sesiones BGP

show bgp summaryGroups: 2 Peers: 9 Down peers: 0Table Tot Paths Act Paths Suppressed History Damp State Pendinginet.0 517064 111054 0 0 0 0inet.2 0 0 0 0 0 0Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Damped...213.140.32.1 12956 596106 181605 0 2 4d 12:14:03 13379/92076/0 0/0/0213.140.32.9 12956 679741 199554 0 2 4d 12:13:14 21335/101660/0 0/0/0213.140.32.17 12956 724491 181920 0 2 4d 12:13:29 5834/99487/0 0/0/0213.140.32.33 12956 559039 179914 0 2 4d 12:11:44 24504/79253/0 0/0/0213.140.32.37 12956 190835 179543 0 1 4d 12:18:51 33879/42937/0 0/0/0213.140.32.69 12956 6522 184716 0 1 4d 12:19:35 2/13/0 0/0/0213.140.32.73 12956 6527 217522 0 1 4d 12:19:32 1/1/0 0/0/0213.140.32.77 12956 6498 180928 0 2 4d 12:15:38 0/1/0 0/0/0213.140.36.74 6813 350921 8680 0 1 4d 12:19:23 12120/101636/0 0/0/0

============================================

* Detalle de la sesion BGP con un vecino

show bgp neighborPeer: 213.140.32.1+19589 AS 12956 Local: 213.140.32.19+179 AS 12956 Type: Internal State: Established Flags: <> Last State: OpenConfirm Last Event: RecvKeepAlive Last Error: None Export: [ next-hop-self ] Options: <Preference LocalAddress HoldTime LogUpDown PeerAS Refresh> Local Address: 213.140.32.19 Holdtime: 180 Preference: 170 Number of flaps: 2 Peer ID: 213.140.32.1 Local ID: 213.140.32.19 Active Holdtime: 180 Keepalive Interval: 60 NLRI advertised by peer: inet-unicast NLRI for this session: inet-unicast Peer supports Refresh capability (2) Table inet.0 Bit: 10000

19

Page 20: Comandos Juniper

Send state: not in sync Active prefixes: 13384 Received prefixes: 92079 Suppressed due to damping: 0 Last traffic (seconds): Received 2 Sent 1 Checked 18 Input messages: Total 596280 Updates 596278 Refreshes 0 Octets 49701870 Output messages: Total 181651 Updates 181647 Refreshes 0 Octets 11925608 Output Queue[0]: 0......

RUTAS

* Tabla de rutas

show route

inet.0: 111266 destinations, 111266 routes (111238 active, 0 holddown, 28 hidden)+ = Active Route, - = Last Active, * = Both

3.0.0.0/8 *[BGP/170] 20:41:43, localpref 80, from 213.140.32.33 AS path: 6453 701 80 I > to 213.140.36.129 via ge-6/1/0.0 [BGP/170] 4d 12:25:34, localpref 80 AS path: 6813 701 701 80 I > to 213.140.36.74 via so-1/3/1.0 [BGP/170] 20:41:41, localpref 80, from 213.140.32.17 AS path: 6813 701 701 80 I > to 213.140.36.129 via ge-6/1/0.0 [BGP/170] 20:41:40, localpref 80, from 213.140.32.1 AS path: 6813 701 701 80 I > to 213.140.36.129 via ge-6/1/0.0 [BGP/170] 20:41:40, localpref 80, from 213.140.32.9 AS path: 6813 701 701 80 I > to 213.140.36.129 via ge-6/1/0.04.0.0.0/8 *[BGP/170] 20:41:43, localpref 80, from 213.140.32.9 AS path: 3549 1 I > to 213.140.36.129 via ge-6/1/0.0 [BGP/170] 20:41:43, localpref 80, from 213.140.32.33 AS path: 3549 1 I > to 213.140.36.129 via ge-6/1/0.0 [BGP/170] 4d 10:56:48, localpref 80 AS path: 6813 6453 1 I > to 213.140.36.74 via so-1/3/1.0 [BGP/170] 20:41:41, localpref 80, from 213.140.32.17 AS path: 6813 6453 1 I > to 213.140.36.129 via ge-6/1/0.0 [BGP/170] 20:41:40, local... ============================================

20

Page 21: Comandos Juniper

* Direcciones locales

show route protocol local

inet.0: 111273 destinations, 111273 routes (111245 active, 0 holddown, 28 hidden)+ = Active Route, - = Last Active, * = Both

213.140.36.65/32 *[Local/0] 5d 17:33:05 Local213.140.36.73/32 *[Local/0] 5d 17:33:05 Local213.140.36.130/32 *[Local/0] 5d 17:33:14 Local213.140.40.130/32 *[Local/0] 5d 03:23:14 Local

iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both

============================================

* Redes directamente conectadas

show route protocol direct

inet.0: 111278 destinations, 111278 routes (111250 active, 0 holddown, 28 hidden)+ = Active Route, - = Last Active, * = Both

213.140.32.19/32 *[Direct/0] 5d 17:34:31 > via lo0.0213.140.36.64/30 *[Direct/0] 5d 17:33:36 > via so-1/3/0.0213.140.36.72/30 *[Direct/0] 4d 12:47:53 > via so-1/3/1.0213.140.36.128/30 *[Direct/0] 5d 17:33:44 > via ge-6/1/0.0213.140.40.128/28 *[Direct/0] 5d 03:23:46 > via fe-1/0/1.0

iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both

49.0000.0000.329c.0001.d58c.2013.0000.00/128 *[Direct/0] 5d 17:34:32 > via lo0.0

21

Page 22: Comandos Juniper

============================================

* Redes de la tabla de rutas aprendidas por ISIS

show route protocol isis

inet.0: 111275 destinations, 111275 routes (111247 active, 0 holddown, 28 hidden)+ = Active Route, - = Last Active, * = Both

10.10.10.0/30 *[IS-IS/18] 20:48:45, metric 7100, tag 2 > to 213.140.36.129 via ge-6/1/0.063.144.131.64/30 *[IS-IS/18] 20:48:45, metric 2900, tag 2 > to 213.140.36.129 via ge-6/1/0.063.209.147.240/30 *[IS-IS/18] 11:59:05, metric 6900, tag 2 > to 213.140.36.129 via ge-6/1/0.063.209.150.120/30 *[IS-IS/18] 11:59:05, metric 6900, tag 2 > to 213.140.36.129 via ge-6/1/0.063.212.176.228/30 *[IS-IS/18] 11:59:05, metric 6900, tag 2 > to 213.140.36.129 via ge-6/1/0.0194.69.226.44/30 *[IS-IS/18] 20:48:45, metric 2750, tag 2 > to 213.140.36.129 via ge-6/1/0.0194.69.226.72/30 *[IS-IS/18] 20:48:45, metric 400, tag 2 > to 213.140.36.129 via ge-6/1/0.0194.69.232.1/32 *[IS-IS/18] 20:48:45, metric 2700, tag 2 > to 213.140.36.129 via ge-6/1/0.0194.69.232.3/32 *[IS-IS/18] 20:48:45, metric 2750, tag 2 > to 213.140.36.129 via ge-6/1/0.0194.69.232.5/32 *[IS-IS/18] 20:48:45, metric 400, tag 2 > to 213.140.36.129 via ge-6/1/0.0194.69.232.64/30 *[IS-IS/18] 20:48:45, metric 2750, tag 2

...

...

...

============================================

* Redes de la tabla de rutas aprendidas por ISIS ( mas informacion)

show route protocol isis extensive

inet.0: 111279 destinations, 111279 routes (111251 active, 0 holddown, 28 hidden)+ = Active Route, - = Last Active, * = Both

10.10.10.0/30 (1 entry, 1 announced)TSI:KRT in-kernel 10.10.10.0/30 -> {213.140.36.129}BGP_Sync_Any dest 10.10.10.0/30 MED 7100

22

Page 23: Comandos Juniper

*IS-IS Preference: 18 Nexthop: 213.140.36.129 via ge-6/1/0.0, selected State: <Active Int> Local AS: 12956 Age: 20:51:58 Metric: 7100 Tag: 2 Task: IS-IS Announcement bits (2): 0-KRT 4-BGP_Sync_Any AS path: I

63.144.131.64/30 (1 entry, 1 announced)TSI:KRT in-kernel 63.144.131.64/30 -> {213.140.36.129}BGP_Sync_Any dest 63.144.131.64/30 MED 2900

*IS-IS Preference: 18 Nexthop: 213.140.36.129 via ge-6/1/0.0, selected State: <Active Int> Local AS: 12956 Age: 20:51:58 Metric: 2900 Tag: 2 Task: IS-IS Announcement bits (2): 0-KRT 4-BGP_Sync_Any AS path: I

...

...

...

============================================

* Redes de la tabla de rutas aprendidas por BGP

show route protocol bgp

inet.0: 111273 destinations, 111273 routes (111245 active, 0 holddown, 28 hidden)+ = Active Route, - = Last Active, * = Both

3.0.0.0/8 *[BGP/170] 20:54:43, localpref 80, from 213.140.32.33 AS path: 6453 701 80 I > to 213.140.36.129 via ge-6/1/0.0 [BGP/170] 4d 12:38:34, localpref 80 AS path: 6813 701 701 80 I > to 213.140.36.74 via so-1/3/1.0 [BGP/170] 20:54:41, localpref 80, from 213.140.32.17 AS path: 6813 701 701 80 I > to 213.140.36.129 via ge-6/1/0.0 [BGP/170] 20:54:40, localpref 80, from 213.140.32.1 AS path: 6813 701 701 80 I > to 213.140.36.129 via ge-6/1/0.0 [BGP/170] 20:54:4...============================================

23

Page 24: Comandos Juniper

* Redes suprimidas por damping

show route protocol bgp damping suppressed

inet.0: 111276 destinations, 111276 routes (111248 active, 0 holddown, 28 hidden)+ = Active Route, - = Last Active, * = Both

iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both

============================================

* ver redes con expresiones regulares

show route protocol bgp aspath-regex ".* 12715"

inet.0: 111277 destinations, 111277 routes (111249 active, 0 holddown, 28 hidden)+ = Active Route, - = Last Active, * = Both

62.14.0.0/15 *[BGP/170] 00:21:23, localpref 85, from 213.140.32.37 AS path: 1755 702 12715 I > to 213.140.36.129 via ge-6/1/0.0 [BGP/170] 00:21:19, localpref 85, from 213.140.32.9 AS path: 1755 702 12715 I > to 213.140.36.129 via ge-6/1/0.0 [BGP/170] 4d 12:50:00, localpref 80 AS path: 6813 8297 1299 12457 12715 I > to 213.140.36.74 via so-1/3/1.062.151.32.0/19 *[BGP/170] 00:21:23, localpref 85, from 213.140.32.37 AS path: 1755 8938 12457 12715 I > to 213.140.36.129 via ge-6/1/0.0 [BGP/170] 00:21:19, localpref 85, from 213.140.32.9 AS path: 1755 8938 12457 12715 I > to 213.140.36.129 via ge-6/1/0.0 [BGP/170] 12:17:25, localpref 80 AS path: 6813 3561 286 12424 12715 I > to 213.140.36.74 via so-1/3/1.0

iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both

============================================

24

Page 25: Comandos Juniper

* Rutas aprendidas por BGP desde un vecino

show route protocol bgp source-gateway 213.140.32.1

inet.0: 111279 destinations, 111279 routes (111251 active, 0 holddown, 28 hidden)+ = Active Route, - = Last Active, * = Both

3.0.0.0/8 [BGP/170] 21:07:26, localpref 80, from 213.140.32.1 AS path: 6813 701 701 80 I > to 213.140.36.129 via ge-6/1/0.04.0.0.0/8 [BGP/170] 21:07:26, localpref 80, from 213.140.32.1 AS path: 6813 6453 1 I > to 213.140.36.129 via ge-6/1/0.06.1.0.0/16 [BGP/170] 21:07:26, localpref 80, from 213.140.32.1 AS path: 6813 6453 1239 7170 1455 I > to 213.140.36.129 via ge-6/1/0.06.2.0.0/22 [BGP/170] 21:07:26, localpref 80, from 213.140.32.1 AS path: 6813 6453 1239 7170 1455 I > to 213.140.36.129 via ge-6/1/0.06.3.0.0/18 [BGP/170] 21:07:26, localpref 80, from 213.140.32.1 AS path: 6813 6453 1239 7170 1455 I > to 213.140.36.129 via ge-6/1/0.06.4.0.0/16 [BGP/170] 21:07:26, localpref 80, from 213.140.32.1 AS path: 6813 6453 1239 7170 1455 I......

============================================

* Rutas aprendidas por BGP desde un vecino (Otra forma)

show route protocol bgp receive-protocol bgp 213.140.32.1

inet.0: 111274 destinations, 111274 routes (111246 active, 0 holddown, 28 hidden)Prefix Nexthop MED Lclpref AS path3.0.0.0/8 213.140.32.1 80 6813 701 701 80 I4.0.0.0/8 213.140.32.1 80 6813 6453 1 I6.1.0.0/16 213.140.32.1 80 6813 6453 1239 7170 1455 I6.2.0.0/22 213.140.32.1 80 6813 6453 1239 7170 1455 I6.3.0.0/18 213.140.32.1 80 6813 6453 1239 7170 1455 I6.4.0.0/16 213.140.32.1 80 6813 6453 1239 7170 1455 I6.5.0.0/19 213.140.32.1 80 6813 6453 1239 7170 1455 I6.8.0.0/20 213.140.32.1 80 6813 6453 1239 7170 1455 I6.9.0.0/20 213.140.32.1 80 6813 6453 1239 7170 1455 I6.10.0.0/15 213.140.32.1 80 6813 6453 1239 7170 1455 I6.14.0.0/15 213.140.32.1 80 6813 6453 1239 7170 1455 I6.133.0.0/21 213.140.32.1 80 6813 6453 1239 7170 1455 I6.151.0.0/16 213.140.32.1 80 6813 6453 1239 7170 1455 I6.152.0.0/16 213.140.32.1 80 6813 6453 1239 7170 1455 I

25

Page 26: Comandos Juniper

9.2.0.0/16 213.140.32.1 80 6813 701 701 I9.3.4.0/24 213.140.32.1 80 6813 6453 1 16779 1221 ?9.3.5.0/24 213.140.32.1 80 6813 6453 1 16779 1221 ?9.141.128.0/24 213.140.32.1 80 6813 6453 7018 2686 ?9.184.112.0/20 213.140.32.244 0 80 3356 3786 I9.186.144.0/20 213.140.32.244 0 80 3356 3786 I12.0.0.0/8 213.140.32.1 80 6813 6453 7018 I12.0.252.0/23 213.140.32.1 80 6813 701

...

...

...============================================

* Rutas propagadas de BGP a otro vecino

show route protocol bgp advertising-protocol bgp 213.140.32.1

inet.0: 111278 destinations, 111278 routes (111250 active, 0 holddown, 28 hidden)Prefix Nexthop MED Lclpref AS path12.3.65.0/24 Self 80 6813 6453 1 11860 14763 I12.5.164.0/24 Self 80 6813 3561 11134 I12.10.175.0/24 Self 80 6813 3561 8074 I12.13.82.0/23 Self 80 6813 3561 3908 20036 I12.13.84.0/24 Self 80 6813 3561 3908 20036 I12.13.120.0/23 Self 80 6813 3561 3908 20036 I12.20.66.0/23 Self 80 6813 3561 11589 I12.23.136.0/22 Self 80 6813 3561 5006 11101 I12.24.180.0/23 Self 80 6813 3561 13552 I12.24.250.0/23 Self 80 6813 3561 5006 11101 I12.24.252.0/22 Self 80 6813 3561 5006 11101 I12.26.128.0/22 Self 80 6813 3561 13488 13641 I12.27.88.0/24 Self 80 6813 3561 14906 I12.27.89.0/24 Self 80 6813 3561 14906 I12.27.90.0/24 Self 80 6813 3561 14906 I12.27.91.0/24 Self 80 6813 3561 14906 I12.29.100.0/24 Self 80 6813 3561 6307 I12.29.101.0/24 Self 80 6813 3561 6307 I12.29.102.0/24 Self 80 6813 3561 6307 I12.29.148.0/24 Self 80 6813 3561 11418 I12.30.224.0/22 Self

...

...

============================================

26

Page 27: Comandos Juniper

* Para ver las rutas recibidas desde un neighbor

show route receive-protocol bgp 213.140.39.13 inet.0: 128458 destinations, 128458 routes (127464 active, 0 holddown, 15442 hidden)Prefix Nexthop MED Lclpref AS path3.0.0.0/8 213.140.39.13 12956 6453 701 80 I3.18.135.0/24 213.140.39.13 12956 701 7018 ?4.0.0.0/8 213.140.39.13 12956 6453 1 I6.0.0.0/20 213.140.39.13 12956 701 3549 I6.1.0.0/16 213.140.39.13 12956 209 7170 1455 I6.2.0.0/22 213.140.39.13 12956 209 7170 1455 I6.3.0.0/18 213.140.39.13 12956 209 7170 1455 I6.4.0.0/16 213.140.39.13 12956 209 7170 1455 I

============================================

* Redes inactivas

show route protocol bgp inactive

inet.0: 111274 destinations, 111274 routes (111246 active, 0 holddown, 28 hidden)+ = Active Route, - = Last Active, * = Both

64.86.14.32/27 [BGP] 2d 12:16:30, localpref 100 AS path: 6813 6453 I > to 213.140.36.74 via so-1/3/1.064.86.72.160/27 [BGP] 2d 12:16:30, localpref 100 AS path: 6813 6453 I > to 213.140.36.74 via so-1/3/1.064.86.105.32/27 [BGP] 1d 14:02:01, localpref 100 AS path: 6813 6453 I > to 213.140.36.74 via so-1/3/1.064.86.105.128/28 [BGP] 2d 12:16:30, localpref 100 AS path: 6813 6453 I > to 213.140.36.74 via so-1/3/1.064.86.105.192/29 [BGP] 2d 12:16:30, localpref 100 AS path: 6813 6453 I > to 213.140.36.74 via so-1/3/1.064.86.182.88/29 [BGP] 2d 12:16:30, localpref 100 AS path: 6813 6453 I

...

27

Page 28: Comandos Juniper

MPLS

* Para ver todos los interfaces que tienen configurado MPLS

show mpls interface Interface State Administrative groupsso-0/0/0.0 Up <none>so-0/0/1.0 Up <none>so-0/0/2.0 Up <none>so-0/0/3.0 Up <none>so-0/1/2.0 Up <none>so-0/1/3.0 Dn <none>so-1/0/0.0 Up <none>so-1/0/1.0 Up <none>

==========================================

* Si queremos ver los túneles de Ingeniería de Tráfico en los que participa este router bien como Ingress, Egress o Transit

show mpls lsp Ingress LSP: 1 sessionsTo From State Rt ActivePath P LSPname213.0.184.15 213.0.184.227 Up 463 NRAMRRO1-ESTRICTO * NJTMPEN1-A-NRAMRRO1-ESTRICTOTotal 1 displayed, Up 1, Down 0Egress LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Transit LSP: 11 sessionsTo From State Rt Style Labelin Labelout LSPname 213.0.249.49 213.0.184.215 Up 0 1 FF 547051 60 NJTMDEL1-A-NRAPGCS1-ESTRICTOTotal 1 displayed, Up 1, Down 0

==========================================

* Si lo que queremos ver es el camino exacto que siguen los túneles de TE desde un router hasta el destino del túnel

show mpls path Path name Address strict/looseNRAMRRO1-ESTRICTO 213.0.251.130 strict 213.0.249.189 strictNRAPGCS1-ESTRICTO 213.0.251.126 strict 213.0.251.154 strict 213.0.249.53 strict 213.0.249.49 strict*NOTA : Para hacer un optimización del túnel lo haremos con “clear mpls lsp optimize name <nombre_túnel>

28

Page 29: Comandos Juniper

==========================================

* Para ver todos los interfaces que tienen configurado LDP

show ldp interface Interface Label space ID Nbr count Next hellolo0.0 213.0.184.227:0 0 0so-0/0/0.0 213.0.184.227:0 1 0so-0/0/2.0 213.0.184.227:0 1 4so-0/0/3.0 213.0.184.227:0 0 1so-0/1/2.0 213.0.184.227:0 1 0so-0/1/3.0 213.0.184.227:0 0 2so-1/0/0.0 213.0.184.227:0 1 3so-1/0/1.0 213.0.184.227:0 1 1so-1/0/2.0 213.0.184.227:0 1 2so-2/3/0.0 213.0.184.227:0 1 1

==========================================

* Para ver el número de sesiones que tenemos establecidas y su estado

show ldp session Address State Connection Hold time213.0.184.11 Operational Open 173213.0.184.14 Operational Open 173213.0.184.16 Operational Open 175213.0.184.43 Operational Open 178213.0.184.49 Operational Open 175213.0.184.53 Operational Open 179213.0.184.126 Operational Open 176

* NOTA : Para limpiar una sesión LDP lo haremos con “clear ldp neighbor <dir_ip>”.

29

Page 30: Comandos Juniper

PING Y TRACEROUTE

* Ping "rapido" ( sin esperar el ack para mandar el siguiente)y de 1000 paquetes

ping rapid 213.140.32.1 count 1000

============================================

* Traceroute desde la loopback

traceroute source 213.140.32.19 62.81.248.1traceroute to 62.81.248.1 (62.81.248.1) from 213.140.32.19, 30 hops max, 40 byte packets 1 213.140.36.129 (213.140.36.129) 0.560 ms 0.406 ms 0.390 ms 2 A2-0-101.grtmadrr1.ri.telefonica-data.net (213.140.36.2) 0.884 ms 0.743 ms 0.714 ms 3 P1-1.grtlontl2.ri.te

...

...

30

Page 31: Comandos Juniper

SHELL / MONITOR

* Ir a la Shell de linux

start shell% exit% exit

============================================

* "term monitor" o "tail" de un fichero.

monitor start ?Possible completions: <filename> Log file to start monitoring access.aprobed Size: 107830, Last changed: May 24 08:33:37 access.dcd Size: 374351, Last changed: May 24 08:33:41 access.sampled Size: 478127, Last changed: May 24 08:33:48 aprobed Size: 0, Last changed: Mar 31 00:44:54 apsd Size: 24424, Last changed: May 24 08:33:42 chassisd Size: 470341, Last changed: May 28 14:30:01 dcd Size: 23675, Last changed: May 24 08:33:42 ilmid Size: 1145, Last changed: May 22 21:38:52 install Size: 742, Last changed: May 18 15:30:01 interface.log Size: 5066, Last changed: May 22 19:12:35 lastlog Size: 84028, Last changed: May 28 15:34:11 lpd-errs Size: 0, Last changed: Feb 22 05:59:12 maillog Size: 0, Last changed: Feb 22 05:59:12 mastership Size: 6939, Last changed: May 22 21:38:53 messages Size: 34591, Last changed: May 28 15:57:45 messages.0.gz Size: 7160, Last changed: May 28 15:00:00 messages.1.gz Size: 6940, Last changed: May 28 10:00:00 messages.10.gz Size: 6378, Last changed: May 26 04:00:00 messages.2.gz Size: 5725, Last changed: May 28 04:00:00 messages.3.gz Size: 5825, Last changed: May 27 22:00:00 messages.4.gz Size: 5626, Last changed: May 27 16:00:00 messages.5.gz Size: 5781, Last changed: May 27 10:00:00 messages.6.gz Size: 5828, Last changed: May 27 04:00:00 messages.7.gz Size: 5688, Last changed: May 26 22:00:00 messages.8.gz Size: 5629, Last changed: May 26 16:00:00 messages.9.gz Size: 5829, Last changed: May 26 10:00:00 mib2d Size: 9705, Last changed: May 24 08:33:42 ppp.log Size: 0, Last changed: Feb 22 05:59:12 sampled Size: 54550, Last changed: May 24 08:34:18 sendmail.st Size: 0, Last changed: Feb 22 05:58:40 slip.log Size: 0, Last changed: Feb 22 05:59:12

31

Page 32: Comandos Juniper

snapshot Size: 1475, Last changed: Mar 31 00:44:35 snmpd Size: 9200, Last changed: May 24 08:33:42 vrrpd Size: 934, Last changed: May 22 21:38:53 wtmp Size: 13464, Last changed: May 28 15:35:45

============================================

* Para parar la salida por pantalla

monitor stop

============================================

* Upgrade de JUNOS

request system software add/var/home/javier/jbundle-4.4R1.5-export.tgz

============================================

* Modo configuracion

configureEntering configuration mode

[edit]backup@GRTMADPE2#

32

Page 33: Comandos Juniper

PARADA / RELOAD DEL EQUIPO

* "Rebote" del equipo

request system reboot

===========================================

* Parada del equipo

request system halt

USUARIOS* Usuarios conectados:

show system users 2:23PM up 5 days, 16:46, 1 user, load averages: 0.03, 0.07, 0.06USER TTY FROM LOGIN@ IDLE WHATbackup p0 gsimadcic1.ri.te 2:20PM - -cli (cli)

============================================

* Forzar un logout de un usuario

request system logout

33

Page 34: Comandos Juniper

ACTUALIZACIÓN DE JUNOS

- Los router que tenemos en planta tienen dos RE independientes, es decir, que cada una puede estar corriendo una JUNOS diferente. Una de las RE siempre estará activa y la otra de backup.

Para ver cual es cual lo haremos con el comando “show chassis routing-engine”

- Podemos cambiar la sesión de telnet de una RE a otra con el comando “request routing-engine login x”

request routing-engine login ?Possible completions:other-routing-engine Login into the other RE re0 Login into RE0re1 Login into RE1

- Las tarjetas procesadoras ( router engine ) trabajan de forma independiente ( al contrario que en los router Cisco ) lo que quiere decir que las dos tarjetas no guardan la configuración actual, ni las anteriores, esta solo es guardada por la en la tarjeta que esta en ese momento activaEsta funcionalidad de configuraciones parejas en las dos RE será aplicable a partir de la versión 5.1 de Juniper.

- Los router Juniper permiten la carga de software a través de FTP. El FTP se puede realizar bien arrancado la sesión desde el propio Juniper para ello deberemos de arrancar el modo shell de Unix a través del comando “start shell” donde el Juniper se comportara como una máquina en la que correo Unix.O que el Juniper haga de cliente ftp, ya que posee dicha facilidad, en esta ocasión también se comportara como una maquina con SO Unix.

34

Page 35: Comandos Juniper

En el ejemplo que se muestra se carga la Junos arrancando desde una maquina residente en el Centro de Gestión de Red Nuria.

$ ftp 213.0.184.215 Connected to 213.0.184.215. 220 NJTMDEL1 FTP server (Version 6.00) ready. Name (213.0.184.215:planifi): test 331 Password required for test. Password: 230 User test logged in. ftp> bin 200 Type set to I. ftp> hash Hash mark printing on (8192 bytes/hash mark). ftp> put jbundle-4.3R2-export.tgz 200 PORT command successful. 150 Opening BINARY mode data connection for 'jbundle-4.3R2-export.tgz'. #############################################################

PROCEDIMIENTO

1. Copiamos la JUNOS a la RE de backup.

file copy jbundle-4.3R2-export.tgz re1:/var/home/test

2. Copiamos la configuración actual a la RE de backup

file copy /config/juniper.conf re1:/var/tmp/copied-juniper.conf

3. Accedemos a la RE de backup

request routing-engine login re1

35

Page 36: Comandos Juniper

4. Activamos la configuración actual en la RE de backup

load replace /var/tmp/copied-juniper.conf

commit and quit

5. Hacemos un backup del sistema de archivos actual.

request system snapshot

6. Activamos la JUNOS en la RE de backup

request system software add /var/home/test/jbundle-4.3R2-export.tgz delay-restart reboot

7. Hacemos un backup del sistema de archivos actual.

request system snapshot

8. Conmutamos de RE para que la de backup pase a ser la master y viceversa.

request chassis routing-engine master switch

36