Das 'dhcpc' Paket stellt einen DHCP Client bereit.
Das DHCP (Dynamic Host Configuration Protocol) wird zur Automatisierung der Konfiguration von Computern in TCP/IP-Netzwerken genutzt. Der DHCP Client kann dabei die IP-Adresse, Netmask, Domian Name, Gateway und DNS Nameserver automatisch vom DHCP Server beziehen.
In diesem Paket wird der 'udhcpc' Dienst der busybox verwendet.
Dieses Paket ist besonders für USB-Stick Installation interessant, da es bei wechselnden Boot Prozessen an verschiedenen Maschinen, die erforderlichen Netzwerk Informationen automatisch ermittelt.
In der DHCPC-Konfiguration werden die für den Dienst notwendigen Einstellungen vorgenommen.
Das Menü im Setup-Programm ist wie folgt aufgebaut:
1. | System administration |
2. | Network administration |
x. | DHCP Client administration |
1. | View documentation | |
2. | Edit configuration | |
3. | Show status of dhcpc | |
4. | Start dhcpc | |
5. | Stop dhcpc | |
6. | Advanced configuration file handling |
Die Konfiguration kann über den Menüpunkt 'Edit configuration' geändert werden.
Nachdem der Editor beendet wurde, wird abgefragt, ob die Konfiguration aktiviert werden soll. Wird dies bestätigt, so werden über ein Skript die Anpassungen umgehend wirksam gemacht.
In der Konfigurationsdatei, die über das Menü zugänglich ist, sind
folgende Parameter vorhanden; wer sie von Hand editieren will, findet sie
unter
/etc/config.d/dhcpc
Gültige Werte: yes, no
Standardeinstellung: START_DHCPC='no'
Es wird die Verwendung von Udev Namen wie 'enx123456789782' oder 'enp3s0' empfohlen, damit wird die größte Sicherheit in der Verwendung der Netzwerknamen erreicht.
Wenn es zu Problemen mit den Klassischen Namen wie 'eth0', 'eth1' kommt, ist z.B. 'net0' oder 'lan0' eine gute Wahl. Die Verwendung von 'eth0' oder 'eth1' wird nicht empfohlen.
Der Name kann, wenn der Editor „ece“ eingestellt ist, auch aus dem Dialog eingefügt werden. Somit sind keine Kryptischen Zeichen einzugeben.
Gültige Werte: net0, lan0, eth0, enx*, enp* etc...
Standardeinstellung: DHCPC_DEVICE_NAME='net1'
Gültige Werte: Mac '00:00:00:00:00:00'
Standardeinstellung: DHCPCE_DEVICE_MACADDR=”
Gültige Werte: yes, no
Standardeinstellung: DHCPC_USE_PEERDNS='yes'
Gültige Werte: yes, no
Standardeinstellung: DHCPC_SET_DEFAULT_ROUTE='yes'
Gültige Werte: Hostname
Standardeinstellung: DHCPC_HOSTNAME='HOSTNAME'
udhcpc [-Cfbnqtvo] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE] [-p pidfile] [-r IP] [-s script] [-O dhcp-option]...
-V,–vendorclass=CLASSID | Vendor class identifier | ||
-i,–interface=INTERFACE | Interface to use (default eth0) | ||
-H,-h,–hostname=HOSTNAME | Client hostname | ||
-c,–clientid=CLIENTID | Client identifier | ||
-C,–clientid-none | Suppress default client identifier | ||
-p,–pidfile=file | Create pidfile | ||
-r,–request=IP | IP address to request | ||
-s,–script=file | Run file at DHCP events (default | ||
/usr/share/udhcpc/default.script) | |||
-t,–retries=N | Send up to N request packets | ||
-T,–timeout=N | Try to get a lease for N seconds (default 3) | ||
-A,–tryagain=N | Wait N seconds (default 20) after failure | ||
-O,–request-option=OPT | Request DHCP option OPT (cumulative) | ||
-o,–no-default-options | Do not request any options (unless -O is | ||
also given) | |||
-f,–foreground | Run in foreground | ||
-b,–background | Background if lease is not immediately | ||
obtained | |||
-S,–syslog | Log to syslog too | ||
-n,–now | Exit with failure if lease is not | ||
immediately obtained | |||
-q,–quit | Quit after obtaining lease | ||
-R,–release | Release IP on quit | ||
-a,–arping | Use arping to validate offered address |
Zurück zum Menü: Network administration