cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1573
Views
0
Helpful
3
Replies

No access to Internet on devbox in IOS XR Programmability lab

k_radoynovski
Level 1
Level 1

Hello, dear forum participants,

 

I am doing the sandbox lab IOS XR Programmability.

I connected to devbox successfully.

gold@fedora-vm: ~]$ ssh -l admin 10.10.20.170 -p 2211
admin@10.10.20.170's password:
Last login: Tue Jul 2 13:38:12 2019 from 192.168.122.1
admin@devbox:~$

 

But after that when I went to step 2 of the lab:

https://developer.cisco.com/learning/lab/01-iosxr-01-cli-automation-bash/step/2

it says that I can clone the following resource:

admin@@devbo:~$ git clone https://github.com/CiscoDevNet/iosxr-programmability-devnet-labs-code

 

But I found out that there is no connection to Internet on this device devbox:

admin@devbox:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.122.1 0.0.0.0 UG 0 0 0 eth0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

 

I can ping the default gateway
admin@devbox:~$ ping 192.168.122.1
PING 192.168.122.1 (192.168.122.1) 56(84) bytes of data.
64 bytes from 192.168.122.1: icmp_seq=1 ttl=64 time=0.877 ms
64 bytes from 192.168.122.1: icmp_seq=2 ttl=64 time=0.314 ms
^C
--- 192.168.122.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.314/0.595/0.877/0.282 ms

 

but I cannot ping anything on the Internet,
even IP address.


admin@devbox:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
^C
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 3999ms

 

So, can you please tell me if I am doing something wrong

or the lab instructions are not correct.

Thank you very much in advance.

 

Regards and respect,

Kino Radoynovski

 

1 Accepted Solution

Accepted Solutions

zowu
Cisco Employee
Cisco Employee
Hi Kino, we are sorry for your inconvenience. As you know, we are reinforcing our infrastructure and the Github access would be reopen shortly. In meanwhile, you can clone the git repo to your local machine, and then upload it to devbox using sftp.

./reset_setup.sh running should not be impacted by the outbound firewall rule.

View solution in original post

3 Replies 3

zowu
Cisco Employee
Cisco Employee
Hi Kino, we are sorry for your inconvenience. As you know, we are reinforcing our infrastructure and the Github access would be reopen shortly. In meanwhile, you can clone the git repo to your local machine, and then upload it to devbox using sftp.

./reset_setup.sh running should not be impacted by the outbound firewall rule.

Hello,

thank you for the quick answer!
Actually, while waiting for an answer,

I did exactly this,

I cloned it on my machine and used sftp to transfer the files to devbox.

Thank you for the answer and hope

at some point we will have direct access to github from devbox :)

 

Best regards,

Kino Radoynovski

This is edited version of my post.

 

After I submitted the 2 questions 2 hours ago,

I was able to resolve the issues.

1. Step 3 - I still cannot do

ssh -p 2232 admin@10.10.20.170

but it was not needed,

because on Step 4

ssh access to r1 and r2 worked fine from the python script.

 

2. Step 4 - instead of using devbox that doesn't have Internet connection,

I used my Linux machine, ansible, and docker

and was able to complete the Step 4.

So, consider the issues described below, resolved.

 

--------------------

--------------------

Hello again,

I am unable to do the Step 3 of the OS-XR CLI automation - Python

Step 3: Offbox IOS-XR CLI automation over SSH

When I try to ssh the Router r1

it gives me an error message.

 

[gold@fedora-vm: ~]$ sudo ssh -p 2232 admin@10.10.20.170
admin@10.10.20.170's password:
Last login: Wed Jul 17 23:20:06 2019 from 192.168.122.1
/dev/mem: Permission denied
cat: /proc/tty/driver/serial: Permission denied
/dev/mem: Permission denied
/dev/mem: Permission denied
Cannot open network namespace "xrnns": Permission denied
Cannot open network namespace "xrnns": Permission denied
Cannot open network namespace "xrnns": Permission denied
Cannot open network namespace "xrnns": Permission denied
Cannot open network namespace "xrnns": Permission denied
Cannot open network namespace "xrnns": Permission denied
Cannot open network namespace "xrnns": Permission denied
Cannot open network namespace "xrnns": Permission denied
^CConnection to 10.10.20.170 closed.
[gold@fedora-vm: ~]$

 

---------------------------

 

I am also unable to do the Step 4 of the OS-XR CLI automation - Python

Step 4: Extending offbox automation to Config Management tools

 

because it needs access to docker repository

admin@devbox:~$ docker pull akshshar/ansible-dockerand

 

Since there is no Internet connection on devbox,
this step cannot be executed.

 

Is there some workaround for completing this step?

 

Thank you,

Kino Radoynovski