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]
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¶
-
Deploy the downloaded file from your app.
-
Ping from a shell on
client: -
Watch the packets. Right-click the link and choose Capture.
-
Break it a little. Add 200 ms of delay with Link Impairments and ping again.