Управление Eltex vESR через модули Ansible от Cisco

В июне 2023 года российский разработчик и производитель телекоммуникационного оборудования Eltex представил виртуальный сервисный маршрутизотор vESR, доступный для бесплатного тестированя в базовой версии. Конфигурационные команды схожи с Cisco, и при небольших изменениях кода модули Ansible ios_command и ios_config тоже успешно работают. Для этого надо поменять (у меня Ansible установлен в домашнем каталоге пользователя): в файле ~/.local/lib/python3.10/dist-packages/ansible_collections/cisco/ios/plugins/cliconf/ios.py в строке self.send_command("configure terminal") выражение "configure terminal" на "configure" в файле ~/.local/lib/python3.10/dist-packages/ansible_collections/cisco/ios/plugins/terminal/ios.py в строке self....

October 29, 2023

The first acquaintance with the Cisco DevNet Sandbox

Cisco allows you to perform laboratory work or test the APIs in sandbox. It is completely free. All the necessary devices are available in the sandbox permanently or by reservation. Here’s what Cisco writes about it: DevNet Sandbox makes Cisco’s free spread of technology available to developers and engineers by providing packaged labs we call Sandboxes. That’s right, totally free! There are two types of sandboxes, Always-On and Reservation. Each sandbox typically highlight one Cisco product (think, CallManager, APIC, etc)....

July 25, 2021

Запуск CSR1000v в VirtualBox и VMware

В прошлой статье я рассказал как подготовить и запустить любую версию виртуального маршрутизатора Cisco - Cloud Services Router (СSR1000v) в VirtualBox под Windows. С версии Cisco IOS XE 3.13S можно обойтись без настройки последовательного интерфейса. Запускать будем всё тот же релиз 3.15.0S. С официального сайта нужно скачать файлы csr1000v-universalk9.03.15.00.S.155-2.S-std.iso и csr1000v-universalk9.03.15.00.S.155-2.S-std.ova По-моему, сейчас это самая поздняя версия CSR, доступная с аккаунтом Cisco, версии новее требуют различные партнерские отношения с Cisco. Зарегистрироваться можно по адресу....

July 20, 2021

Запуск CSR1000v в VirtualBox (Windows) с эмуляцией serial port

Я расскажу как подготовить и запустить виртуальный маршрутизатор Cisco - Cloud Services Router (СSR1000v) в VirtualBox под Windows с эмуляцией serial port, настроить доступ по telnet, ssh и написать скрипт на python для автоматизации конфигурирования. Необходимый софт С официального сайта нужно скачать файлы csr1000v-universalk9.03.15.00.S.155-2.S-std.iso и csr1000v-universalk9.03.15.00.S.155-2.S-std.ova. По-моему, сейчас это самая поздняя версия CSR, доступная с аккаунтом Cisco, версии новее требуют различные партнерские отношения с Cisco. Зарегистрироваться можно по адресу. Если еще не установлен VirtualBox, скачайте и установите....

July 19, 2021

Setup Cisco CSR1000V in Yandex.Cloud

In Yandex.Cloud, you can deploy a Cisco Cloud Services Router (CSR) 1000v virtual router from a ready-made virtual machine image. There is an awesome manual at this link to Yandex docs. For my experiments, I ran two instances of CSR1000v. I have configured a connection to one of them using SSH. Both of them are interconnected by a local network. This is one of the possible ways to study the training courses of the Cisco Network Academy....

July 17, 2021

First acquaintance with EVE-NG

I got acquainted with the emulated vitrual environment EVE-NG. The image with EVE for VMware (OVF version) and all the necessary utilities can be downloaded from the official website eve-ng.net. Images of devices are easy to find with Google or on the official websites of manufacturers. For example, for mikrotik. You can add your own images in this way (for example, Cisco router and switch images and the windows client side for EVE-NG):...

February 13, 2021

Start Ansible for Docker containers

For some pet projects, I need multiple instances of different servers. The best way is to use Docker. And the best way to automate configuration services that run in docker containers is Ansible. This is the sequence of steps to run Ansible to configure containerized services in Ubuntu. Installing Docker Engine on Ubuntu is very well described on the official website. A summary of the steps: sudo apt-get update sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common curl -fsSL https://download....

September 19, 2020

Управление роутером в GNS3 с Ansible в Windows

В Windows запущен GNS3 с роутером, доступным по telnet (ip 192.168.2.2), установлена Ubuntu в WSL. Как управлять роутером через Ansible? Ставим Ansible sudo apt install ansible Создаем файлы в домашнем каталоге myhosts [cisco-routers] 192.168.2.2 ansible.cfg [defaults] inventory = ./myhosts gathering = explicit telnet_command_show_ver.yml (логин без ввода имени пользователя) --- - name: Run show command on routers hosts: cisco-routers tasks: - name: run show commands telnet: login_prompt: "Password: " password: cisco prompts: - "[>#]" command: - terminal length 0 - show version Выполняем...

April 3, 2020