User Tools

Site Tools


containerlab

This is an old revision of the document!


ContainerLab

JNCIA

name: jncia
mgmt:
  network: clab-mgmt-net
  ipv4-subnet: 172.99.21.0/24
  ipv6-subnet: ""

topology:
  nodes:
    router1:
      kind: juniper_vsrx
      image: vrnetlab/juniper_vsrx:24.4R1-S2.9
      startup-config: vsrx-backups/clab-jncia-router1.conf

    router2:
      kind: juniper_vsrx
      image: vrnetlab/juniper_vsrx:24.4R1-S2.9
      startup-config: vsrx-backups/clab-jncia-router2.conf

    client1:
      kind: linux
      image: alpine:latest
      exec:
        - ip link set dev eth1 up
        - ip addr add 192.168.11.10/24 dev eth1
        - ip -4 route del default
        - ip -6 route del default
        - ip route add default via 192.168.11.1

    client2:
      kind: linux
      image: alpine:latest
      exec:
        - ip link set dev eth1 up
        - ip addr add 192.168.12.10/24 dev eth1
        - ip -4 route del default
        - ip -6 route del default
        - ip route add default via 192.168.12.1

    switch1:
      kind: juniper_vjunosswitch
      image: vrnetlab/juniper_vjunos-switch:24.4R1.9
      startup-config: vsrx-backups/clab-jncia-switch1.conf

    switch2:
      kind: juniper_vjunosswitch
      image: vrnetlab/juniper_vjunos-switch:24.4R1.9
      startup-config: vsrx-backups/clab-jncia-switch2.conf

    br0:
      kind: bridge

  links:
    - endpoints: ["router1:ge-0/0/0", "switch1:ge-0/0/1"]
    - endpoints: ["router2:ge-0/0/0", "switch2:ge-0/0/1"]
    - endpoints: ["switch1:ge-0/0/0", "switch2:ge-0/0/0"]
    - endpoints: ["router1:ge-0/0/1", "br0:vnet11"]
    - endpoints: ["router2:ge-0/0/1", "br0:vnet12"]
    - endpoints: ["router1:ge-0/0/2", "client1:eth1"]
    - endpoints: ["router2:ge-0/0/2", "client2:eth1"]
root@containerlab3:/home/jonathan/containerlab/jncia
containerlab.1753801893.txt.gz · Last modified: by jonathan