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 ...

Get JUNOS Automation Cookbook now with O’Reilly online learning.

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