Afenioux's Blog page

3am; darkness; Maintenance window closing. Safety net: rollback.

Triggers for iTerm2 (example for Arista EOS)

Written by Arnaud no comments

I wrote some triggers to get colors when using iTerm2 (screenshot below) with Arista EOS but it should also work on Cisco IOSes with some minor tuning.

iTerm2 is a replacement for Terminal and the successor to iTerm. It works on Macs with macOS 10.14 or newer. It allows you to create Triggers. Triggers watch for text matching a regular expression to arrive in a terminal session and then perform an action in response. You can't import triggers from a file/profile but you can configure them on "Preferences, Profile, Advanced, Edit Triggers".

The whole options are detailed in the official documentation for triggers.

Read more Triggers for iTerm2 (example for Arista EOS)

Classified in : Arista Tags : none

Dropping RPKI/ROA invalid routes on Arista EOS

Written by Arnaud no comments

If needed, please read my previous blog post to configure your RPKI/ROA validators and sFlow visualisation with pmacct/influxDB/Grafana. It's always better to see what you are doing :)

I found several interesting documentation on the Arista website :
- Standalone BGP Origin Validation with RPKI : https://eos.arista.com/bgp-origin-validation-rpki/
- Securing Inter Domain Routing with RPKI : https://eos.arista.com/sidr-with-rpki/
- BGP Prefix Origin Validation with Resource Public Key Infrastructure (RPKI) : https://eos.arista.com/eos-4-24-0f/bgp-prefix-origin-validation-with-resource-public-key-infrastructure-rpki/

This page is a memo of the useful commands I used (and some tips) :

Read more Dropping RPKI/ROA invalid routes on Arista EOS

See traffic according to RPKI/ROA validation state with pmacct, influxdb and grafana

Written by Arnaud no comments

I will skip the explanations around RPKI/ROA and ROV (Route Origin Validation), I guess you already know the "basics"; if not, you should check this very well written "RPKI documentation" : https://rpki.readthedocs.io/en/latest/index.html
I also suggest to see this presentation "From Zero to RPKI Hero" to get explanations of how things works and how to setup your validator(s) and router's configuration : https://www.youtube.com/watch?v=7OBBz-IcEl4

We will now see the RPKI validators, PMACCT configuration, how to import pmacct data to influxDB and make some fancy graphs with grafana. As you will see below some traffic considered as "Invalid but Valid*" might need some investigations before dropping RPKI/ROA invalid routes as your may lose more traffic than expected if you are a transit provider.

Read more See traffic according to RPKI/ROA validation state with pmacct, influxdb and grafana

Classified in : Uncategorized Tags : none

Arista EOS : sync dir and files between supervisor cards

Written by Arnaud no comments

I know some files (like startup-config) are synchronized between supervisor cards on Arista chassis :

DCS-7508N(s1)#show redundancy file-replication
0 files unsynchronized, 5 files synchronized, 0 files failed, 5 files total.

File                         Status             Last Synchronized
---------------------------- ------------------ --------------------
file:persist/secure          Synchronized       45 days, 5:52:41 ago
file:persist/sys             Synchronized       0:04:05 ago
flash:.assetTags             Synchronized       45 days, 5:52:41 ago
flash:startup-config         Synchronized       0:38:59 ago
flash:zerotouch-config       Synchronized       45 days, 5:52:42 ago

But I could not find any way to synchronize my homemade scripts easily, so I wrote a script to do it :

Read more Arista EOS : sync dir and files between supervisor cards

Classified in : Arista Tags : none

Enhanced version of "Nagios monitoring script" for Oxidized

Written by Arnaud no comments

As presented in the readme file of Oxidized project :
"Oxidized is a network device configuration backup tool. It's a RANCID replacement! Light and extensible, Oxidized supports more than 120 operating system types."

But, there was some oversights in the version I found, so here is my (small) contribution :

Read more Enhanced version of "Nagios monitoring script" for Oxidized

Classified in : MISC Tags : none

FRnOG33 - How to put a bird on a docker container
 on arista?

Written by Arnaud no comments

This is the presentation I made at FRnOG #33 to explain how we virtualized our route-server services at HOPUS.net with BIRD, docker on arista EOS : https://afenioux.fr/doc/presentations/FRnOG33-2019.pdf

Keywords are : #Docker #Arista #BIRD #route-server #NFV #SDN #bingo!

(Scripts and details below)

Read more FRnOG33 - How to put a bird on a docker container
 on arista?

Rss feed of the articles