gabrielgio.me @ 2a646d484b9305dce54386679d2a07ccae6b3196

Add some network material
 1diff --git a/content/logs/2020-07-13-k8s.org b/content/logs/2020-07-13-k8s.org
 2index 84228580fb999ddd4b161a07eea05f517ad8ea54..b55c982d6ecbd8624a79b5700f4821e8c67edf07 100644
 3--- a/content/logs/2020-07-13-k8s.org
 4+++ b/content/logs/2020-07-13-k8s.org
 5@@ -20,6 +20,40 @@ - PXE network boot environment
 6 - Terraform Tectonic [fn:5]
 7 
 8 ** Network Setup DHCP/TFTP/DNS
 9+First learning the basics again:
10+
11+- https://linuxhint.com/install_dhcp_server_ubuntu/
12+- https://www.youtube.com/watch?v=XQ3T14SIlV4
13+
14+
15+To check open ports
16+#+BEGIN_SRC sh
17+lsof -Pni | grep LISTEN
18+#+END_SRC
19+
20+Run the provided [fn:dnsmasq] image with ~dnsmasq~ and PXE toolkit
21+
22+#+BEGIN_SRC sh
23+docker run --rm --cap-add=NET_ADMIN --net=host quay.io/coreos/dnsmasq \
24+  -d -q \
25+  --dhcp-range=192.168.1.3,192.168.1.254 \
26+  --enable-tftp --tftp-root=/var/lib/tftpboot \
27+  --dhcp-match=set:bios,option:client-arch,0 \
28+  --dhcp-boot=tag:bios,undionly.kpxe \
29+  --dhcp-match=set:efi32,option:client-arch,6 \
30+  --dhcp-boot=tag:efi32,ipxe.efi \
31+  --dhcp-match=set:efibc,option:client-arch,7 \
32+  --dhcp-boot=tag:efibc,ipxe.efi \
33+  --dhcp-match=set:efi64,option:client-arch,9 \
34+  --dhcp-boot=tag:efi64,ipxe.efi \
35+  --dhcp-userclass=set:ipxe,iPXE \
36+  --dhcp-boot=tag:ipxe,http://matchbox.example.com:8080/boot.ipxe \
37+  --address=/matchbox.example/192.168.1.2 \
38+  --log-queries \
39+  --log-dhcp
40+#+END_SRC
41+
42+
43 ** Matchbox
44 ** PXE network boot environment
45 ** Terraform Tectonic
46@@ -36,3 +70,4 @@ [fn:4]https://coreos.com/matchbox/docs/latest/deployment.html
47 
48 [fn:5]https://coreos.com/tectonic/releases/
49 
50+[fn:dnsmasq]https://github.com/poseidon/matchbox/tree/v0.7.0/contrib/dnsmasq