pxe_server_dnsmasq_-_uefi

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
pxe_server_dnsmasq_-_uefi [2023/03/30 12:18] – 만듦 koovpxe_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
 </code> </code>
 </WRAP> </WRAP>
 +
 +
 +===== dnsmasq 설정 =====
 +''/etc/dnsmasq.d/pxe.conf'' 파일을 생성한다.
 +
 +<WRAP prewrap>
 +<code vim>
 +### PXE 부팅 설정할 경우
 +# search domain
 +# domain=tecmint
 +
 +bind-dynamic
 +bogus-priv
 +no-resolv
 +
 +#pxe-prompt="Press F8 for menu.", 60
 +#pxe-service=x86PC, "KooV's PXE Server", pxelinux
 +
 +enable-tftp
 +tftp-root=/var/lib/tftpboot
 +
 +#dhcp-boot=pxelinux/pxelinux.0
 +#dhcp-boot=pxelinux.0,pxeserver,192.168.99.2
 +
 +dhcp-match=set:efi-x86_64,option:client-arch,7
 +dhcp-boot=tag:efi-x86_64,BOOTX64.EFI
 +
 +# DHCP range-leases
 +# interface, start, end, netmask, leasetime
 +dhcp-range=ens224,192.168.99.101,192.168.99.199,255.255.255.0,1h
 +
 +### dhcp option
 +# dhcp-option=3   ; 3=router
 +# dhcp-option=6   ; 6=dns-server
 +# dhcp-option=option:router
 +# dhcp-option=option:dns-server
 +
 +# GW 설정
 +dhcp-option=3,192.168.99.1
 +
 +# DNS 설정
 +dhcp-option=6,192.168.99.1,8.8.8.8
 +
 +# Broadcast Address
 +dhcp-option=28,192.168.99.255
 +
 +# NTP Server
 +dhcp-option=42,0.0.0.0
 +
 +# upstream DNS
 +server=1.1.1.1
 +server=8.8.8.8
 +
 +# upstream resolve
 +resolv-file=/etc/resolv.conf.upstream
 +
 +# listen interface
 +interface=ens224,lo
 +
 +# 특정 NIC는 DHCP안함
 +no-dhcp-interface=ens160
 +
 +# DHCP MAC Address 기반 hostname, IP할당 설정.
 +#dhcp-host=00:50:56:86:25:d6,provisioner.ocp.example.com,10.0.0.253
 +#dhcp-host=00:50:56:86:b1:1a,openshift-master-0.ocp.example.com,10.0.0.10
 +#dhcp-host=00:50:56:86:ad:2a,openshift-master-1.ocp.example.com,10.0.0.11
 +#dhcp-host=00:50:56:86:76:93,openshift-master-2.ocp.example.com,10.0.0.12
 +#dhcp-host=00:50:56:86:12:86,openshift-worker-0.ocp.example.com,10.0.0.20
 +#dhcp-host=00:50:56:86:22:0b,openshift-worker-1.ocp.example.com,10.0.0.21
 +
 +</code>
 +</WRAP>
 +
  
  • pxe_server_dnsmasq_-_uefi.1680178717.txt.gz
  • 마지막으로 수정됨: 2023/03/30 12:18
  • 저자 koov