dgipserv HOWTO guide - Unix version

Why use dgipserv?

dgipserv is a utility which acts as a single-use BOOTP or TFTP server for configuring Digi EtherLite units. It is easy to use, and can be configured via simple command line arguments. The client of this server is the EtherLite module itself.

It is ideal for those who do not wish to setup full time BOOTP or DHCP services, but instead prefer to manually serve the IP address when the unit is turned on, or store the IP address in the unit's non-volatile EEPROM. Other uses include resetting an Etherlite, configuring the authorized host list, or upgrading firmware on the unit.


How does dgipserv work?

Basically, the EtherLite will issue a bootp request only when it is powered on or reset via the DgIpServ utility. The "on" LED of an EtherLite module lacking an IP address will blink rapidly. Once the module obtains an IP address, the "on" LED will be steadily lit.

Certain conditions affect the way the EtherLite issues a request:


What are the commands to use dgipserv?

Syntax: dgipserv [flags] hw_addr ip_addr

Flags:

-reset Soft resets the module (eliminates the need to cycle power on the unit)
-store Store the IP address in the module's EEPROM
-broadcast Store (via bootp broadcast) the IP address in the module's EEPROM
-erase Erase a stored IP address from the module's EEPROM
-gateway Set the gateway IP address for the module (combine with -store to save)
-netmask Set the module's netmask (combine with -store to save)
-host auth_ip [auth_netmask] Add an IP address or list of up to eight IP addresses to the module's authorized host list
-firmware filename Upload a firmware image to the EtherLite module once the IP address has been served.

NOTE:

  • Setting the gateway and netmask is optional. EtherLites default to using a class B netmask.
  • All flags can be abbreviated to a single letter (-r, -s, -e, etc.), but they can not be combined (e.g. -rs).
  • hw_addr is the hexadecimal (e.g. 00A0E7000363) hardware (MAC) address of the EtherLite module.
  • ip_addr is the dotted decimal (e.g., 192.9.200.123) IP address to be served.
  • -broadcast, -erase, and -store flags must be used in combination with the -reset flag for them to work.

    EXAMPLES:

    Serving IP address 192.9.200.123 on an EtherLite with hardware address 00-A0-E7-00-03-63:
    dgipserv 00A0E7000363 192.9.200.123

    Storing the same IP address on the same Etherlite:
    dgipserv -s 00A0E7000363 192.9.200.123

    Storing an address that is not a valid address on your network:
    dgipserv -b 00A0E7000363 10.45.100.1

    Erasing a stored IP address:
    dgipserv -e 00A0E7000363 192.9.200.123

    Serving an IP address and restricting the EtherLite to two authorized hosts with IP addresses 192.9.200.10 and 192.9.200.11:
    dgipserv -h 192.9.200.10 -h 192.9.200.11 00A0E7000363 192.9.200.123

    Serving an IP address and restricting the EtherLite to an authorized network with IP address 192.9.200.0 and using a netmask of 255.255.255.0. In other words, connections from hosts with addresses of the form 192.9.200.* will be allowed, all others will be rejected:
    dgipserv -h 192.9.200.0 255.255.255.0 00A0E7000363 192.9.200.123

    Reset an EtherLite, and then serve and store the IP address given:
    dgipserv -r -s 00A0E7000363 192.9.200.123

    Upgrade an EtherLite with firmware file el16.prm, after resetting and serving it an IP address:
    dgipserv -r -f el16.prm 00A0E7000363 192.9.200.123


    Are there any EtherLite issues I should be aware of?