PXE Server dnsmasq - UEFI
tftp server 설치
[root@pxe ~]# dnf install tftp-server [root@pxe ~]# firewall-cmd --add-service=tftp [root@pxe ~]# systemctl enable --now tftp.socket
dnsmasq 설정
/etc/dnsmasq.d/pxe.conf
파일을 생성한다.
### 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
로그인하면 댓글을 남길 수 있습니다.