8.2. Configuring a network interface

Once the required interface is identified it can be configured for use. This is achieved using the up option to the ifconfig command. This is only required if the required interface does not already have the UP flag, in the above case the dm0 interface is marked such because the first interface is marked up by default.

If the DHCP protocol is used no futher configuration is required and the settings will be recovered the first time the interface is accessed.

If an automatic server is unavailable or cannot be used for other reasons manual configuration is neccisary. Applying IP settings manually requires an IP address and netmask and an optional default gateway. Although not an IP setting the address of the TFTP server is specified too. The ifconfig command is used to set the desired values.

Full details on setting fixed addresses and other aspects of configuring interfaces can be found in the ifconfig command documentation.