The text of a manual · part 10 of 20
6400 Computer TCP/IP Client User's Guide: Section 2, 6400 TCP/IP Client, pages 77 to 86
Pages 77 to 86 of 162, from 6400 Computer TCP/IP Client User's Guide
The original document is the PDF (836 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 6400
Page 77
SECTION 2
6400 TCP/IP Client
Static Address Allocation
With static address allocation, the client always gets the same IP address identified by its MAC address or by its client ID. For dynamic address allocation, the DHCP server identifies the client configuration by its subnet number.
Assigning DHCP Leases DHCP leases offer an automated mechanism for the safe distribution and reuse of IP addresses. A DHCP server assigns a lease to your 6400 computer when the server assigns a temporary IP address. The lease can vary in time from a few minutes to several years. The server sets a default value for the lease time. When the DHCP client requests an address, the client also can request a lease time. If the requested lease time is equal to or less than the server default value, the DHCP client gets the amount it requests. If the client requests more than the default value for its profile, the server assigns the default value. The DHCP client then " " maintains the lease time granted by the server. automatically tries to contact the DHCP server halfway through that lease time to renew the lease; under most circumstances, the server renews the lease successfully.
If the server is unavailable or will not renew the lease, the DHCP client continues to try to contact the server until the lease time has expired. When the lease expires, the client stops using the leased address and begins broadcasting to find another server willing to grant a new lease. The new server can issue your 6400 computer a new lease, which may or may not be a lease for your 6400 computer's previous IP address.
6400 Computer TCP/IP Client User’s Guide
2-51
Page 78
6400 TCP/IP Client
" NOTE:
SECTION 2
When a lease expires, network connections are lost. However, the DHCP client continues to broadcast over the network to discover another DHCP server that will grant it a lease.
Configuring the DHCP Client You can obtain network configuration information in DOS with the dhcp command by doing one of the following: "
" "
Enabling the DHCP client through the 6400 TCP/IP client DOS configuration menus Typing the dhcp command at the DOS prompt Entering the dhcp command in AUTOEXEC.BAT (after the ETHDRV.EXE command) so the command runs when you start your 6400 computer
The command line interface for dhcp is similar to that of the bootp command (discussed on page 2-54, the Bootp Client"). The primary difference is that, with DHCP, addresses are leased Ċ while in Bootp, the address assignment is considered permanent. Because of this difference, the DOS dhcp command installs a TSR module so that the lease can be renewed automatically. The dhcp command can handle replies from either DHCP or Bootp servers. If a Bootp server reply is received, or if the DHCP server reply indicates an infinite lease, no TSR module is loaded since there is no lease to maintain. While dhcp properly handles Bootp replies, you should use bootp when you will be receiving replies from Bootp servers and not from DHCP servers. Bootp provides some BootpĆspecific options that are not available with dhcp. Configuration parameters for dhcp are located in the [pctcp bootp] section of PCTCP.INI. The Configuration Parameter Reference on the FTP Software, Inc. Web site lists dhcp configuration parameters. The URL for FTP Software is http://www.ftp.com. 2-52
6400 Computer TCP/IP Client User’s Guide
Page 79
SECTION 2
6400 TCP/IP Client
The dhcp command has the format: dhcp [options] [config file] For a complete listing of dhcp options, see page 2-58.
Allowing DHCP to Modify PCTCP.INI To allow DHCP to modify PCTCP.INI, use dhcp with the -w write option.
Testing DHCP Without Reconfiguring the Kernel To test DHCP without reconfiguring the kernel, use dhcp with the -n option. The -n option prevents dhcp from loading the DHCP TSR module.
Specifying a Lease Time To specify a lease time, use dhcp with the -l lease option and specify the length of time (in seconds) you want to keep your IP address for the lease. " NOTE:
Without the -l option, the DHCP server determines the length of time for the lease, based on how the network administrator configured the server. Although you may use this option, be aware that the server may ignore it. For this reason, use of the -l option is not recommended unless the network administrator considers it necessary.
Unloading the DHCP TSR Module Use dhcp with the -u option to unload the DHCP TSR module and to send a message to the server allowing it to release the IP address. The client discontinues use of that address, and shuts down any network connections that may exist.
6400 Computer TCP/IP Client User’s Guide
2-53
Page 80
6400 TCP/IP Client
SECTION 2
Configuring the Bootp Client The bootp command stores the information it receives from a Bootp server in PCTCP.INI. Configuration parameters for bootp are located in the [pctcp bootp] section of PCTCP.INI. The Configuration Parameter Reference on the FTP Software, Inc. Web site lists bootp configuration parameters. The bootp command has the format: bootp [options] [config file] For a complete listing of bootp options, see page 2-56. You can run the bootp command by doing one of the following: " "
Typing the bootp command at the DOS prompt Entering the bootp command in AUTOEXEC.BAT (after the ETHDRV.EXE command) so the command runs when you start your 6400 computer
Allowing Bootp to Modify PCTCP.INI To allow Bootp to modify PCTCP.INI, use bootp with the -w write option.
Testing Bootp Without Reconfiguring the Kernel To test Bootp without reconfiguring the kernel, use bootp with the -n option.
2-54
6400 Computer TCP/IP Client User’s Guide
Page 81
SECTION 2
6400 TCP/IP Client
Specifying the IP Address of the Bootp Server To specify the IP address of the Bootp server, use bootp with the -d address option. The address specified with this option overrides the server–address=ip_address setting in the [pctcp bootp] section of PCTCP.INI. If your 6400 computer's address is not configured, the Bootp client broadcasts its request to the network and disregards this option.
Replacing Your 6400 Computer’s Current IP Address To replace your 6400 computer's current IP address with a new address from the Bootp server, use bootp with the -f option. " NOTE:
Never use the -f option with the bootp command if you have network applications already running on your 6400 computer. Your applications may lose their TCP connections.
Typically, a server does not give an IP address to a client that already has an address. If the server does not reply with a new IP address, the old address stays in use. The bootp command disregards this option if you also use the -n option.
Viewing Detailed Information About the Server’s Reply To view detailed information about the server's reply, use bootp with the -v verbose option.
6400 Computer TCP/IP Client User’s Guide
2-55
Page 82
6400 TCP/IP Client
SECTION 2
Command Summaries The following pages describe usage and command line options for these DOS commands, included with the kernel: "
Bootp
"
Dhcp
Bootp bootp [-fnvw] [-d address] [-r retries] [-t seconds] [pctcp.ini_file] bootp [-? | -version] The bootp command runs the Bootp client program on your 6400 computer to obtain network configuration information from a remote server. -d address
Specifies the IP address of the server to which the Bootp client sends its request. The address specified with this option overrides the server-address=ip_address parameter setting in the [pctcp bootp] section of PCTCP.INI. If the server's address is not set, the Bootp client broadcasts its request to the network and ignores this option.
-f
Forces bootp to replace your 6400 computer's current IP address with a new one from the Bootp server. (Typically, a server does not give an IP address to a client that already has one.) If the server does not reply with a new IP address, the old address stays in use. Bootp ignores this option if you also use the -n option. "
2-56
NOTE:
6400 Computer TCP/IP Client User’s Guide
Never use the –f option if you have network applications already running on the 6400 computer. Your applications may lose their TCP connections.
Page 83
SECTION 2
6400 TCP/IP Client
-n pctcp.ini_file
-r retries -t seconds
-v -w -? -version
EXAMPLE:
Does not update PCTCP.INI or the kernel. Use this option with the -v option to view the information retrieved from the server without changing your kernel parameters. Specifies the complete path of a PCTCP.INI file from which bootp reads information and to which bootp writes information (if -w opĆ tion is used). This optional setting overrides the PCTCP= environment variable setting. Retries sending a bootp request the number of times specified by retries. Default: 4. Times out the bootp command process after waiting seconds seconds for the bootp reply to be sent from the server. Default: 60. Displays detailed (verbose) information about the server's reply. Writes configuration information received from the server into PCTCP.INI. Displays and explains the usage line of this command. Displays the version and patch level of this command. Refer to this information if you call Technical Support.
To retrieve your 6400 computer’s IP address and other network configuration information, timing out if no reply is received within 15 seconds, enter: C:\>bootp –t 15
SEE ALSO:
Dhcp (page 2-58) and these RFCs: RFC 951, Bootstrap Protocol (Bootp) RFC 1531, Dynamic Host Configuration Protocol RFC 1533, DHCP Options and Bootp Vendor Extensions RFC 1534, Interoperation Between DHCP and Bootp
6400 Computer TCP/IP Client User’s Guide
2-57
Page 84
6400 TCP/IP Client
SECTION 2
Dhcp dhcp [-nuvw] [-l seconds] [-r retries] [-t seconds] [pctcp.ini_file] The dhcp command obtains network configuration information for your 6400 computer from a remote server. -l seconds
Specifies the length of the lease requested by the client in seconds. A lease is the length of time a client can keep an IP address. Note that it is the responsibility of the DHCP server to decide the lease duration, and a DHCP server may return a lease time different from that specified by the client, depending on how the server is configured. The lease duration specified with this option overrides the lease-time= parameter in PCTCP.INI. If neither is specified, the DHCP server sets the lease time.
-n pctcp.ini_file
-r retries -t seconds -u
2-58
Does not update your PCTCP.INI file or the kernel. Use this option with the -v option to view the information retrieved from the server without changing your kernel parameters. Specifies the complete path of PCTCP.INI, from which dhcp reads information and to which dhcp writes information. This optional setting overrides the PCTCP= environment variable setting. Retries sending a dhcp request the number of times specified by retries. Default: 4. Times out the dhcp command process after waiting seconds seconds for the dhcp reply to be sent from the server. Default: 60. Unloads the DHCP module and releases the current IP address being leased. The kernel reverts to using the IP address that was in use before the DHCP TSR module was installed.
6400 Computer TCP/IP Client User’s Guide
Page 85
SECTION 2
6400 TCP/IP Client
-v -w -? -version
EXAMPLE:
Displays verbose information about the server's reply. Writes configuration information received from the server into PCTCP.INI. Displays and explains the usage line of this command. Displays the version and patch level of this command. Refer to this information if you call Technical Support.
To set your 6400 computer’s IP address and other network configuration information with a 1 hour lease (3600 seconds), timing out if no reply is received within 15 seconds, enter: C:\>dhcp –1 3600 –t 15
SEE ALSO:
Bootp (page 2-56) and these RFCs: RFC 1531, Dynamic Host Configuration Protocol RFC 1532, Clarifications and Extensions for the Bootstrap Protocol RFC 1533, DHCP Options and Bootp Vendor Extensions RFC 1534, Interoperation Between DHCP and Bootp
Configuring the SNMP Agent The SNMP agent lets other hosts and network management stations using SNMP examine your 6400 computer's statistics and configuration information over the network. An SNMP management station gets this information from the 6400 computer's MIB for use in troubleshooting and tuning network operations and for determining network performance. In terms of the clientĆserver paradigm, an SNMP agent is a server, while an SNMP management station is a client.
6400 Computer TCP/IP Client User’s Guide
2-59
Page 86
6400 TCP/IP Client
SECTION 2
The snmpd command starts a TSR program that provides an agent for SNMP requests that follow RFC 1065, Structure and Identification of Management Information for TCP/IP-Based Internets, and RFC 1067, A Simple Network Management Protocol. The DOS SNMP agent supports most of the MIB-1 SNMP MIB defined in RFC 1156, Management Information Base for Network Management of TCP/IP-Based Internets. Appendix D is Section 6 of the RFC (Definitions).
Before You Use the SNMP Agent Ensure the kernel is installed and that the COMMUNIT.CNF and TRAPCOMM.CNF files are in the same directory as the DOS SNMP agent, SNMPD.EXE. " for another host to access your 6400 computer's SNMP agent, that host has an SNMP network management product (such as HP OpenView, or software from another vendor). " you load the TSR kernel before you invoke the snmpd command. An SNMP network management product (such as a personal computer running the PC/SNMP Tools applications) displays the object IDs (associated text names) for the MIB variables. If you are using another network management product, refer to its documentation to determine if that product supports nonnumeric names or MIB variables. "
As an addĆon agent for kernels, the snmpd program requires two UDP connections. The kernel allows only four UDP connections by default. You should increase the number of available UDP connections if you use the snmpd program when you use other programs that use UDP connections. For more information, see the ethdrv command (page 2-31). 2-60
6400 Computer TCP/IP Client User’s Guide