Subsections

4.4 DHCP_CLIENT - Dynamic Host Configuration Protocol

With this package, the router sources IP addresses for its interfaces dynamically. The package and its parameters are explained below.


4.4.1 OPT_DHCP_CLIENT

A DHCP client can be used to obtain an IP address for one or more interfaces of the router - this is most used with cable modem connections or in Switzerland, the Netherlands and France. Sometimes this configuration is also needed if the router is behind another router, that distributes the addresses via DHCP.

At the start of the router, for all specified interfaces IP addresses will be obtained. Subsequently, those are assigned to the interface and, if necessary, the default route on this interface is set.

OPT_DHCP_CLIENT

Has to be set to 'yes', if one of the DHCP-clients is to be used.

Default Setting: OPT_DHCP_CLIENT='no'

DHCP_CLIENT_TYPE

At the moment, the package is equipped with two different DHCP-clients, dhclient and dhcpcd. You can choose which one is to be used.

Default Setting: DHCP_CLIENT_TYPE='dhcpcd'

DHCP_CLIENT_N

Here, the number of interfaces to be configured is neccesary.

DHCP_CLIENT_x_IF

Here, the interface to be configured has to be specified as a reference to IP_NET_x_DEV, i.e. DHCP_CLIENT_1_IF='IP_NET_1_DEV'. The dhcp-client gets the apropriate device out of this variable. In base.txt a placeholder 'dhcp' should be entered instead of an IP-address with netmask.

DHCP_CLIENT_x_ROUTE

Here you can specify whether and how a route is to be set for the interface. The variable can take the following values:

none
No route for the interface.
default
Default route for the interface.
imond
Imond is used to manage the default route for the interface.

Default Setting: DHCP_CLIENT_x_ROUTE='default'

DHCP_CLIENT_x_USEPEERDNS

If this variable is set to 'yes' and the device has a default-route assigned, then the ISP's DNS server is used as a DNS forwarder on this route. Make sure to activate DNS forwarding - see base.txt.

Default Setting: DHCP_CLIENT_x_USEPEERDNS='no'

DHCP_CLIENT_x_HOSTNAME
Some ISPs require a hostname to be forwarded. Ask your ISP for this and list it here. It does not have to be identical to the router hostname.

Default Setting: DHCP_CLIENT_x_HOSTNAME=''

DHCP_CLIENT_x_STARTDELAY

This variable can optionally delay the start of the DHCP client. In some installations (eg fli4l as a dhcp client behind a cable modem, Fritzbox, a.s.o.) it is necessary to wait until the DHCP server in use is also started anew (if for example a power failure has happened).

Default Setting: DHCP_CLIENT_x_STARTDELAY='0'

DHCP_CLIENT_x_WAIT

The DHCP client normally gets started as a background task. This means that the boot process is not delayed by the determination of the IPv4 address. Occasionally, however, it is necessary that the address is configured before the boot process progresses. This is the case when an installed package necessarily requires a configured address (eg in OPT_IGMP). Use DHCP_CLIENT_x_WAIT='yes' to force fli4l to wait for an address.

Default Setting: DHCP_CLIENT_x_WAIT='no'

DHCP_CLIENT_DEBUG
Shows more informations during optainment of an address.

Default Setting: omit it or DHCP_CLIENT_DEBUG='no'

© 2001-2019 The fli4l-Team - 28 April 2019