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…

First of all, let's set up the network elements so that they are consistent with the logical topology in the diagram.

  1. Configure the OpenBSD UNIX host so that it has the appropriate network addresses on its interfaces.
     # cat /etc/hostname.em1                                          inet 10.0.211.220 255.255.255.0 10.0.211.255 description LAN     # cat /etc/hostname.lo0        inet 127.0.0.1 255.0.0.0 NONE       inet alias 10.255.255.220 255.255.255.255 NONE
  1. Next configure the JUNOS router with a static route for the special address of interest, 10.255.255.220, which we'll call the service address. However, don't use the ordinary syntax for defining a static route with a next-hop. Instead, use the following method, which deploys a qualified-next-hop where we can adjust the routing-preference ...

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