Run Python and Linux directly on IOS XE? Yes you can! Take your network automation skills to the next level with scripting and automation directly on Cisco devices. You can be a DevNet Engineer!
Amaze others with your knowledge of the Cisco IOS. You don't need python for these scripts. Rock that job interview and show senior network engineers what you can do. Keep on learning and change your life. Get that good paying job by showing your skills.
Menu:
Overview: 0:00
Lab Setup (GNS3 / CSR): 2:00
IOS XE & Container explanation: 3:14
Guestshell Setup: 7:14
Access the Linux Shell: 13:48
Sort out routing: 15:11
SSH to Guestshell remotely: 19:30
Install applications: 22:20
Python scripting: 23:14
=================================
David's Linux & Cisco playlist:
=================================
[ Ссылка ]
=================================
Documentation:
=================================
Cisco IOS Shell Configuration Guide: [ Ссылка ]
================================
Books:
=================================
Cisco Press Book: [ Ссылка ]
Good O'Reilly Book: [ Ссылка ]
=================================
Free DevNet Labs:
=================================
DevNet Lab: Introduction to the Guest Shell: [ Ссылка ]
DevNet Lab: Introduction to On-Box Python: [ Ссылка ]
=================================
CSR Configuration steps:
=================================
! Check if service is running
en
show iox-service
! Configure Basics
conf t
hostname CSR1
interface GigabitEthernet1
no shut
ip address 10.1.1.1 255.255.255.0
exit
exit
! Enable the service
conf t
iox
exit
show iox-service
! Configure Virtual Port
conf t
interface VirtualPortGroup0
ip unnumbered GigabitEthernet1
exit
exit
! Enable the guestshell
guestshell enable VirtualPortGroup 0 guest-ip 10.1.1.2
! Access guestshell
guestshell run bash
! Add DNS information to Linux container
echo nameserver 8.8.8.8 | sudo tee —append /etc/resolv.conf
! Need to set up routing so Router knows how to route
conf t
ip route 10.1.1.2 255.255.255.255 virtualportgroup 0
ip route 0.0.0.0 0.0.0.0 10.1.1.254
ip domain-lookup
ip name-server 8.8.8.8
exit
! Check stuff on guestshell host
======================
sudo ifconfig
cat /etc/resolv.conf
!Add a user
sudo useradd david
sudo passwd david
! Install nano and Python 3
sudo yum install nano -y
! You don't need Python3 for these script examples
sudo yum install python3
=================================
Python Script:
=================================
import sys
import cli
cli.executep(‘show ip int brief’)
cli.executep(‘show ver’)
=================================
Documentation
=================================
Programmability Configuration Guide, Cisco IOS XE Fuji 16.9.x: [ Ссылка ]
Programmability Configuration Guide, Cisco IOS XE Gibraltar 16.10.x: [ Ссылка ]
DevNet presentation: [ Ссылка ]
Hank Preston: [ Ссылка ]
DevNet
10x Engineer
CCNA
Cisco Devnet Associate
Python
Devnet cert
CCNP Enterprise
CCNP Security
CCNP Data Center
CCNP Service Provider
CCNP Collaboration
Cisco Certified Devnet Professional
Cisco Certified Network Professional
LPIC 1
LPIC 2
Linux Professional Institute
LX0-103
LX0-104
XK0-004
#python #linux #DevNet
Python and Linux on Cisco IOS?
Теги
pythonpython ciscodevnetcisco devnetdevnet associatedockerlinux containercisco containerscisco linuxlinuxccnaccna studyccna trainingcisco ccnacisco ccna certificationcisco trainingcomptia linux pluscomptiacomptia linux+information technologykali linuxlinux+ examlpic 1cisco ioscisco ios commandsgns3gns3 david bombalgns3 tutorialcbt nuggetsineccnp10x engineerpython tutorialpython programminglearn python