Reference9:IP4/ETH/DHCP

From innovaphone-wiki

Jump to: navigation, search
There are other versions of this article: Reference | Reference7 | Reference9 (this version) | Reference10 | Reference11r2

The DHCP function can either be disabled or operated in DHCP Client or in DHCP Server mode. The DHCP function of the Ethernet interface has four operating modes:

Disabled: The IP-Adresse and other parameters are configured manually.
Server: The IP parameters are configured manually in DHCP Server mode. The DHCP server is on and should be configured accordingly as described in "IP4/ETH/DHCP-Server".
Reserved and same Vendor Clients only The server will issue leases to reserved clients and to clients with Vendor class identifier = 1.3.6.1.4.1.6666 (i.e. innovaphone devices) only
Server Identifier The server will send this string as DHCP vendor option 250 to the client
Client: In DHCP Client mode, the device receives its IP configuration from a DHCP server to whose network the device is connected.
Selected Server only The client will wait for a lease from an innovaphone DHCP server (see above) forever
Wait for selected Server The number of seconds the client will wait for a lease from an innovaphone DHCP server (that is, until a lease is received that has a vendor option 250 with proper value).
Server Identifier The expected value for the DHCP vendor option 250 (see above) expected in the lease offer received. This can normally be left blank.
Hostname By default the hostname sent in DHCP client requests is the catenation of the short device name and the last 3 bytes of the mac address, for example IP241-2a-00-c6.

At least the Microsoft DHCP server can be configured to create a DNS entry from the received hostname and the assigned IP address.

To meet existing naming conventions another hostname for the device can be configured here. The name must be unique and is restricted to 63 alphanumeric ascii characters (case independent) and dashes.

Automatic: The automatic mode is configured as factory setting on ETH0. It is useful only to get the first connection to the device. If automatic mode is configured the device operates with DHCP mode client after power up, if the device is restarted by pressing the reset button it operates in mode DHCP Disabled. As factory setting the IP address 192.168.0.1 is configured. This way a connection can be established to the device in a network without DHCP server by restarting the device with the reset button an then connect to 192.168.0.1 (this requires the PC to be configured to an IP address in the 192.168.0.0/255.255.255.0 network).
 Caution:
 DHCP Automatic mode should not be used for normal operation, 
 since an accidental restart may switch the operating mode from DHCP client to a fixed IP address,
 so the device may not be available anymore.
Running an innovaphone DHCP server when there is already one

It might be pretty convenient to run an innovaphone DHCP server in addition to an existing one in a network. This simplifies deployment of vendor specific configuration options. To make sure such leases are only sent to innovaphone (and explicitly reserved) clients, you would turn on Serve Vendor Clients Only on the innovaphone DHCP server. This will not send offers to other requesters and will include a server identifier within any offer sent. By default, an innovaphone DHCP client will wait for a lease with matching Server Identifier for 8 seconds. Also by default, the vendor identifier is empty.

As a result, to have clients with factory settings run with the innovaphone's DHCP offer, you should turn on Serve Vendor Clients Only mode on the server and leave the Server Identifier empty. If so, an out-of-the-box innovaphone DHCP client will prefer the offer sent by the innovaphone server (provided it appears 8 seconds after the first offer the latest).

Personal tools