Skip to content

Commit

Permalink
Reset dhcp config on starts and add in use dhcp-options (#75)
Browse files Browse the repository at this point in the history
* Reset dhcp config on starts and add in use dhcp-options

* Remove `router` and add prefix-length 64 for IPv6
  • Loading branch information
sgoveas authored Aug 8, 2024
1 parent e1ad7bc commit ab9758d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Description=Init configuration for dhcp and tftpboot with dnsmasq
RequiresMountsFor=%t/containers
Wants=network-online.target
After=network-online.target
ConditionPathExists=!/var/.dhcp-configured

[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ dhcp-range=192.168.80.50,192.168.80.199,6h
dhcp-option=option:netmask,255.255.252.0

enable-ra
dhcp-range=fd99:2222:3456::50,fd99:2222:3456::199,6h
dhcp-range=fd99:2222:3456::50,fd99:2222:3456::199,64,6h

dhcp-option=option:router,192.168.80.1
dhcp-option=option:dns-server,192.168.80.1
dhcp-option=option:ntp-server,192.168.80.1

dhcp-option=option6:dns-server,[fd99:2222:3456::1]
dhcp-option=option6:ntp-server,[fd99:2222:3456::1]
dhcp-option=option6:router,[fd99:2222:3456::1]

enable-tftp
tftp-root=/var/lib/tftpboot
Expand All @@ -27,7 +26,8 @@ dhcp-match=set:efi,option:client-arch,9
dhcp-match=set:efi_arm,option:client-arch,11
dhcp-option=tag:efi,67,grubx64.efi
dhcp-option=tag:efi_arm,67,grubaa64.efi

dhcp-option=tag:efi,18,x86_64
dhcp-option=tag:efi_arm,18,aarch64
dhcp-hostsdir=/var/lib/hosts/hostsdir
dhcp-optsdir=/var/lib/hosts/optsdir
expand-hosts
Expand Down

0 comments on commit ab9758d

Please sign in to comment.