07-02-2019 02:04 PM
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
Solved! Go to Solution.
07-03-2019 01:43 AM
07-03-2019 01:43 AM
07-03-2019 11:35 AM
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
07-17-2019 04:31 PM - edited 07-17-2019 06:24 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide