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 description LAN     # cat /etc/hostname.lo0        inet NONE       inet alias NONE
  1. Next configure the JUNOS router with a static route for the special address of interest,, 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 ...

Get JUNOS Automation Cookbook now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.