-
Notifications
You must be signed in to change notification settings - Fork 0
/
topo.clab.yml
43 lines (39 loc) · 1.1 KB
/
topo.clab.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: fair_bandwidth_test
topology:
nodes:
hostA:
kind: linux
image: nicolaka/netshoot
exec:
- ip addr add 192.168.0.101/24 dev eth1
- ip route add 172.16.0.0/24 via 192.168.0.1
hostB:
kind: linux
image: nicolaka/netshoot
exec:
- ip addr add 192.168.0.102/24 dev eth1
- ip route add 172.16.0.0/24 via 192.168.0.1
AP:
kind: bridge
router:
kind: linux
image: nicolaka/netshoot
exec:
- ip addr add 192.168.0.1/24 dev eth1
- ip addr add 172.16.0.1/24 dev eth2
sysctls:
net.ipv6.conf.all.disable_ipv6: 0
net.ipv6.conf.default.disable_ipv6: 0
net.ipv6.conf.all.forwarding: 1
net.ipv4.conf.all.forwarding: 1
wan:
kind: linux
image: nicolaka/netshoot
exec:
- ip addr add 172.16.0.2/24 dev eth1
- ip route add 192.168.0.0/24 via 172.16.0.1
links:
- endpoints: ["hostA:eth1", "AP:eth1"]
- endpoints: ["hostB:eth1", "AP:eth2"]
- endpoints: ["AP:eth3", "router:eth1"]
- endpoints: ["router:eth2", "wan:eth1"]