错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Cisco IOS, Linux, TFTP, and Telnet Labs

  • Brendan Choi

摘要

This chapter serves as the epilogue to Part 1, setting the stage for what follows. This chapter dives into the intricacies of Cisco IOS router administration, leveraging the power of Telnet and Linux VMs for an in-depth exploration. You commence your journey by creating a new GNS3 project that integrates with Linux VMs, Cisco IOS Tcl scripting, Python telnetlib scripts, and TFTP capabilities, setting the stage for efficient Cisco device control through a blend of Tcl and Python scripts. This is an attempt to push you away from the command lines and push you into writing code to replace your tasks. Along the way, I revisit the Python PEP 8 style guide, emphasizing the significance of adhering to coding standards, as exemplified by a simple Python list. This exploration culminates in mastering the art of script-based file transfers to Cisco IOS routers, making the often-complex task of managing IOS configurations and uploading images a streamlined process. As you navigate this landscape, you'll harness the telnetlib library for Python, using it to manage device control and file transfers. Additionally, you venture into the GNS3 project replication by copying (cloning) a GNS3 project, ensuring that your configurations and progress remain intact for the next chapter. In summary, this chapter provides a comprehensive foundation for controlling a single Cisco device using Python scripts, encompassing tasks such as saving running configurations and uploading IOS images. Note that the remaining practical Python Network Automation Labs are exclusively reserved for Part 2 of this book.