Ansible Playbook for Cisco BGP Routing Topology

Bernd Malmqvist
Dec 5, 2017 · 3 min read
---

hostname: rtr-1
domain_name: lab.local

loopback:
address: 10.255.0.1
mask: 255.255.255.255

interfaces:
0/1:
alias: connection rtr-2
address: 10.0.255.1
mask: 255.255.255.252

0/2:
alias: connection rtr-3
address: 10.0.255.5
mask: 255.255.255.252

bgp:
asn: 65001
neighbor:
- {address: 10.0.255.2, remote_as: 65000}
- {address: 10.0.255.6, remote_as: 65000}
networks:
- {network: 10.0.255.0, mask: 255.255.255.252}
- {network: 10.0.255.4, mask: 255.255.255.252}
- {network: 10.255.0.1, mask: 255.255.255.255}
maxpath: 2
---

- hosts: all

connection: local
user: vagrant
gather_facts: 'no'

roles:
- hostname
- interfaces
- routing

Bernd Malmqvist

Written by

Highly versatile Senior technical Lead Engineer, I am a consummate and competent qualified IT Professional specialising in distributed systems

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade