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

Getting ready

In this recipe, we'll produce a SLAX op script that will audit a running configuration to find interfaces that are eligible to run source address filtering—known in JUNOS as rpf-check—and will optionally configure it, either across the whole box or on an interface by interface basis.

Our script will use a command-line interface that operates in the following manner:

Parameter

Description

mode check

Audits interfaces for RPF check eligibility (Default mode).

mode apply

Configures interfaces for RPF checking.

mode remove

Remove RPF checking from an interface.

interface interface

Specifies an interface to operate on.

In order to complete this recipe, you need access to a general management and ...

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