This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
settings [2013/08/22 18:10] mcb30 |
settings [2015/11/05 14:47] mcb30 |
||
---|---|---|---|
Line 80: | Line 80: | ||
===== Applicability ===== | ===== Applicability ===== | ||
+ | Some settings take effect only within a particular scope. In particular, settings specific to a network device take effect only within the scope of that network device. For example, to set the IP address for ''net0'' you must set a value for ''net0/ip'' rather than just ''ip'': | ||
+ | |||
+ | iPXE> set net0/ip 192.168.0.100 | ||
+ | iPXE> route | ||
+ | net0: 192.168.0.100/255.255.255.0 | ||
+ | |||
+ | {{ :clipart:dragon.png?134x132 |Here be dragons}} | ||
+ | |||
+ | ===== Advanced topics ===== | ||
+ | |||
+ | ==== PXE NBPs ==== | ||
+ | |||
+ | PXE NBPs such as Windows Deployment Service's ''wdsnbp.com'' or ''pxelinux.0'' will attempt to retrieve the contents of the various DHCP packets used by iPXE (via the ''PXENV_GET_CACHED_INFO'' API call). For example, ''wdsnbp.com'' will examine these DHCP packets to determine which TFTP server address to use. | ||
+ | |||
+ | There are three packets that may be requested by the PXE NBP: ''DHCPDISCOVER'', ''DHCPACK'' and ''BINL''. iPXE will construct packets for the PXE NBP based on a combination of the actual DHCP packets and settings provided by other means (such as the ''[[:cmd:set]]'' command). | ||
+ | |||
+ | The scoping rules for the PXE NBP packets are slightly different from the logical hierarchy of settings scopes used within iPXE: | ||
+ | |||
+ | * For the DHCPACK packet, any settings within the network device scope (e.g. ''netX/next-server'') will override any top-level settings (e.g. ''next-server''). | ||
+ | * For the BINL packet, any settings present in the ProxyDHCPACK (e.g. ''proxydhcp/next-server'') or in the Boot Server Reply (e.g. ''pxebs/next-server'') will override any top-level settings (e.g. ''next-server''). | ||
+ | |||
+ | If you need to manually pass specific settings to a PXE NBP, then in most cases you should set these within the network device scope. For example, to manually set the TFTP server address and path used by ''wdsnbp.com'', you could use: | ||
+ | |||
+ | set netX/next-server 192.168.1.2 | ||
+ | set netX/filename boot\x86\wdsnbp.com | ||
+ | chain tftp://192.168.1.2/boot/x86/wdsnbp.com | ||