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 |
|
---|
11 | <title>DHCP Networking Configuration</title>
|
---|
12 |
|
---|
13 | <sect2>
|
---|
14 | <title>Creating the DHCP Network Interface Configuration Files</title>
|
---|
15 |
|
---|
16 | <para>The following is an example for the eth0 interface. Create the
|
---|
17 | <filename>/etc/sysconfig/ifconfig.eth0</filename>
|
---|
18 | configuration file using the following commands. Adjust appropriately for
|
---|
19 | additional interfaces:</para>
|
---|
20 |
|
---|
21 | <screen><userinput>mkdir -pv /etc/sysconfig &&
|
---|
22 | cd /etc/sysconfig &&
|
---|
23 | cat > ifconfig.eth0 << "EOF"
|
---|
24 | <literal>SERVICE="dhcpcd"
|
---|
25 |
|
---|
26 | # Start Command for DHCPCD
|
---|
27 | DHCP_START="-q"
|
---|
28 |
|
---|
29 | # Stop Command for DHCPCD
|
---|
30 | DHCP_STOP="-k"</literal>
|
---|
31 | EOF</userinput></screen>
|
---|
32 |
|
---|
33 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
34 | href="static.xml"
|
---|
35 | xpointer="xpointer(//*[@os='var-ob'])"/>
|
---|
36 |
|
---|
37 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
38 | href="static.xml"
|
---|
39 | xpointer="xpointer(//*[@os='var-s'])"/>
|
---|
40 |
|
---|
41 | <para>The <envar>DHCP_START</envar> and <envar>DHCP_STOP</envar> variables
|
---|
42 | arguments that are passed onto <filename>dhcpcd</filename> when starting
|
---|
43 | and stoppping the service. More information about what can be passed can
|
---|
44 | be found in the <filename>dhcpcd(8)</filename> man page.</para>
|
---|
45 |
|
---|
46 | <para>To configure another Static Interface, Follow <xref linkend="ch-network-static"/>.</para>
|
---|
47 |
|
---|
48 | </sect2>
|
---|
49 |
|
---|
50 | </sect1>
|
---|