summaryrefslogtreecommitdiff
path: root/src/admin/5_networking.xml
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-12-03 13:31:57 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-12-03 13:31:57 -0600
commit9232e34cb98912eb233c545e2d22f3f9a916520f (patch)
tree788ff52c909fdd3807393496eb3d4c3c3091d9f4 /src/admin/5_networking.xml
parent0fba20e8ba1c0c6693fcb32b23c69e6d2de0e5cb (diff)
downloaddocs-9232e34cb98912eb233c545e2d22f3f9a916520f.tar.gz
docs-9232e34cb98912eb233c545e2d22f3f9a916520f.tar.bz2
docs-9232e34cb98912eb233c545e2d22f3f9a916520f.tar.xz
docs-9232e34cb98912eb233c545e2d22f3f9a916520f.zip
Admin: ch05: clarify DHCP, userinput->replaceable
Diffstat (limited to 'src/admin/5_networking.xml')
-rw-r--r--src/admin/5_networking.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/admin/5_networking.xml b/src/admin/5_networking.xml
index 509e360..a658ffb 100644
--- a/src/admin/5_networking.xml
+++ b/src/admin/5_networking.xml
@@ -8,8 +8,8 @@
<para>The default configuration for the Adélie Linux system uses the traditional Linux interface names (such as "eth0", "eth1", and "wlan0"). If you prefer the new "predictable" interface names (such as "enP2p36s15f0" or "wlp9s0"), refer to <xref linkend="crappy_udev_ifs" />.</para>
<section>
<title>A netfirc primer</title>
- <para>The netifrc configuration file consists of INI-style configuration variables. For example, <literal>config_eth0="dhcp"</literal> sets the variable <varname>config_eth0</varname> to the value <literal>dhcp</literal>. By default, all interfaces on the system that are enabled will attempt to retrieve a DHCP address, assuming <package>dhcpcd</package> is installed.</para>
- <para>To enable a network interface, you must create a symbolic link to <filename>/etc/init.d/net.lo</filename> in <filename class="directory">/etc/init.d</filename> named <filename>net.<userinput>IFACE</userinput></filename> where <userinput>IFACE</userinput> is the name of the interface. For example, for the interface named <literal>eth0</literal>, you would run <command>ln -s /etc/init.d/net.lo /etc/init.d/net.eth0</command>. Next, you need to add the service to the default runlevel. As noted in <xref linkend="enable_disable_rc" />, you would run <command>rc-update add net.<userinput>IFACE</userinput> default</command> to enable the net.<userinput>IFACE</userinput> service. You may then <link linkend="start_stop_rc">start the service</link>, assuming the interface has been configured properly in <filename>/etc/conf.d/net</filename>.</para>
+ <para>The netifrc configuration file consists of INI-style configuration variables. For example, <literal>config_eth0="dhcp"</literal> sets the variable <varname>config_eth0</varname> to the value <literal>dhcp</literal>. By default, all interfaces on the system that are enabled will attempt to retrieve a DHCP address. Retrieving a DHCP address requires the <package>dhcpcd</package> package to be installed.</para>
+ <para>To enable a network interface, you must create a symbolic link to <filename>/etc/init.d/net.lo</filename> in <filename class="directory">/etc/init.d</filename> named <filename>net.<replaceable>IFACE</replaceable></filename> where <replaceable>IFACE</replaceable> is the name of the interface. For example, for the interface named <literal>eth0</literal>, you would run <command>ln -s /etc/init.d/net.lo /etc/init.d/net.eth0</command>. Next, you need to add the service to the default runlevel. As noted in <xref linkend="enable_disable_rc" />, you would run <command>rc-update add net.<userinput>IFACE</userinput> default</command> to enable the net.<replaceable>IFACE</replaceable> service. You may then <link linkend="start_stop_rc">start the service</link>, assuming the interface has been configured properly in <filename>/etc/conf.d/net</filename>.</para>
<para>To disable a network interface, you must first <link linkend="start_stop_rc">stop it</link>, if it is running. Next, <link linkend="enable_disable_rc">remove it from the default runlevel</link> (<command>rc-update del net.<userinput>IFACE</userinput> default</command>). Finally, remove the symbolic link in <filename class="directory">/etc/init.d</filename>.</para>
</section>
<section>