Home arrow Support arrow Product Support arrow LinuxBox LB1 (Embedded-PC) arrow Documentation arrow IP Address (ipsetd)

IP Address Setting (ipsetd)

If a static IP address is required, a temporary IP address can be assigned first and then changed into a static one later. A combination of ARP and ping commands is used for the configuration. This is performed with ipsetd deployed as a background service (daemon).

The ipsetd service enables you to set a temporary IP address. ipsetd can be implemented automatically during startup (or manually). ipsetd then waits a preset time for the combination of ARP and ping, and terminates independently after that time.

After a temporary IP address has been set, the service is terminated. To change the address through ipsetd, the service must be started again.

The ipsetd service is already pre-installed in the LinuxBox, and the waiting period is set to 2 minutes.

ARP and ping to set the IP address

From a Windows or MS-DOS system:
  1. Start a DOS prompt (command shell)
    (For example: Start => Execute => cmd => OK)
  2. Enter the following instructions:
    arp -s
    ping -l

    arp -s <IP-address> <Network Hardware Adderss (MAC adress)>
    ping -l <length> <IP-address>
    For example:
    arp -s 192.168.1.45 00-09-8e-00-16-a3
    ping -l 408 192.168.1.45


With a UNIX or Linux system:
  1. Start a command shell
  2. Enter the following instructions as a user root:
    arp -s
    ping -l

    arp -s <IP address> <Network Hardware Adderss (MAC address)>
    ping -l <length> <IP address>
    For example:
    arp -s 192.168.1.45 00:09:8e:00:16:a3
    ping -l 408 192.168.1.45


Network hardware address / serial number

The LinuxBox serial number is also used for the Ethernet hardware address (EHA), or respectively, the MAC address (Media Access Control address).

The LinuxBox is delivered with the standard IP address 192.168.0.90.

Make sure that the IP address is unique. Consult your network administrator if necessary.

To exchange a temporarily assigned IP address for a permanent one, there are several possibilities decribed in

Configuration of network settings.


ipsetd configuration

The configuration is to be found in "/etc/conf.d/ipsetd".

IPSETD_OPTIONS="-i eth0 -t 120 -l 408 -e /etc/ipsetd.script"


/etc/conf.d/ipsetd
Structure of ipsetd: IPSETD_OPTIONS="-i <network interface> -t <seconds> -l <bytes> -e <command>"
-i <network interface> Network interface (here: eth0)
-t <seconds> After this time in seconds, ipsetd stops automatically
-l <bytes> Length of ping to be received in bytes (here: 408).
-e <command> Specified script to be exectued through ipsetd to change the IP address (default /etc/ipsetd.script)

As specified here, ipsetd behaves as follows:
After the LinuxBox startup a ping of 408 bytes has 120 seconds time to be sent to the LinuxBox.
The IP address of the ping is adopted then, and the script "/etc/ipsetd.script" is started.

<<
↑


ipcas GmbH is a member of Data Respons Group


Copyright 1988 - 2010 ipcas GmbH

Gundstrasse 15 D-91056 Erlangen Tel.: +49 (0)9131/ 7677-0 Fax: +49 (0)9131/ 7677-78 E-Mail: info@ipcas.de