Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
cmd:ifconf [2014/01/29 14:17]
mcb30
cmd:ifconf [2014/01/29 14:22]
mcb30
Line 52: Line 52:
  
 ''​ifconf''​ will not automatically close all other network interfaces before starting to attempt automatic configuration. ​ If you have already opened other network interfaces, then you may wish to execute ''​[[:​cmd:​ifclose]]''​ before executing ''​ifconf''​. ''​ifconf''​ will not automatically close all other network interfaces before starting to attempt automatic configuration. ​ If you have already opened other network interfaces, then you may wish to execute ''​[[:​cmd:​ifclose]]''​ before executing ''​ifconf''​.
 +
 +''​ifconf''​ will succeed if **any** configurator manages to successfully obtain a configuration. ​ If you want to ensure that both DHCP and IPv6 have succeeded, then you must use each configurator explicitly:
 +
 +    ifconf -c dhcp
 +    ifconf -c ipv6
  
 Automatic configuration via DHCP will succeed if it manages to obtain an IP address. ​ If you are using a ProxyDHCP server to provide a boot filename, then you may wish to keep retrying DHCP until it obtains a response from the ProxyDHCP server as well as obtaining the IP address from the DHCP server. ​ You can do this using a script fragment such as: Automatic configuration via DHCP will succeed if it manages to obtain an IP address. ​ If you are using a ProxyDHCP server to provide a boot filename, then you may wish to keep retrying DHCP until it obtains a response from the ProxyDHCP server as well as obtaining the IP address from the DHCP server. ​ You can do this using a script fragment such as:
  
     :retry     :retry
-    ifconf && isset ${filename} || goto retry+    ifconf ​-c dhcp && isset ${filename} || goto retry
  
cmd/ifconf.txt ยท Last modified: 2021/01/26 17:34 by mcb30
Recent changes RSS feed CC Attribution-Share Alike 4.0 International Driven by DokuWiki
All uses of this content must include an attribution to the iPXE project and the URL https://ipxe.org
References to "iPXE" may not be altered or removed.