This is one of those things that is probably documented very well somewhere but
I couldn’t find it so I’m writing up how to do it. I don’t take credit (or
responsibility) for any of the programs mentioned here; I’m just a grateful
user. This process has worked a few times in a row for me - most recently with version 1.7.5.4035 - so I feel comfortable recommending it.
As of 13.2 (for most platforms), Juniper ethernet switches now offer Enhanced Layer 2 Services (ELS) which changed
the syntax to configure a number of different objects throughout Junos. Recently I had
to configure DHCP on an EX switch for a customer on EX3300s which were running ELS.
Though Juniper has documentation describing how to configure DHCP on ELS I found that it was light on the details particularly around the situation I needed to support where I had non-contiguous address blocks within the
same network address space.
In my case the customer was running a /23 network block but had static configurations on some PCs out of that address
space so the EX was going to allocate from one small block and then a larger one. If this is on different networks it’s possible to configure overflow pools and link them together.
The key pieces of information that I found missing was:
You must have a network address on the network for which you want to provide DHCP. Note that if you don't have a local address there is no warning on commit, there's just no DHCP handed out.
Multiple address ranges configured in the same pool will overflow from one to the other as needed.
In the end our configuration came out looking like the following:
Put that it’s management onto a custom vmnet which has connectivity to your Mac and external networks (vmnet8 aka Share with my mac should work)
Download Ubuntu 16.04 server
Follow the instructions for installing Docker on ubuntu at docker
I’ve created a small container image to use for testing, get it with ‘docker pull csirkin/alpine-node-echoip’
Create a static route on your Mac to reach the containers via the Ubuntu VM’s address by ‘sudo route -n add 172.17.0.0/16 x.x.x.x’
Start the containers, I’ve been using 3 - ‘docker run -i -t csirkin/alpine-node-echoip’ then cntl-p cntl-q to get back to your Ubuntu cli. Note the IP address which is reported, though they are most likely 172.17.0.2, 172.17.0.3 and 172.17.0.4.
For the past few years I’ve been using Authy to provide 2 Factor Authentication for my Ubuntu system, but somebody suggested that I take a look at Duo as an alternative. I originally started using Authy because I like the Authy app more than Google Authenticator and because it also offered a few other things it could authenticate. Duo seems to provide more options, including Radius and it offers more for free and I like the push option with a token so that when I try to log in to something instead of going to the app to get a code to type in it pops up a notification asking me whether to approve the log in or not.
Recently I was working with a customer and looking to test some SRX Cluster configurations that I had written for them before our lab gear became available. No problem I figured, I can easily mock this up with Firefly Perimeter (aka vSRX) on my laptop. However when I tried I couldn’t get the links between the members to come up and the boxes never clustered.