cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2217
Views
0
Helpful
5
Replies

IOS XR Programmability: Can't connect (ssh) to devbox / IOS XRV 9000

dhakal
Level 1
Level 1

Devnet Sandbox LINK:https://devnetsandbox.cisco.com/RM/Diagram/Index/359ca6d7-d999-4e07-ba2d-13e0c6aa3847

Issue:
I cant connect to : devbox / IOS XRV 9000


ad034576$ ssh -p 2211 admin@10.10.20.170
ssh: connect to host 10.10.20.170 port 2211: Connection refused
ad034576$ ssh admin@10.10.20.170 -p 2221
ssh: connect to host 10.10.20.170 port 2221: Connection refused
ad034576$ ssh admin@10.10.20.170
admin@10.10.20.170's password:
Permission denied, please try again.
admin@10.10.20.170's password:

 

I'm following: https://developer.cisco.com/learning/modules/iosxr-streaming-telemetry/03-iosxr-01-telemetry/step/1


5 Replies 5

dhakal
Level 1
Level 1

Seems like these ports are not even opened .
ad034576$ nc -zv 10.10.20.170 2211
nc: connectx to 10.10.20.170 port 2211 (tcp) failed: Connection refused
ad034576$ nc -zv 10.10.20.170 2221
nc: connectx to 10.10.20.170 port 2221 (tcp) failed: Connection refused
ad034576$ nc -zv 10.10.20.170 2231
nc: connectx to 10.10.20.170 port 2231 (tcp) failed: Connection refused

Can anyone help me on this since its blocking me since yesterday ?
I'm running into same issue even after spinning up a new sandbox.

https://devnetsandbox.cisco.com/RM/Diagram/Index/b8a66237-fa29-49b4-9a26-5b6e39f2cb4e 

 

Including: @ zowu @mkorshun 
Please include others as required.

dhakal
Level 1
Level 1

UPDATE:
I'm able to ssh all routers and devbox . However, after few mins (5-10) mins, connection is automatically lost.
Is there any way i can provide more info from the GUI itself ? Please see attached. I hope there is a way to check the detailed activity logs from GUI since we cant access the box (Please see attached).
More debug info / exact logs from the cli :

 

FVFY12LBHV2H:~ ad034576$ clear
FVFY12LBHV2H:~ ad034576$ ssh -p 2221 admin@10.10.20.170

--------------------------------------------------------------------------
  Router 1 (Cisco IOS XR Sandbox)
--------------------------------------------------------------------------


Password:


RP/0/RP0/CPU0:r1#show version
Fri Mar 22 20:37:49.157 UTC

Cisco IOS XR Software, Version 6.4.1
Copyright (c) 2013-2017 by Cisco Systems, Inc.

Build Information:
 Built By     : nkhai
 Built On     : Wed Mar 28 19:20:20 PDT 2018
 Build Host   : iox-lnx-090
 Workspace    : /auto/srcarchive14/prod/6.4.1/xrv9k/ws
 Version      : 6.4.1
 Location     : /opt/cisco/XR/packages/

cisco IOS-XRv 9000 () processor
System uptime is 7 minutes

RP/0/RP0/CPU0:r1#show running-config t
tacacs             tacacs-server  tag-set            taskgroup
tcp                telemetry      telnet             template
tftp               tpa            traceroute-filter  track
traffic-collector
RP/0/RP0/CPU0:r1#show running-config te
telemetry  telnet  template
RP/0/RP0/CPU0:r1#show running-config tel
telemetry  telnet
RP/0/RP0/CPU0:r1#show running-config telemetry
% Incomplete command.
RP/0/RP0/CPU0:r1#show running-config telemetry ?
  model-driven   Model Driven Telemetry configuration commands
  policy-driven  Telemetry policy-driven configuration
RP/0/RP0/CPU0:r1#show running-config telemetry model-driven
Fri Mar 22 20:38:14.446 UTC
% No such configuration item(s)

RP/0/RP0/CPU0:r1#
RP/0/RP0/CPU0:r1#
RP/0/RP0/CPU0:r1#conf t
Fri Mar 22 20:38:17.754 UTC
RP/0/RP0/CPU0:r1(config)#
RP/0/RP0/CPU0:r1(config)#telemetry model-driven ?
  destination-group        Destination Id
  max-containers-per-path  Maximum containers allowed per sensor path,default:16
  max-sensor-paths         Maximum allowed sensor paths, default: 1000
  sensor-group             Sensor group configuration
  subscription             Subscription Id
  <cr>
RP/0/RP0/CPU0:r1(config)#telemetry model-driven
RP/0/RP0/CPU0:r1(config-model-driven)#?
  apply-group              Apply configuration from a group
  apply-group-append       Append apply-group configuration from a group
  apply-group-remove       Remove a group from apply-group configuration
  clear                    Clear the uncommitted configuration
  commit                   Commit the configuration changes to running
  describe                 Describe a command without taking real actions
  destination-group        Destination Id
  do                       Run an exec command
  end                      Exit from configure mode
  exclude-group            Exclude apply-group configuration from a group
  exclude-item             Negate a command or set its defaults
  exit                     Exit from this submode
  max-containers-per-path  Maximum containers allowed per sensor path,default:16
  max-sensor-paths         Maximum allowed sensor paths, default: 1000
  no                       Negate a command or set its defaults
  pwd                      Commands used to reach current submode
  root                     Exit to the global configuration mode
  sensor-group             Sensor group configuration
  show                     Show contents of configuration
  subscription             Subscription Id
RP/0/RP0/CPU0:r1(config-model-driven)#Connection to 10.10.20.170 closed by remote host.
Connection to 10.10.20.170 closed.
FVFY12LBHV2H:~ ad034576$ ssh -p 2221 admin@10.10.20.170
ssh: connect to host 10.10.20.170 port 2221: Connection refused
FVFY12LBHV2H:~ ad034576$ ssh -p 2221 admin@10.10.20.170
ssh: connect to host 10.10.20.170 port 2221: Connection refused
FVFY12LBHV2H:~ ad034576$

FVFY12LBHV2H:~ ad034576$ ssh -p 2211 admin@10.10.20.170
ssh: connect to host 10.10.20.170 port 2211: Connection refused
FVFY12LBHV2H:~ ad034576$ nc -zv 10.10.20.170 2200-2240
nc: connectx to 10.10.20.170 port 2200 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2201 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2202 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2203 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2204 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2205 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2206 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2207 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2208 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2209 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2210 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2211 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2212 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2213 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2214 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2215 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2216 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2217 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2218 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2219 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2220 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2221 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2222 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2223 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2224 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2225 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2226 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2227 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2228 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2229 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2230 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2231 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2232 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2233 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2234 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2235 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2236 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2237 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2238 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2239 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 2240 (tcp) failed: Connection refused
FVFY12LBHV2H:~ ad034576$ nc -zv 10.10.20.170 20-24
nc: connectx to 10.10.20.170 port 20 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 21 (tcp) failed: Connection refused
found 0 associations
found 1 connections:
     1:	flags=82<CONNECTED,PREFERRED>
	outif utun1
	src 192.168.95.1 port 62474
	dst 10.10.20.170 port 22
	rank info not available
	TCP aux info available

Connection to 10.10.20.170 port 22 [tcp/ssh] succeeded!
nc: connectx to 10.10.20.170 port 23 (tcp) failed: Connection refused
nc: connectx to 10.10.20.170 port 24 (tcp) failed: Connection refused
FVFY12LBHV2H:~ ad034576$

 

 

sclake
Cisco Employee
Cisco Employee

Make sure you configure rsa key's and also configure "ssh server vrf Mgmt-intf" if not already present in the configuration.