차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 다음 판 | 이전 판 | ||
| pxe_server_dnsmasq_-_uefi [2023/03/30 12:18] – 만듦 koov | pxe_server_dnsmasq_-_uefi [2024/10/17 04:25] (현재) – [tftp server 설치] koov | ||
|---|---|---|---|
| 줄 6: | 줄 6: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | [root@pxe ~]# dnf -y install tftp-server | + | [root@pxe ~]# dnf install tftp-server |
| + | [root@pxe ~]# firewall-cmd --add-service=tftp | ||
| [root@pxe ~]# systemctl enable --now tftp.socket | [root@pxe ~]# systemctl enable --now tftp.socket | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== dnsmasq 설정 ===== | ||
| + | ''/ | ||
| + | |||
| + | <WRAP prewrap> | ||
| + | <code vim> | ||
| + | ### PXE 부팅 설정할 경우 | ||
| + | # search domain | ||
| + | # domain=tecmint | ||
| + | |||
| + | bind-dynamic | ||
| + | bogus-priv | ||
| + | no-resolv | ||
| + | |||
| + | # | ||
| + | # | ||
| + | |||
| + | enable-tftp | ||
| + | tftp-root=/ | ||
| + | |||
| + | # | ||
| + | # | ||
| + | |||
| + | dhcp-match=set: | ||
| + | dhcp-boot=tag: | ||
| + | |||
| + | # DHCP range-leases | ||
| + | # interface, start, end, netmask, leasetime | ||
| + | dhcp-range=ens224, | ||
| + | |||
| + | ### dhcp option | ||
| + | # dhcp-option=3 | ||
| + | # dhcp-option=6 | ||
| + | # dhcp-option=option: | ||
| + | # dhcp-option=option: | ||
| + | |||
| + | # GW 설정 | ||
| + | dhcp-option=3, | ||
| + | |||
| + | # DNS 설정 | ||
| + | dhcp-option=6, | ||
| + | |||
| + | # Broadcast Address | ||
| + | dhcp-option=28, | ||
| + | |||
| + | # NTP Server | ||
| + | dhcp-option=42, | ||
| + | |||
| + | # upstream DNS | ||
| + | server=1.1.1.1 | ||
| + | server=8.8.8.8 | ||
| + | |||
| + | # upstream resolve | ||
| + | resolv-file=/ | ||
| + | |||
| + | # listen interface | ||
| + | interface=ens224, | ||
| + | |||
| + | # 특정 NIC는 DHCP안함 | ||
| + | no-dhcp-interface=ens160 | ||
| + | |||
| + | # DHCP MAC Address 기반 hostname, IP할당 설정. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||