Description

This article provides information on how to logon to the PICs via telnet.


Symptoms

The latest Junos version hides the internal address that is assigned to the CPU PIC (MSPIC, ASPIC, and IQ2PIC).

Solution


The PICs on the MS-DPC can be accessed as follows:

Hardware details :

lab@we-labmx4801> show chassis hardware detail | match "MS-DPC"
FPC 1 REV 08 750-024064 YC8017 MS-DPC
PIC 0 BUILTIN BUILTIN MS-DPC PIC
PIC 1 BUILTIN BUILTIN MS-DPC PIC

lab@we-labmx4801> show tnp addresses
Name TNPaddr MAC address IF MTU E H R
master 0x1 02:00:00:00:00:04 em0 1500 0 0 3
master 0x1 02:00:01:00:00:04 em1 1500 0 1 3
re0 0x4 02:00:00:00:00:04 em0 1500 0 0 3
re0 0x4 02:00:01:00:00:04 em1 1500 0 1 3
fpc0 0x10 02:00:00:00:00:10 em0 1500 4 0 3
fpc1 0x11 02:00:00:00:00:11 em0 1500 4 0 3
fpc3 0x13 02:00:00:00:00:13 em0 1500 4 0 3
fpc4 0x14 02:00:00:00:00:14 em0 1500 4 0 3
fpc5 0x15 02:00:00:00:00:15 em0 1500 5 0 3
fpc1.pic0 0x111 02:00:00:00:01:11 em0 1500 4 0 3
fpc1.pic1 0x211 02:00:00:00:02:11 em0 1500 4 0 3
bcast 0xffffffff ff:ff:ff:ff:ff:ff em0 1500 0 0 3
bcast 0xffffffff ff:ff:ff:ff:ff:ff em1 1500 0 1 3

The IP address of the PIC is calculated from the above output:
fpc1.pic0 0x111 => (hex) 0x80.00 .01.11 = (decimal) 128.0. 1.17
fpc1.pic0 0x211 => (hex) 0x80.00 .02.11 = (decimal) 128.0. 2.17

lab@we-labmx4801> start shell
% telnet -Ji fpc1.pic0

Trying 128.0.1.17...
Connected to fpc1.pic0.
Escape character is '^]'.


SDPC PIC platform (1133Mhz XLR processor, 3968MB memory, 0KB flash)

sp10(vty)#

To logon via the CLI:

PIC IP addresses 128.0.1.17 and 128.0.2.17 belong to special
routing-instance and you need to check the instance name with
CLI command " show route private ".
The instance name is __juniper_private1__ .

lab@we-labmx480> show route private

__juniper_private1__ .inet.0: 5 destinations, 9 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.0.0.0/8 *[Direct/0] 1w4d 19:38:17
> via em0.0
[Direct/0] 1w4d 19:38:17
> via em1.0
10.0.0.4/32 *[Local/0] 1w4d 19:38:17
Local
128.0.0.0/2 *[Direct/0] 1w4d 19:38:17
> via em0.0

[Direct/0] 1w4d 19:38:17
> via em0.0
[Direct/0] 1w4d 19:38:17
> via em1.0
[Direct/0] 1w4d 19:38:17
> via em1.0
128.0.0.1/32 *[Local/0] 1w4d 19:38:17
Local
128.0.0.4/32 *[Local/0] 1w4d 19:38:17
Local

To access PICs, telnet to the PIC IP address with the routing instance name:

  • telnet routing-instance __juniper_private1__ 128.0.1.17 

  • telnet routing-instance __juniper_private1__ 128.0.2.17

lab@we-labmx4801> telnet routing-instance __juniper_private1__ 128.0.1.17 
Trying 128.0.1.17... 
Connected to 128.0.1.17.
Escape character is '^]'.

SDPC PIC platform (1133Mhz XLR processor, 3968MB memory, 0KB flash)

sp10(vty)# exit
There is an easy to access via the shell (no root required).

Telnet to MSPIC:
chrisli@TX-SCC-re0> start shell 
% netstat -rn | grep sp-
10.0.0.67/32 S/user 1 ucst 918 4 sp-3/3/0.16383 
128.0.4.19/32 S/user 1 ucst 918 4 sp-3/3/0.16383 
% telnet -Ji 128.0.4.19
Trying 128.0.4.19...
Connected to 128.0.4.19.
Escape character is '^]'.


Stargate platform (700Mhz XLR processor, 3968MB memory, 0KB flash)

sp33(vty)# exit


telnet to IQ2 pic
==============================================================================
Connection closed by foreign host.
%

% netstat -rn | grep pc-
10.0.0.18/32 S/user 0 ucst 1102 3 pc-0/2/0.16383 
10.0.0.19/32 S/user 0 ucst 1103 3 pc-0/3/0.16383 
10.0.0.48/32 S/user 0 ucst 911 3 pc-2/0/0.16383 
10.0.0.49/32 S/user 0 ucst 912 3 pc-2/1/0.16383 
10.0.0.50/32 S/user 0 ucst 913 3 pc-2/2/0.16383 
10.0.0.51/32 S/user 0 ucst 914 3 pc-2/3/0.16383 
10.0.0.64/32 S/user 0 ucst 915 3 pc-3/0/0.16383 
10.0.0.65/32 S/user 0 ucst 916 3 pc-3/1/0.16383 
10.0.0.66/32 S/user 0 ucst 917 3 pc-3/2/0.16383 
10.0.0.130/32 S/user 0 ucst 1116 3 pc-7/2/0.16383 
10.0.0.131/32 S/user 0 ucst 1117 3 pc-7/3/0.16383 
128.0.1.18/32 S/user 0 ucst 911 3 pc-2/0/0.16383 
128.0.1.19/32 S/user 0 ucst 915 3 pc-3/0/0.16383 
128.0.2.18/32 S/user 0 ucst 912 3 pc-2/1/0.16383 
128.0.2.19/32 S/user 0 ucst 916 3 pc-3/1/0.16383 
128.0.3.16/32 S/user 0 ucst 1102 3 pc-0/2/0.16383 
128.0.3.18/32 S/user 0 ucst 913 3 pc-2/2/0.16383 
128.0.3.19/32 S/user 0 ucst 917 3 pc-3/2/0.16383 
128.0.3.23/32 S/user 0 ucst 1116 3 pc-7/2/0.16383 
128.0.4.16/32 S/user 0 ucst 1103 3 pc-0/3/0.16383 
128.0.4.18/32 S/user 0 ucst 914 3 pc-2/3/0.16383 
128.0.4.23/32 S/user 0 ucst 1117 3 pc-7/3/0.16383 
% telnet -Ji 128.0.1.18
Trying 128.0.1.18...
Connected to 128.0.1.18.
Escape character is '^]'.


IQ2 platform (400Mhz MPC 8272 processor, 128MB memory, 1024KB flash)

iq2(vty)# exit