O'Reilly logo

JUNOS Automation Cookbook by Adam Chappell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

We're going to set up ExaBGP on our Python development and management host and then configure it to connect to our JUNOS OS routers in order to provide them with a feed of access control rules that they should apply to all interfaces. For the purposes of this recipe, we'll use our test JUNOS OS VM on 10.0.201.201 as our router, and our management host will be on 10.0.201.1.

  1. Download and install ExaBGP. For the purposes of this recipe, we're using ExaBGP 3.4.18 with Python 2.7.12.
      $ pip install exabgp
  1. Create an ExaBGP configuration file, flowspec.cfg, which is responsible for configuring ExaBGP to connect to our JUNOS routers, communicate with them by using the IP flow address family, and take instructions from a downstream ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required