[593f554e] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-network-dhcp">
|
---|
| 9 | <?dbhtml filename="network-dhcp.html"?>
|
---|
| 10 |
|
---|
[0125883] | 11 | <title>DHCP Network Configuration</title>
|
---|
[593f554e] | 12 |
|
---|
| 13 | <sect2>
|
---|
[0125883] | 14 | <title>Creating the DHCP Network Interface Configuration File</title>
|
---|
[593f554e] | 15 |
|
---|
[0125883] | 16 | <para>The following is an example for the eth0 interface. Refer to the
|
---|
| 17 | dhcpcd.conf man page for more information. This step may be skipped if
|
---|
| 18 | default behavior of dhcpcd is required.</para>
|
---|
[593f554e] | 19 |
|
---|
[0125883] | 20 | <para>Create the <filename>/etc/dhcpcd.conf</filename> configuration file
|
---|
| 21 | using the following commands. Adjust appropriately for additional options:</para>
|
---|
[593f554e] | 22 |
|
---|
[0125883] | 23 | <screen><userinput>cd /etc &&
|
---|
| 24 | cat > dhcpcd.conf << "EOF"
|
---|
| 25 | <literal># dhcpcd configuration eth0 interface
|
---|
| 26 | # See dhcpcd.conf(5) for details.
|
---|
[593f554e] | 27 |
|
---|
[0125883] | 28 | interface eth0
|
---|
| 29 | # dhcpcd-run-hooks uses these options.
|
---|
| 30 | option subnet_mask, routers, domain_name_servers
|
---|
| 31 |
|
---|
| 32 | # The default timeout for waiting for a DHCP response is 30 seconds
|
---|
| 33 | # which may be too long or too short and can be changed here.
|
---|
| 34 | timeout 16</literal>
|
---|
[1eaa44a] | 35 | EOF</userinput></screen>
|
---|
[593f554e] | 36 |
|
---|
[0125883] | 37 | <para>To configure another Static Interface, Follow <xref linkend="ch-network-static"/>.</para>
|
---|
| 38 |
|
---|
| 39 | </sect2>
|
---|
[572d0a6] | 40 |
|
---|
[0125883] | 41 | <sect2>
|
---|
| 42 | <title>Configuring the Network Interface at boot</title>
|
---|
[572d0a6] | 43 |
|
---|
[0125883] | 44 | <para>Enabling of the Network Interface configuration is
|
---|
| 45 | done per interface. To enable Network Interface
|
---|
| 46 | configuration at boot, run:</para>
|
---|
[572d0a6] | 47 |
|
---|
[0125883] | 48 | <screen role="nodump"><userinput>systemctl enable dhcpcd@eth0</userinput></screen>
|
---|
| 49 |
|
---|
| 50 | <para>To disable previously enabled Network Interface
|
---|
| 51 | configuration at boot, run:</para>
|
---|
| 52 |
|
---|
| 53 | <screen role="nodump"><userinput>systemctl disable dhcpcd@eth0</userinput></screen>
|
---|
| 54 |
|
---|
| 55 | <para>To manually start the Network Interface configuration,
|
---|
| 56 | run:</para>
|
---|
| 57 |
|
---|
| 58 | <screen role="nodump"><userinput>systemctl start dhcpcd@eth0</userinput></screen>
|
---|
| 59 |
|
---|
| 60 | <para>Replace eth0 with the correct Network Interface
|
---|
| 61 | name as described on the beginning of this page.</para>
|
---|
[593f554e] | 62 |
|
---|
| 63 | </sect2>
|
---|
| 64 |
|
---|
| 65 | </sect1>
|
---|