gabrielgio.me @ 2a646d484b9305dce54386679d2a07ccae6b3196

Add some network material
diff --git a/content/logs/2020-07-13-k8s.org b/content/logs/2020-07-13-k8s.org
index 84228580fb999ddd4b161a07eea05f517ad8ea54..b55c982d6ecbd8624a79b5700f4821e8c67edf07 100644
--- a/content/logs/2020-07-13-k8s.org
+++ b/content/logs/2020-07-13-k8s.org
@@ -20,6 +20,40 @@ - PXE network boot environment
 - Terraform Tectonic [fn:5]
 
 ** Network Setup DHCP/TFTP/DNS
+First learning the basics again:
+
+- https://linuxhint.com/install_dhcp_server_ubuntu/
+- https://www.youtube.com/watch?v=XQ3T14SIlV4
+
+
+To check open ports
+#+BEGIN_SRC sh
+lsof -Pni | grep LISTEN
+#+END_SRC
+
+Run the provided [fn:dnsmasq] image with ~dnsmasq~ and PXE toolkit
+
+#+BEGIN_SRC sh
+docker run --rm --cap-add=NET_ADMIN --net=host quay.io/coreos/dnsmasq \
+  -d -q \
+  --dhcp-range=192.168.1.3,192.168.1.254 \
+  --enable-tftp --tftp-root=/var/lib/tftpboot \
+  --dhcp-match=set:bios,option:client-arch,0 \
+  --dhcp-boot=tag:bios,undionly.kpxe \
+  --dhcp-match=set:efi32,option:client-arch,6 \
+  --dhcp-boot=tag:efi32,ipxe.efi \
+  --dhcp-match=set:efibc,option:client-arch,7 \
+  --dhcp-boot=tag:efibc,ipxe.efi \
+  --dhcp-match=set:efi64,option:client-arch,9 \
+  --dhcp-boot=tag:efi64,ipxe.efi \
+  --dhcp-userclass=set:ipxe,iPXE \
+  --dhcp-boot=tag:ipxe,http://matchbox.example.com:8080/boot.ipxe \
+  --address=/matchbox.example/192.168.1.2 \
+  --log-queries \
+  --log-dhcp
+#+END_SRC
+
+
 ** Matchbox
 ** PXE network boot environment
 ** Terraform Tectonic
@@ -36,3 +70,4 @@ [fn:4]https://coreos.com/matchbox/docs/latest/deployment.html
 
 [fn:5]https://coreos.com/tectonic/releases/
 
+[fn:dnsmasq]https://github.com/poseidon/matchbox/tree/v0.7.0/contrib/dnsmasq