Posts by Category

python

Python: How to use python-dotenv

1 minute read

Python-dotenv (Keep your secrets safe) Do you know how to keep your secrets safe during development and production? In this article, I am going to guide you on how to work with SECRETS and KEYS without exposing them to the outside world, and keep them safe during development.

Python: Network Automation with Napalm

4 minute read

What is Napalm? NAPALM (Network Automation and Programmability Abstraction Layer with Multi-vendor support) is a Python library that implements a set of functions to interact with different network device Operating Systems using a unified API. Unified API means the same code is used to configure multi-vendor devices.

Python: Reading and Writing Files

2 minute read

Reading and Writing Files Python has several functions for creating, reading, updating, and deleting files.

Python: Network Automation with Netmiko

1 minute read

What is Netmiko? Netmiko is a multi-vendor library to simplify Paramiko SSH connections to network devices. Netmiko supports a wide range of devices. These devices fall into three categories, see supported platforms on Github.

Python: List

1 minute read

Lists Python knows a number of compound data types, used to group together other values. The most versatile is the list, which can be written as a list of comma-separated values (items) between square brackets. Lists might contain items of different types, but usually the items all have the same type.

Python: for loop

1 minute read

for loop in python Python’s for statement iterates over the items of any sequence (a list or a string), in the order that they appear in the sequence. For example:

Python: Network Automation with Paramiko

1 minute read

Paramiko Using telnet in a lab environment for practice or in a fully isolated private network is recommended, but in a production or public network, telnet is vulnerable to cyber attack.

Python: Network Automation with Telnetlib

3 minute read

What is Network Automation? Network automation is the process of automating the configuration, management and operations of a computer network. The tasks that are normally done by the network or system administrator can be automated using a number of tools and technologies such as Python and Ansible.

Python: Virtual Environments

1 minute read

Python Virtual Environments A Python virtual environment is an environment where you can install 3rd party packages for testing without affecting the system Python installation. There are several different ways to create Python virtual environments. We will focus on the following two methods:

Back to Top ↑

networking

Ansible Lab setup with Vagrant

7 minute read

Introduction Ansible is an open-source, powerful, and simple tool for client-server and network device automation. Ansible is agent-less, which means nothing to install on a client only Python is installed and SSH is enabled on the remote host.

Vagrant with VMware Workstation

2 minute read

Introduction Vagrant is for virtual machines what Docker is for containers. Vagrant is a wrapper for different hypervisor programs like VMware Workstation Pro, VMware Player, VirtualBox, Hyper-V, VMware vSphere, etc. Vagrant uses a simple text-based configuration file called Vagrantfile to quickly set up a development environment with one of the supported virtual machine providers/hypervisors.

Getting Started With Vagrant

2 minute read

Introduction A vagrant is a tool for building and managing virtual machine environments in a single workflow. With an easy-to-use workflow and focus on automation, Vagrant lowers development environment setup time, increases production parity, and makes the “works on my machine” excuse a relic of the past.

SSH: Unable to Negotiate Error

1 minute read

Legacy SSH Algorithm and Cipher in Cisco Device’s In this blog, I’m showing you how to enable the legacy SSH algorithm and cipher option on your machine.

Open Shortest Path First

2 minute read

Open Shortest Path First, Short Brief Open Shortest Path First (OSPF) is link-state (OSPFv2 for IPv4) routing protocol for the Internet Protocol (IP) network. OSPF determines the best path (route) in topology at the cost of egress interface (out interface) bandwidth, delay, and load. OSPF falls into the group of interior gateway protocols (IGPs).

Ethernet Fundamentals

1 minute read

Overview of LANs The term Ethernet refers to a family of LAN standards that define physical and data-link layers of the world’s most popular wired LAN technology. The cabling, the connectors of the cables, the protocol rules, to create an Ethernet LAN.

Introduction to TCP/IP Networking

1 minute read

TCP/IP Networking Model A set of protocols, physical requirements, and logical rules that devices must follow to communicate with other network devices.

Networking Essential

1 minute read

What is a network? A computer network is two or more computers to share resources. A network is a collection of computers, servers, network devices, peripherals, or other devices connected to one another to allow the sharing of data.

Back to Top ↑

ansible

Part 07: Ansible and YAML

2 minute read

YAML Introduction YAML is the abbreviated form of “YAML Ain’t markup language” is a data serialization language which is designed to be human-friendly and works well with other programming languages for everyday tasks. YAML is a less complex than XML or JSON and it allows you to provide configuration settings.

Part 06: Ansible Multi version Installation

1 minute read

Ansible and Python3 venv module This is a module shipped by Python3 to create a virtual environment, it creates and used python3 to build the environment. we are going to use this module and deploy multiple Ansible version on same control node, so that even if we have to contact the managed hosts with old python version or for some deprecated feature or any latest one, we are not bounded to dep...

Part 05: Ansible YAML Inventory Setting

1 minute read

Ansible Inventory YAML Format Our last inventory file was the INI format. There is also another format called .yaml or .yml which is more readable and may be required depending on the version of Ansible or module. Therefore, it is a good idea to learn how to create an inventory file in YAML format.

Part 04: Ansible Configuration and Inventory Setting

3 minute read

Ansible Configuration and Creating Inventory File Before we start using Ansible for network automation, there is one more step we need to prepare Ansible. That is preparing Ansible configuration file and inventory file.

Part 03: Ansible Automation Lab Setup with GNS3

6 minute read

Introduction GNS3 is used by hundreds of thousands of network engineers worldwide to emulate, configure, test and troubleshoot virtual and real networks. GNS3 allows you to run a small topology consisting of only a few devices on your laptop, to those that have many devices hosted on multiple servers or even hosted in the cloud.

Part 02: Getting Started with Ansible

2 minute read

Ansible Basic and Installation Ansible modules support a wide range of vendors, device types, and actions, so you can manage your entire network with a single automation tool. Ansible handles communication between control node and managed nodes through multiple protocols:

Part 01: Ansible for Network Automation

1 minute read

What is Ansible? Ansible is a configuration management system. Ansible allows you to automate and simplify the configuration, maintenance, and deployment of servers, services, software, and more.

Back to Top ↑

misc

Vim setting for Python and YAML

less than 1 minute read

Introduction In this short blog, I’m showing you how to set up a vim editor for Python and YAML programming languages. In automation for networking, Python and YAML are used most frequently.

Vim Text Editor Guide

2 minute read

Introduction Vim is a free and open-source, screen-based text editor program. In many Linux distributions is the default text editor. In this blog, I’m showing you the vim text editor commands to be more productive using vim as a beginner, because vim is a great choice among Linux users but is difficult to use as a newbie.

Getting Started with Git and GitHub

9 minute read

What is Git? Git is a distributed version control system (VCS) that maintains a history of changes to files for reference and rolls back a change. It is software for tracking changes in any set of files, usually used for coordinating work among programmers who are collaborating on the same source code, and widely used, released under GNU GPL v2 license.

Back to Top ↑

linux

Linux Terminal and Vim: An Integration Guide

5 minute read

Introduction Productivity tools on Linux often include both a status line and a prompt. The function of a status line is to display important information relevant to the program’s current context, and a prompt identifies where a program is expecting some input from the user. Some good application examples that utilize these features include the Linux shell and Vim.

How to Connect Linux Host PC (Ubuntu) with GNS3

less than 1 minute read

How to install a tap0 interface in Linux for GNS3 After installation of GNS3, we will install loopback adapter on our Ubuntu systems, so that we can connect to devices’s in GNS3 from our host OS.

Linux Networking Commands

less than 1 minute read

Linux Networking Commands In this memo, I’m showing Linux networking commands to remember as a network engineer/technician.

Back to Top ↑

docker

Part 03: Docker for Network Automation

6 minute read

Automation with Docker It was far easier to learn how to use Docker than to dive into all the details of an application. Using Docker allows you to leverage pre-built, ready-to-use container images. If an application consists of multiple components (i.e. a database, a front-end and a back-end) you can deploy multiple containers and link them.

Part 02: Docker for Network Automation

10 minute read

Docker networking overview lab In Docker networking, we will learn some basic concepts and prepares you to design and deploy your applications to take full advantage of these capabilities.

Part 01: Docker for Network Automation

5 minute read

What is Docker? Docker is software that runs on Linux and Windows. It creates, manages, and can even orchestrate containers. The software is currently built from various tools from the open-source project

Back to Top ↑