Skip to content

Linux playground

The smallest useful lab: two Linux containers with the usual network tools, and one link. No network OS image, no license, runs on any Docker host.

name: linux-playground
 
topology:
  defaults:
    kind: linux
    image: ghcr.io/srl-labs/network-multitool:latest
 
  nodes:
    client:
      exec:
        - ip address add 10.10.10.1/24 dev eth1
    server:
      exec:
        - ip address add 10.10.10.2/24 dev eth1
 
  links:
    - endpoints: [client:eth1, server:eth1]

The exec lines give client the address 10.10.10.1/24 and server 10.10.10.2/24 on eth1 when the containers start.

Try it

  1. Deploy the downloaded file from your app.

  2. Ping from a shell on client:

    ping -c 3 10.10.10.2
    
  3. Watch the packets. Right-click the link and choose Capture.

  4. Break it a little. Add 200 ms of delay with Link Impairments and ping again.