#92: Python and Linux on Cisco IOS?
David Bombal2 Okt 2019

#92: Python and Linux on Cisco IOS?

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:01 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 ================================= Documentation: ================================= Cisco IOS Shell Configuration Guide: http://bit.ly/2kwMyYN ================================ Books: ================================= Cisco Press Book: https://amzn.to/2LpaU1a Good O'Reilly Book: https://amzn.to/2Lpbw6Z ================================= Free TFTP Server: ================================= Free SolarWinds TFTP Server: http://bit.ly/2mbtD6j ================================= Free DevNet Labs: ================================= DevNet Lab: Introduction to the Guest Shell: http://bit.ly/2oq9fj7 DevNet Lab: Introduction to On-Box Python: http://bit.ly/2nEXjcI ================================= 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: http://bit.ly/2lUSETq Programmability Configuration Guide, Cisco IOS XE Gibraltar 16.10.x: http://bit.ly/2mErAIo DevNet presentation: http://bit.ly/2lWedD8 Hank Preston: http://bit.ly/2nu4VyG 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 David’s details: YouTube: https://www.youtube.com/davidbombal Twitter: https://www.twitter.com/davidbombal Instagram: https://www.instagram.com/davidbombal LinkedIn: https://www.linkedin.com/in/davidbombal Facebook: https://www.facebook.com/davidbombal.co Website: http://www.davidbombal.com #python #linux #DevNet

Denne episoden er hentet fra en åpen RSS-feed og er ikke publisert av Podme. Den kan derfor inneholde annonser.

Episoder(500)

#577: My Dream "home lab"

#577: My Dream "home lab"

Join me for an exclusive, behind-the-scenes tour of Cisco's purpose-built $20 million AI data center lab in San Jose. AI is revolutionizing the tech industry, but running massive 10,000 GPU clusters c...

22 Mai 28min

#576: How to track dark ships using OSINT (with demos)

#576: How to track dark ships using OSINT (with demos)

Big thank you to DeleteMe for sponsoring this video. Use my link https://joindeleteme.com/Bombal to receive a 20% discount or use the QR Code in the video. In this OSINT deep dive, professional OSINT...

23 Apr 49min

#575: AI attackers are winning. Here is the SECRET to survive.

#575: AI attackers are winning. Here is the SECRET to survive.

Are AI attackers winning the cybersecurity war? In this video, I sit down with Daniel Miessler, a 25-year security veteran, to discuss the terrifying reality of AI-driven cyber attacks and the massive...

14 Apr 1h

#574: Hacking Windows Active Directory in 10 minutes

#574: Hacking Windows Active Directory in 10 minutes

Thank you ThreatLocker for sponsoring my trip to ZTW26 and also for sponsoring this video. To start your free trial with ThreatLocker please use the following link: https://www.threatlocker.com/david...

14 Apr 25min

#573: WhatsApp Hackers for Hire on the Dark Web (Surprisingly cheap)

#573: WhatsApp Hackers for Hire on the Dark Web (Surprisingly cheap)

Thank you to ThreatLocker for sponsoring my trip to ZTW26 and also for sponsoring this video. To start your free trial with ThreatLocker please use the following link: https://www.threatlocker.com/d...

7 Apr 27min

#572: How Cisco Protects AI Agents in Modern Data Centers

#572: How Cisco Protects AI Agents in Modern Data Centers

Big thanks to Cisco for sponsoring this video and sponsoring my trip to Cisco Live Amsterdam 2026. Join David as he sits down with Cisco's Dave West (SVP, Global Specialists), to unpack the technical...

31 Mar 14min

#571: Google Big Sleep: The End of Human Hackers?

#571: Google Big Sleep: The End of Human Hackers?

Big thank you to DeleteMe for sponsoring this video. Use my link http://jointdeleteme.com/Bombal to receive a 20% discount or use the QR code in the video. Welcome back to the channel! In this deep ...

31 Mar 1h 8min

#570: 100 Terabit Smart Switches: What You Need to Know

#570: 100 Terabit Smart Switches: What You Need to Know

Thank you to Cisco for sponsoring my trip to the Cisco AI Lab in San Jose. In this deep dive into the future of data center networking, we sit down to explore the massive shifts happening in AI infra...

31 Mar 36min

Populært innen Teknologi

lydartikler-fra-aftenposten
romkapsel
teknisk-sett
energi-og-klima
tomprat-med-gunnar-tjomlid
nasjonal-sikkerhetsmyndighet-nsm
elektropodden
fornybaren
hans-petter-og-co
rss-snakk-om-sikkerhet
shifter
rss-heis
rss-ai-forklart
teknologi-og-mennesker
i-loopen
rss-ki-praten
smart-forklart
rss-byggepodden
rss-digitaliseringspadden
rss-alt-vi-kan