Ubuntu pxe support uefi

本文详细介绍了如何修改DHCP服务配置文件,包括IPv4和IPv6的设置。针对不同的网络环境,提供了具体的配置示例,如子网设置、租约时间、启动文件路径等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

http://djmimi-linux.blogspot.com/

Step 4. Modify DHCP service configuration

#vi /etc/dhcp/dhcpd.conf                                                                        

default-lease-time 14400;
max-lease-time 86400;
ddns-update-style none;
subnet 192.168.10.0 netmask 255.255.255.0 {
  option broadcast-address 192.168.10.255;
  option routers 192.168.10.1;
  range 192.168.10.2 192.168.10.253;
  next-server 192.168.10.1;
  if substring (option vendor-class-identifier, 15, 5) = "00007" {
    filename "/BOOTX64.efi";
  }
  else  {
    filename "/pxelinux.0";
  }
}

#vi /etc/dhcp/dhcpd6.conf                                                                       

allow booting;
allow bootp;
ddns-update-style none;
default-lease-time 2592000;
preferred-lifetime 604800;
option dhcp-renewal-time 3600;
option dhcp-rebinding-time 7200;
option dhcp6.bootfile-url code 59 = string;
allow leasequery;
option dhcp6.info-refresh-time 21600;
subnet6 2001::/112 {
        range6 2001::1001 2001::fffe;
        option dhcp6.bootfile-url "tftp://[2001::1]/bootx64.efi";
}

参考资料:

https://www.centos.org/docs/5/html/Installation_Guide-en-US/s1-netboot-tftp.html

 

Legacy PXE

https://linux.cn/article-6553-1.html?amputm_medium=rss

 

Fedora

estcase UEFI pxeboot

https://fedoraproject.org/wiki/QA:Testcase_UEFI_pxeboot

 

转载于:https://www.cnblogs.com/boowii/p/6097328.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值