-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathred-lan-taller.yml
More file actions
91 lines (80 loc) · 2.72 KB
/
Copy pathred-lan-taller.yml
File metadata and controls
91 lines (80 loc) · 2.72 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: labtaller
mgmt:
network: redtaller
ipv4-subnet: 172.21.21.0/24
topology:
nodes:
router-cisco:
kind: cisco_iol
image: docker.io/arthurk99/cisco-iol:17.15.01
startup-config: configs/config.partial
switch-cisco:
kind: cisco_iol
image: docker.io/arthurk99/cisco-iol-l2:17.15.01
startup-config: switch/config2.partial
type: l2
PC1:
kind: linux # "Alpine Linux v3.12"
image: ghcr.io/hellt/network-multitool
binds:
- configs/dhcp-client.sh:/root/dhcp-client.sh
exec:
- "sysctl net.ipv6.conf.eth1.addr_gen_mode=3"
- chmod +x /root/dhcp-client.sh
- bash /root/dhcp-client.sh
- ip -6 route del default dev eth0
- ip route del default dev eth0
PC2:
kind: linux # "Alpine Linux v3.12"
image: ghcr.io/hellt/network-multitool
binds:
- configs/dhcp-client.sh:/root/dhcp-client.sh
exec:
- chmod +x /root/dhcp-client.sh
- bash /root/dhcp-client.sh
- "sysctl net.ipv6.conf.eth1.addr_gen_mode=3"
- "sysctl net.ipv6.conf.eth1.addr_gen_mode=2"
- "sysctl net.ipv6.conf.eth1.use_tempaddr=2"
- ip route del default dev eth0
- ip -6 route del default dev eth0
PC3:
kind: linux # "Alpine Linux v3.12"
image: ghcr.io/hellt/network-multitool
binds:
- configs/dhcp-client.sh:/root/dhcp-client.sh
exec:
- chmod +x /root/dhcp-client.sh
- bash /root/dhcp-client.sh
- ip -6 route del default dev eth0
- ip route del default dev eth0
PC4:
kind: linux # "Alpine Linux v3.12"
image: ghcr.io/hellt/network-multitool
binds:
- configs/dhcp-client.sh:/root/dhcp-client.sh
exec:
- chmod +x /root/dhcp-client.sh
- bash /root/dhcp-client.sh
- ip -6 route del default dev eth0
- ip route del default dev eth0
server-web:
kind: linux
image: docker.io/esanchezv/srvhttps:latest
exec:
- ip -6 addr add 2001:db8:50::10/64 dev eth1
- ip route del default dev eth0
- ip -6 route del default dev eth0
- ip -6 route add default via 2001:db8:50::1
binds:
- configs/tallerclab.html:/var/www/localhost/htdocs/index.html
links:
- endpoints: ["router-cisco:Ethernet0/1","switch-cisco:Ethernet0/1"]
- endpoints: ["router-cisco:Ethernet0/2","server-web:eth1"]
- endpoints: ["PC1:eth1","switch-cisco:Ethernet0/2"]
mtu: 1500
- endpoints: ["PC2:eth1","switch-cisco:Ethernet0/3"]
mtu: 1500
- endpoints: ["PC3:eth1","switch-cisco:Ethernet1/0"]
mtu: 1500
- endpoints: ["PC4:eth1","switch-cisco:Ethernet1/1"]
mtu: 1500