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 it works…

Steps 1 and 2 create the appropriate network addressing configuration on both the JUNOS device and the OpenBSD host. If you're working in an all JUNOS environment, this is probably slightly easier.

Steps 3 and 4 then proceed to set up the OSPF protocol as per the logical topology diagram. We actively speak the OSPF protocol on interfaces em0 and em1, while using the loopback address as a passive OSPF interface, as is common practice.

In step 5, we validate that the JUNOS router and the OpenBSD router are happily talking OSPF with one another.

Steps 6, 7, and 8 involve the creation of a custom event script handler on the JUNOS device that will be called whenever any OSPF neighbor goes away. We break the construction of the script ...

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