Assign an IP address to an Ethernet reader
You can assign a reader a static IP address or a dynamic IP address via DHCP. In maintenance mode, you can also assign a link-local IP address. Upon power-up or changes to the Ethernet connection, the reader will directly start to check for an address in that order.
Static IP address
The reader first checks for a static IP address in its configuration.
If there is a static address, the reader probes it using ARP. If the address is unique, the reader adopts it. Otherwise, the reader indicates an address conflict with 4 red blinks.
To configure a static IP address:
You'll need a unique IP configuration for each reader. Create and deploy the IP configuration separately from the standard reader configuration that contains project and device settings.
- Please request our IP configuration form for BALTECH ConfigEditor.
- For each reader, create an IP configuration containing the static IP address, netmask, default gateway, and (as an option) DNS server.
- Transfer the IP configurations one by one to your readers.
Configure static IP addresses before reader installation
While you can deploy the standard reader configuration after installation, you need to transfer the static IP configurations to the readers before installing them.
If no static IP address is configured, the reader enables its DHCP client to obtain an IP address dynamically. In maintenance mode, the DHCP client is always enabled.
The reader starts to poll for a DCHP server.
The interval between 2 polls starts at 1 second and doubles with every request to a max. interval of 60 seconds.
Once a DHCP server is found, polling stops.
The reader receives an IP address and other network parameters, i.e. netmask, default gateway, and DNS server.
If the reader has been assigned an IP address before, it tries to obtain the same address again.
However, it's up to the DHCP server to acknowledge this request or to assign a new address.
The reader probes the IP address using ARP.
If the address is unique, the reader adopts the assigned network configuration. Otherwise, the reader indicates an address conflict with 4 red blinks.
The address is used until the lease expires. Renewal starts after half of the lease duration.
For more details on the implementation, see RFC2131call_made.
If neither a static nor a DHCP IP address is available, the reader obtains a link-local IP address.
Only enabled in maintenance mode
Link-local is only relevant if no other addressing mechanism is available. Typically, that's the case in maintenance mode when you directly connect the reader to a maintenance laptop without a DHCP server.
- The reader selects a random address within the reserved address block 169.254.0.0/16.
- The reader probes the IP address using ARP.
- If the reader receives a reply indicating that this address is already in use, it chooses a new random address and repeats from step 1.
This process may take several seconds.
For more details on the implementation, see RFC3927call_made.
The default procedure for productive use is to assign 1 IP address to each reader (i.e. a static or a DHCP address). However, it's possible to assign both a static and a DHCP IP address via the reader configuration (check back with us for details if needed).
The reader will then use the addresses as follows:
- Incoming connections: The reader responds with the IP address via which it was addressed.
- Outgoing connections: The reader uses the IP address which is in the same subnet as the remote IP address. If this applies to none of the available addresses, the reader uses the static IP address as first and the DHCP IP address as second preference.