![Black Box LS1016A User Manual Download Page 151](http://html.mh-extra.com/html/black-box/ls1016a/ls1016a_user-manual_2763435151.webp)
Chapter 3 - Additional Features
User Guide
151
• Comment all other parameters related to the Ethernet Interface (conf.eth_ip, etc.).
• Add the necessary options to the file /etc/network/dhcpcd_cmd (some options are
described below).
2.
The BLACK BOX
®
Advanced Console Server restores the last IP address previously pro-
vided in another boot and assigns this IP address to the Ethernet Interface. For the very
first time the unit is powered ON, the IP address restored is 192.168.160.10 in case of fail-
ure in the DHCP. The unit goes out from the factory with DHCP enabled
(conf.dhcp_client 2):
• Set the global parameter conf.dhcp_client to 2.
• Comment all other parameters related to the Ethernet Interface (conf.eth_ip, etc.).
• Add the following lines to the file /etc/config_files:
/etc/network/dhcpcd_cmd
(from factory file already present in /etc/config_files)
/etc/dhcpcd-eth0.save
(From the factory, the file is already present in /etc/config_files.)
• Add the option “-x” to the factory default content of the file
/etc/network/dhcpcd_cmd:
/sbin/dhcpcd -l 3600 -x -c /sbin/handle_dhcp
From the factory, /etc/network/dhcpcd_cmd already has such content.
• Add all other necessary options to the file /etc/network/dhcpcd_cmd (some
options are described below). In both cases if the IP address of the BLACK BOX
®
Advanced Console Server or the default gateway are changed, the BLACK BOX
®
Advanced Console Server will adjust the routing table accordingly.
Two files are related to DHCP:
/bin/handle_dhcp
The script which is run by the DHCP client each time an IP
address negotiation takes place.