User`s guide

5-17
Tips and Features for Administrators
Example Network Configuration Batch File
An example network configuration batch file named NetConf.nsh is installed in the EFI
directory of the EFI Service Partition.
This file loads the TCP/IP, configures the Ethernet interface to the IP address given as first
argument to this file, configures the optional second argument as the gateway, and loads
the FTP Server (daemon).
echo –off
if %1empty == empty then
echo usage netconf {local ip–addr} [router ip addr]
goto End
endif
load fs0:\efi\tools\tcpipv4.efi
ifconfig sni0 %1 netmask 255.255.255.0
if not %2empty == empty then
route add default %2
endif
load fs0:\EFI\Tools\ftpd.efi
:End
Note:
The IP addresses and netmask indicated in this file and in the following example are only
examples and must be modified to reflect site network configuration:
fs0:\> Netconf 129.182.189.3 129.182.189.1
129.182.189.3 is the <ip address>
129.182.189.1 is the <gateway ip address>
File Transfer Protocol (FTP)
An FTP Client and an FTP Server are provided with the EFI Utilities.
1. Configure the network. See Manual Network Configuration.
2. Load the FTP Server via the EFI load command.
3. Load the FTP Client via the EFI ftp command. This Client supports most ftp directives
(open, get, put, ...). Use the help directive if you need help.
Note:
As the load command does not use the search path to locate protocols, specify the path if it
is not in the current working directory and the .efi extension.
load fs0:\efi\tools\ftpd.efi
The FTP Server is now available for use and accepts anonymous connections (one at a
time).
Important:
Once the EFI drivers for the TCP/IP, the FTP Server or FTP Client are loaded, you
cannot load an Operating System.
To load an Operating System, reset the domain and return to Boot Manager.