blob: a52b1243f5d105f35129bdb7c38c1f13751aa742 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
.. title: Netctl undocumented features
.. slug: netctl-undocumented-features
.. date: 2016-11-21 15:08:18 UTC+01:00
.. tags:
.. link:
.. description: There are undocumented features in Netctl.
.. type: text
I use netctl to configuration my network interfaces. While some features seem
to be missing, here is a list of some useful features that are supported by the
tool but not documented:
Passing options to your DHCP client
-----------------------------------
Although currently, only **dhclient** and **dhcpcd** are officially supported,
it still seems quite a pain to pass them custom parameters without using the
environment.
Some people suggest to use the **DHCPClient** variable to pass the name of the
binary along with their options.
Nonetheless, it is possible to use the variables **DhcpcdOptions** or
**DhclientOptions**.
Example (here, we pass a custom hostname and a custom metric to **dhcpcd**::
> DhcpcdOptions='-H hostname -m metric'
|