|
DHCP is the Dynamic Host Configuration Protocol, and allows a networked machine to obtain its IP address and other information automatically. For a full description of DHCP please see the DHCP mini-HOWTO, or for implementation details RFC2131 gives the full specification. If you normally use DHCP for obtaining IP addresses, than it may not be convenient to allocate a fixed IP address for the ST40 target. There are two possible solutions to this, kernel level configuration or user level configuration. Kernel level auto-configurationUsing kernel level auto-configuration of the network interfaces has the advantage that that when the kernel has finished booting, it will already have a valid IP address, and so can mount an NFS root file system. This disadvantage of this technique is that the kernel only supports BOOTP level configuration. Most DHCP server can also be configured to respond to BOOTP requests, but you have to ask your network administrator to enable them. The other disadvantage is that BOOTP can only configure basic network parameters, and does not include things such as DNS servers. To do this, then simply remove the definitions of TARGETIP, GWIP and NETMASK, from the script used previously, and change AUTOCONF to bootp. User level auto-configurationUser level auto-configuration gives much more flexibility, but has the disadvantage that the system must have a root file system available when it has finished booting, which does not depend on the network being configured. This typically means a hard drive or a RAM or ROM disk. The program used to make the DHCP requests and configure the network interface is 'pump'. To use it:
|
|||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||