The provided examples in the *.cf files can be applied on Juniper JunOS MX devices either on:
- On a router that you already have and by changing the IP address, port, etc... in the examples
- Using containerlab with the provided topology file and the
startup configfiles for juniper-router-a and juniper-router-b
In case of choosing the containerlab option, it is worthwhile to mention that you need to have a Juniper JunOS MX image or docker image present on the host machine running containerlab and having it tagged similar to the topology file; in this case: vrnetlab/vr-vmx:18.3R1.9. In order to convert your image to a Docker image, please check this guide.
Inmanta Service Orchestrator is another containerized piece that can supply a GUI, providing many useful information such as deployment process, agents status and so much more. This container is not a necessity to try out these examples but it is nice to have. We can provide access to it if you contact us.
In order to deploy the provided topology file with containerlab go to the containerlab directory where the topology file is present and:
Verify that the required Docker images are present:
docker imagesThe output should be similar to:
ubuntu@lab~$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
inmanta.com/vr-vmx 18.3R1.9 91e0035e6f3b 7 months ago 4.75GB
vrnetlab/vr-vmx 18.3R1.9 91e0035e6f3b 7 months ago 4.75GB
inmanta dev 7e787600e8b1 2 weeks ago 881MB
postgres 13 7e787600e8a1 2 weeks ago 205MBIf you do not see an output as depicted, it means you do not have those docker images present and need to acquire them from the vendor.
Note:
inmantaandpostgresDocker images are optional and only required if you want to use theService Orchestrator. The license files should be placed underinmanta/serverdirectory.
Deploy the topology:
sudo clab deploy -t topology.ymlAfter the successful deployment, from the machine running the containerlab you can SSH to each router using the default credentials admin:admin@123:
ssh admin@clab-CBCI-juniper-router-a
ssh admin@clab-CBCI-juniper-router-bPlease make sure to copy and paste the provided
startup configfiles onto your respective routers before using the examples. For more information, check this guide.
View the current state:
sudo clab inspect -t topology.ymlDelete the deployed LAB:
sudo clab destroy -t topology.yml