Vous êtes sur la page 1sur 36

COMANDOS MÁS USUALES PARA JUNIPER

1
ÍNDICE

HARDWARE..................................................................................................................................5
show system uptime.....................................................................................................................5
show chassis alarms.....................................................................................................................5
show chassis craft-interface.........................................................................................................5
show chassis environment............................................................................................................6
show chassis hardware.................................................................................................................7
show chassis hardware extensive.................................................................................................7
show chassis routing-engine........................................................................................................8
request routing-engine login re1..................................................................................................9
request chassis routing-engine master switch..............................................................................9
request chassis fpc slot # offline..................................................................................................9
request chassis fpc slot # online...................................................................................................9
request chassis fpc slot # restart...................................................................................................9
request support information.........................................................................................................9
CONFIGURACIÓN......................................................................................................................10
show version..............................................................................................................................10
show configuration.....................................................................................................................11
INTERFACES...............................................................................................................................11
show interfaces...........................................................................................................................11
show interfaces terse..................................................................................................................11
monitor interface traffic.............................................................................................................12
clear interfaces stastitics ...........................................................................................................12
FIREWALL...................................................................................................................................13
show firewall..............................................................................................................................13
LOGS.............................................................................................................................................14
show firewall log........................................................................................................................14
show log user.............................................................................................................................14
show log ?..................................................................................................................................14
DNS Y NTP...................................................................................................................................15
show host www.cisco.com.........................................................................................................15
show ntp associations.................................................................................................................15
show ntp status...........................................................................................................................15
IS-IS...............................................................................................................................................16
show isis adjacency....................................................................................................................16
show isis database......................................................................................................................16
show isis interface......................................................................................................................17
show isis route............................................................................................................................18
BGP4..............................................................................................................................................18
show bgp group..........................................................................................................................18
show bgp summary....................................................................................................................19
show bgp neighbor.....................................................................................................................19
RUTAS..........................................................................................................................................20
show route..................................................................................................................................20

2
show route protocol local...........................................................................................................21
show route protocol direct.........................................................................................................21
show route protocol isis.............................................................................................................22
show route protocol isis extensive.............................................................................................22
show route protocol bgp.............................................................................................................23
show route protocol bgp damping suppressed...........................................................................24
show route protocol bgp aspath-regex ".* 12715"....................................................................24
show route protocol bgp source-gateway 213.140.32.1............................................................25
show route protocol bgp receive-protocol bgp 213.140.32.1....................................................25
show route protocol bgp advertising-protocol bgp 213.140.32.1..............................................26
show route receive-protocol bgp 213.140.39.13 ......................................................................27
show route protocol bgp inactive...............................................................................................27
MPLS.............................................................................................................................................28
show mpls interface ...............................................................................................................28
show mpls lsp .........................................................................................................................28
show mpls path ..........................................................................................................28
show ldp interface .....................................................................................................................29
show ldp session .......................................................................................................................29
PING Y TRACEROUTE...............................................................................................................30
ping rapid 213.140.32.1 count 1000..........................................................................................30
traceroute source 213.140.32.19 62.81.248.1............................................................................30
SHELL / MONITOR.....................................................................................................................31
start shell....................................................................................................................................31
monitor stop...............................................................................................................................32
request system software add/var/home/javier/jbundle-4.4R1.5-export.tgz...............................32
configure....................................................................................................................................32
PARADA / RELOAD DEL EQUIPO...........................................................................................33
request system reboot.................................................................................................................33
request system halt.....................................................................................................................33
USUARIOS...................................................................................................................................33
show system users......................................................................................................................33
request system logout.................................................................................................................33
ACTUALIZACIÓN DE JUNOS...................................................................................................34
1. Copiamos la JUNOS a la RE de backup................................................................................35
file copy jbundle-4.3R2-export.tgz re1:/var/home/test ........................................................35
2. Copiamos la configuración actual a la RE de backup............................................................35
file copy /config/juniper.conf re1:/var/tmp/copied-juniper.conf .........................................35
3. Accedemos a la RE de backup...............................................................................................35
request routing-engine login re1...........................................................................................35
4. Activamos la configuración actual en la RE de backup........................................................36
load replace /var/tmp/copied-juniper.conf............................................................................36
commit and quit...................................................................................................................36
5. Hacemos un backup del sistema de archivos actual..............................................................36
request system snapshot .......................................................................................................36
6. Activamos la JUNOS en la RE de backup.............................................................................36

3
request system software add /var/home/test/jbundle-4.3R2-export.tgz delay-restart reboot
................................................................................................................................................36
7. Hacemos un backup del sistema de archivos actual..............................................................36
request system snapshot .......................................................................................................36
8. Conmutamos de RE para que la de backup pase a ser la master y viceversa........................36
request chassis routing-engine master switch.......................................................................36

4
HARDWARE
* Tiempo con el equipo "levantado"

show system uptime


Current time: 2001-05-28 14:24:59 UTC
System 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 alarms


No alarms are currently active

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

* Vista de la craft-interface

show chassis craft-interface


FPM 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
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 environment


Class Item Status Measurement
Power PEM 0 OK
PEM 1 OK
Temp 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 F
Fans 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 speed
Misc CIP OK

6
============================================

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

show chassis hardware


Hardware inventory:
Item Version Part number Serial number Description
Chassis 51274 M160
Midplane REV 05 710-001245 AX3117
FPM CMB REV 03 710-001642 AS9508
FPM Display REV 02 710-001647 HD1620
CIP REV 04 710-002649 HE0476
PEM 0 Rev 04 740-001243 MB23580 Power Entry Module
PEM 1 Rev 04 740-001243 MB23554 Power Entry Module
PCG 0 REV 07 710-001568 HA1131
PCG 1 REV 07 710-001568 HB3188
Host 0 6c0000074a159a01 Present
Host 1 70000007c8722d01 Present
MCS 0 REV 11 710-001226 HA5237
MCS 1 REV 11 710-001226 HA5445
SFM 0 SPP REV 07 710-001228 HC9077
SFM 0 SPR REV 05 710-002189 HB4711 Internet Processor II
SFM 1 SPP REV 07 710-001228 HB6229
SFM 1 SPR REV 05 710-002189 HD0940 Internet Processor II
SFM 2 SPP REV 07 710-001228 HC9859
SFM 2 SPR REV 05 710-002189 HE2283 Internet Processor II
SFM 3 SPP REV 07 710-001228 HC9088
SFM 3 SPR REV 04 710-002189 AV8561 Internet Processor II
FPC 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, SMIR
FPC 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, SMIR
FPC 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
============================================

* Estado de la CPU de las REs

show chassis routing-engine


Routing 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.06
Routing 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
============================================

* 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 information


Hostname: GRTMADPE2
Model: m160
JUNOS base [4.4R1.5]
JUNOS Kernel Software Suite [4.4R1.5]
JUNOS Routing Software Suite [4.4R1.5]

9
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 UTC
MGD release 4.4R1.5 built by builder on 2001-04-20 05:17:18 UTC
CLI release 4.4R1.5 built by builder on 2001-04-20 05:17:21 UTC
CHASSISD release 4.4R1.5 built by builder on 2001-04-20 04:51:28 UTC
DCD release 4.4R1.5 built by builder on 2001-04-20 04:48:59 UTC
RPD release 4.4R1.5 built by builder on 2001-04-20 05:13:20 UTC
SNMPD release 4.4R1.5 built by builder on 2001-04-20 04:49:52 UTC
MIB2D release 4.4R1.5 built by builder on 2001-04-20 04:49:58 UTC
APSD release 4.4R1.5 built by builder on 2001-04-20 04:51:08 UTC
VRRPD release 4.4R1.5 built by builder on 2001-04-20 04:51:11 UTC
ALARMD release 4.4R1.5 built by builder on 2001-04-20 04:51:22 UTC
PFED release 4.4R1.5 built by builder on 2001-04-20 04:52:07 UTC
CRAFTD release 4.4R1.5 built by builder on 2001-04-20 04:52:03 UTC
SAMPLED release 4.4R1.5 built by builder on 2001-04-20 04:52:12 UTC
ILMID release 4.4R1.5 built by builder on 2001-04-20 04:52:20 UTC
jkernel-dd release 4.4R1.5 built by builder on 2001-04-20 04:44:53 UTC
jroute-dd release 4.4R1.5 built by builder on 2001-04-20 05:12:45 UTC

...
...

CONFIGURACIÓN
* Version de JUNOS

show version
Hostname: GRTMADPE2
Model: m160
JUNOS 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 UTC
MGD release 4.4R1.5 built by builder on 2001-04-20 05:17:18 UTC
CLI release 4.4R1.5 built by builder on 2001-04-20 05:17:21 UTC
CHASSISD release 4.4R1.5 built by builder on 2001-04-20 04:51:28 UTC
DCD release 4.4R1.5 built by builder on 2001-04-20 04:48:59 UTC
RPD release 4.4R1.5 built by builder on 2001-04-20 05:13:20 UTC
SNMPD release 4.4R1.5 built by builder on 2001-04-20 04:49:52 UTC
MIB2D release 4.4R1.5 built by builder on 2001-04-20 04:49:58 UTC
APSD release 4.4R1.5 built by builder on 2001-04-20 04:51:08 UTC
VRRPD release 4.4R1.5 built by builder on 2001-04-20 04:51:11 UTC
ALARMD release 4.4R1.5 built by builder on 2001-04-20 04:51:22 UTC
PFED release 4.4R1.5 built by builder on 2001-04-20 04:52:07 UTC
CRAFTD release 4.4R1.5 built by builder on 2001-04-20 04:52:03 UTC
SAMPLED release 4.4R1.5 built by builder on 2001-04-20 04:52:12 UTC
ILMID release 4.4R1.5 built by builder on 2001-04-20 04:52:20 UTC

10
jkernel-dd release 4.4R1.5 built by builder on 2001-04-20 04:44:53 UTC
jroute-dd release 4.4R1.5 built by builder on 2001-04-20 05:12:45 UTC
jdocs-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 interfaces
Physical 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 terse


Interface Admin Link Proto Local Remote
fe-1/0/0 up down
fe-1/0/1 up up
fe-1/0/1.0 up up inet 213.140.40.130/28
iso
fe-1/0/2 up down
fe-1/0/3 up down
at-1/1/0 up down
at-1/2/0 up down

11
so-1/3/0 up up
so-1/3/0.0 up up inet 213.140.36.65/30
iso
so-1/3/1 up up
so-1/3/1.0 up up inet 213.140.36.73/30
iso
so-1/3/2 up down
so-1/3/3 up down
so-2/0/0 up down
so-2/0/1 up down
so-2/0/2 up down
so-2/0/3 up down
at-2/1/0 up up
at-2/1/1 up down
so-6/0/0 up down
so-6/0/1 up down
so-6/0/2 up down
so-6/0/3 up down
ge-6/1/0 up up
ge-6/1/0.0 up up inet 213.140.36.130/30
iso
ge-6/1/1 up down
fxp0 up down
fxp0.0 up down inet
fxp1 up up
fxp1.0 up up tnp 4
fxp2 up up
fxp2.0 up up tnp 4
gre up up
ipip up up
lo0 up up
lo0.0 up up inet 213.140.32.19 --> 0/0
iso 49.0000.0000.329c.0001.d58c.2013.0000.00
pimd up up
pime up up
tap 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
FIREWALL
* Filtros existentes

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

13
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
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.com


www.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 status


status=06f4 leap_none, sync_ntp, 15 events, event_peer/strat_chg
system="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
IS-IS
* Vecinos de ISIS

show isis adjacency


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

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

* Tabla de LSPs de ISIS

show isis database


IS-IS level 1 link-state database:
0 LSPs

IS-IS level 2 link-state database:


LSP ID Sequence Checksum Lifetime Attributes
GRTHOUGC1.00-00 0x1ad1 0xdfd3 50207 L1 L2
GRTMADRR1.00-00 0x883 0x5aac 61120 L1 L2
GRTMADRR1.01-00 0x45 0x7589 34029 L1 L2
GRTMADRR1.02-00 0x49 0x6693 32424 L1 L2
GRTMADDE1.00-00 0x64c 0xd5ea 23408 L1 L2
GRTMADDE1.01-00 0x48 0x7b6e 38300 L1 L2
GRTMADDE1.02-00 0x4c 0x6c78 45471 L1 L2
GRTMADPE1.00-00 0x586 0xc547 65405 L1 L2
GRTMADPE2.00-00 0x93 0xec53 65415 L1 L2
GRTMADPE2.02-00 0x84 0xc9c1 65415 L1 L2
GRTMADPE2.03-00 0x69 0xd53c 65415 L1 L2
GRTLONTL1.00-00 0x3d5 0xfba5 61116 L1 L2
GRTLONTL1.02-00 0x107 0xd0b9 11037 L1 L2
GRTLONTL2.00-00 0x209e 0x5d24 48788 L1 L2
GRTLONTL2.01-00 0x46 0x9716 4017 L1 L2
GRTLONTL2.02-00 0xadb 0x47c5 23182 L1 L2
GRTROMAC1.00-00 0x164 0x9f84 41949 L1 L2
GRTROMAC1.01-00 0x43 0x164e 15549 L1 L2
GRTROMAC1.02-00 0x48 0x559 31996 L1 L2
GRGMADCIC1.00-00 0xfd 0x604b 52048 L1 L2
GRGMADCIC1.01-00 0xa3 0xef11 4693 L1 L2
GRGMADCIC2.00-00 0x1ae 0xd3a7 38282 L1 L2
GRGMADCIC2.01-00 0x74 0x42e5 4610 L1 L2
GRTNYCCC1.00-00 0x322c 0x5935 37080 L1 L2
GRTNYCCC1.01-00 0x46 0xa94b 44207 L1 L2
GRTNYCCC1.02-00 0x4a 0x9a55 46888 L1 L2

16
GRTNYCNS1.00-00 0xcf 0xdab7 18445 L1 L2
GRTNYCNS1.03-00 0x78 0x222 41132 L1 L2
GRTNYCNS2.00-00 0x100 0x6cb4 4629 L1 L2
GRTNYCNS2.01-00 0x52 0xdd74 62746 L1 L2
GRTMTYTE1.00-00 0x14ad 0x3ca4 40311 L1 L2
GRTMTYTE1.01-00 0x9 0x2843 63169 L1 L2
GRTBUECI1.00-00 0x82 0x1ff1 39703 L1 L2
GRTSAOLS2.00-00 0x86 0xb909 6335 L1 L2
GRTSAOLS2.02-00 0x9 0x847d 58018 L1 L2
GRTMIASD1.00-00 0x1462 0x2fd 23406 L1 L2
GRTMIASD1.01-00 0x47 0x9274 8645 L1 L2
GRTMIASD1.02-00 0x45 0x8f78 14446 L1 L2
GRTMIATIC1.00-00 0x13a 0xfe5 39600 L1 L2
GRRMADRR1.00-00 0x58 0x125f 26368 L1 L2
GRRMADDE1.00-00 0x6e 0xdd3c 49534 L1 L2
GRRMADPE1.00-00 0x58 0x517d 65404 L1 L2
GRRMADPE1.01-00 0x1 0 0 L1 L2
GRRMADPE1.02-00 0x4b 0x617d 58514 L1 L2
GRRLONTL1.00-00 0x38f 0xcbee 18035 L1 L2
GRRNYCCC1.00-00 0x58 0x6fcc 63292 L1 L2
GRRNYCNS1.00-00 0x47 0x7c0c 17192 L1 L2
GRRNYCNS1.01-00 0x4d 0x2b05 37186 L1 L2
GRRMIASD1.00-00 0x5b 0x4441 14164 L1 L2
GRRROMAC1.00-00 0x56 0xad8e 33506 L1 L2
GRRMTYTE1.00-00 0xa 0x9bd2 17449 L1 L2
GRRMTYTE1.01-00 0x7 0xd576 10168 L1 L2
GRRMTYTE1.02-00 0x9 0xcabc 10062 L1 L2
53 LSPs

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

* Metrica y estado de los interfaces respecto a ISIS

show isis interface


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

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

17
* Tabla de rutas de ISIS

show isis route


IS-IS routing table Current version: L1: 658 L2: 4201
Prefix L Version Metric Type Interface Via
10.10.10.0/30 2 4201 7100 int ge-6/1/0.0 GRTMADPE1
63.144.131.64/30 2 4201 2900 int ge-6/1/0.0 GRTMA
...
...
...
...

BGP4
*Sesiones BGP divididas por los grupos

show bgp group


Group 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
* Resumen de sesiones BGP

show bgp summary


Groups: 2 Peers: 9 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0 517064 111054 0 0 0 0
inet.2 0 0 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|
#Active/Received/Dampe
d...
213.140.32.1 12956 596106 181605 0 2 4d 12:14:03 13379/92076/0
0/0/0
213.140.32.9 12956 679741 199554 0 2 4d 12:13:14 21335/101660/0
0/0/0
213.140.32.17 12956 724491 181920 0 2 4d 12:13:29 5834/99487/0
0/0/0
213.140.32.33 12956 559039 179914 0 2 4d 12:11:44 24504/79253/0
0/0/0
213.140.32.37 12956 190835 179543 0 1 4d 12:18:51 33879/42937/0
0/0/0
213.140.32.69 12956 6522 184716 0 1 4d 12:19:35 2/13/0
0/0/0
213.140.32.73 12956 6527 217522 0 1 4d 12:19:32 1/1/0
0/0/0
213.140.32.77 12956 6498 180928 0 2 4d 12:15:38 0/1/0
0/0/0
213.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 neighbor


Peer: 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
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.0
4.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
* 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


Local
213.140.36.73/32 *[Local/0] 5d 17:33:05
Local
213.140.36.130/32 *[Local/0] 5d 17:33:14
Local
213.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.0
213.140.36.64/30 *[Direct/0] 5d 17:33:36
> via so-1/3/0.0
213.140.36.72/30 *[Direct/0] 4d 12:47:53
> via so-1/3/1.0
213.140.36.128/30 *[Direct/0] 5d 17:33:44
> via ge-6/1/0.0
213.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
============================================

* 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.0
63.144.131.64/30 *[IS-IS/18] 20:48:45, metric 2900, tag 2
> to 213.140.36.129 via ge-6/1/0.0
63.209.147.240/30 *[IS-IS/18] 11:59:05, metric 6900, tag 2
> to 213.140.36.129 via ge-6/1/0.0
63.209.150.120/30 *[IS-IS/18] 11:59:05, metric 6900, tag 2
> to 213.140.36.129 via ge-6/1/0.0
63.212.176.228/30 *[IS-IS/18] 11:59:05, metric 6900, tag 2
> to 213.140.36.129 via ge-6/1/0.0
194.69.226.44/30 *[IS-IS/18] 20:48:45, metric 2750, tag 2
> to 213.140.36.129 via ge-6/1/0.0
194.69.226.72/30 *[IS-IS/18] 20:48:45, metric 400, tag 2
> to 213.140.36.129 via ge-6/1/0.0
194.69.232.1/32 *[IS-IS/18] 20:48:45, metric 2700, tag 2
> to 213.140.36.129 via ge-6/1/0.0
194.69.232.3/32 *[IS-IS/18] 20:48:45, metric 2750, tag 2
> to 213.140.36.129 via ge-6/1/0.0
194.69.232.5/32 *[IS-IS/18] 20:48:45, metric 400, tag 2
> to 213.140.36.129 via ge-6/1/0.0
194.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
*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
* 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.0
62.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
* 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.0
4.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.0
6.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.0
6.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.0
6.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.0
6.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 path
3.0.0.0/8 213.140.32.1 80 6813 701 701 80 I
4.0.0.0/8 213.140.32.1 80 6813 6453 1 I
6.1.0.0/16 213.140.32.1 80 6813 6453 1239 7170 1455 I
6.2.0.0/22 213.140.32.1 80 6813 6453 1239 7170 1455 I
6.3.0.0/18 213.140.32.1 80 6813 6453 1239 7170 1455 I
6.4.0.0/16 213.140.32.1 80 6813 6453 1239 7170 1455 I
6.5.0.0/19 213.140.32.1 80 6813 6453 1239 7170 1455 I
6.8.0.0/20 213.140.32.1 80 6813 6453 1239 7170 1455 I
6.9.0.0/20 213.140.32.1 80 6813 6453 1239 7170 1455 I
6.10.0.0/15 213.140.32.1 80 6813 6453 1239 7170 1455 I
6.14.0.0/15 213.140.32.1 80 6813 6453 1239 7170 1455 I
6.133.0.0/21 213.140.32.1 80 6813 6453 1239 7170 1455 I
6.151.0.0/16 213.140.32.1 80 6813 6453 1239 7170 1455 I
6.152.0.0/16 213.140.32.1 80 6813 6453 1239 7170 1455 I

25
9.2.0.0/16 213.140.32.1 80 6813 701 701 I
9.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 I
9.186.144.0/20 213.140.32.244 0 80 3356 3786 I
12.0.0.0/8 213.140.32.1 80 6813 6453 7018 I
12.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 path
12.3.65.0/24 Self 80 6813 6453 1 11860 14763 I
12.5.164.0/24 Self 80 6813 3561 11134 I
12.10.175.0/24 Self 80 6813 3561 8074 I
12.13.82.0/23 Self 80 6813 3561 3908 20036 I
12.13.84.0/24 Self 80 6813 3561 3908 20036 I
12.13.120.0/23 Self 80 6813 3561 3908 20036 I
12.20.66.0/23 Self 80 6813 3561 11589 I
12.23.136.0/22 Self 80 6813 3561 5006 11101 I
12.24.180.0/23 Self 80 6813 3561 13552 I
12.24.250.0/23 Self 80 6813 3561 5006 11101 I
12.24.252.0/22 Self 80 6813 3561 5006 11101 I
12.26.128.0/22 Self 80 6813 3561 13488 13641 I
12.27.88.0/24 Self 80 6813 3561 14906 I
12.27.89.0/24 Self 80 6813 3561 14906 I
12.27.90.0/24 Self 80 6813 3561 14906 I
12.27.91.0/24 Self 80 6813 3561 14906 I
12.29.100.0/24 Self 80 6813 3561 6307 I
12.29.101.0/24 Self 80 6813 3561 6307 I
12.29.102.0/24 Self 80 6813 3561 6307 I
12.29.148.0/24 Self 80 6813 3561 11418 I
12.30.224.0/22 Self

...
...

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

26
* 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 path
3.0.0.0/8 213.140.39.13 12956 6453 701 80 I
3.18.135.0/24 213.140.39.13 12956 701 7018 ?
4.0.0.0/8 213.140.39.13 12956 6453 1 I
6.0.0.0/20 213.140.39.13 12956 701 3549 I
6.1.0.0/16 213.140.39.13 12956 209 7170 1455 I
6.2.0.0/22 213.140.39.13 12956 209 7170 1455 I
6.3.0.0/18 213.140.39.13 12956 209 7170 1455 I
6.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.0
64.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.0
64.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.0
64.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.0
64.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.0
64.86.182.88/29 [BGP] 2d 12:16:30, localpref 100
AS path: 6813 6453 I

...

27
MPLS
* Para ver todos los interfaces que tienen configurado MPLS

show mpls interface


Interface State Administrative groups
so-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 sessions
To From State Rt ActivePath P LSPname
213.0.184.15 213.0.184.227 Up 463 NRAMRRO1-ESTRICTO * NJTMPEN1-A-NRAMRRO1-
ESTRICTO
Total 1 displayed, Up 1, Down 0
Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
Transit LSP: 11 sessions
To From State Rt Style Labelin Labelout LSPname
213.0.249.49 213.0.184.215 Up 0 1 FF 547051 60 NJTMDEL1-A-NRAPGCS1-
ESTRICTO
Total 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/loose
NRAMRRO1-ESTRICTO 213.0.251.130 strict
213.0.249.189 strict
NRAPGCS1-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
==========================================

* Para ver todos los interfaces que tienen configurado LDP

show ldp interface


Interface Label space ID Nbr count Next hello
lo0.0 213.0.184.227:0 0 0
so-0/0/0.0 213.0.184.227:0 1 0
so-0/0/2.0 213.0.184.227:0 1 4
so-0/0/3.0 213.0.184.227:0 0 1
so-0/1/2.0 213.0.184.227:0 1 0
so-0/1/3.0 213.0.184.227:0 0 2
so-1/0/0.0 213.0.184.227:0 1 3
so-1/0/1.0 213.0.184.227:0 1 1
so-1/0/2.0 213.0.184.227:0 1 2
so-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 time
213.0.184.11 Operational Open 173
213.0.184.14 Operational Open 173
213.0.184.16 Operational Open 175
213.0.184.43 Operational Open 178
213.0.184.49 Operational Open 175
213.0.184.53 Operational Open 179
213.0.184.126 Operational Open 176

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

29
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.1


traceroute 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
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
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

configure
Entering configuration mode

[edit]
backup@GRTMADPE2#

32
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.06
USER TTY FROM LOGIN@ IDLE WHAT
backup p0 gsimadcic1.ri.te 2:20PM - -cli (cli)

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

* Forzar un logout de un usuario

request system logout

33
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 RE0
re1 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
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
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