Changeset afa198d for connect/dhcp
- Timestamp:
- 07/29/2004 04:53:55 AM (20 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 912a09b6
- Parents:
- 68df39bf
- Location:
- connect/dhcp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
connect/dhcp/dhcp-client.xml
r68df39bf rafa198d 30 30 <screen><userinput><command>make install-service-dhclient</command></userinput></screen> 31 31 32 <para>Next, create the <filename>ifconfig.eth0</filename> 33 file with the following commands. Adjust as necessary for additional 34 interfaces.</para> 32 <para>Next, create the 33 <filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhclient</filename> 34 configuration file with the following commands. Adjust as necessary for 35 additional interfaces.</para> 35 36 36 <para><emphasis>Note</emphasis>: this will overwrite any existing file.</para> 37 38 <screen><userinput><command>cat > /etc/sysconfig/network-devices/ifconfig.eth0 << "EOF"</command> 39 ONBOOT=yes 40 DHCP_START="<replaceable>[place appropriate start parameters here]</replaceable>" 41 DHCP_STOP="-r <replaceable>[add additional stop parameters here]</replaceable>" 42 SERVICE=dhclient 37 <screen><userinput><command>install -d /etc/sysconfig/network-devices/ifconfig.eth0 && 38 cat > /etc/sysconfig/network-devices/ifconfig.eth0/dhclient << "EOF"</command> 39 ONBOOT="yes" 40 SERVICE="dhclient" 41 DHCP_START="-q <replaceable>[add additional start parameters here]</replaceable>" 42 DHCP_STOP="-q -r <replaceable>[add additional stop parameters here]</replaceable>" 43 43 <command>EOF</command></userinput></screen> 44 44 … … 47 47 values, examine the man page for <command>dhclient</command>.</para> 48 48 49 <para> You should then create 50 <filename>/etc/dhclient.conf</filename> using the following 51 commands. Append to the file if you have more than one interface:</para> 49 <para>Finally, you should create the 50 <filename>/etc/dhclient.conf</filename> file using the following 51 commands:</para> 52 53 <note>You'll need to add a second interface definition to the file if you 54 have more than one interface.</note> 52 55 53 56 <screen><userinput><command>cat > /etc/dhclient.conf << "EOF"</command> … … 63 66 <command>EOF</command></userinput></screen> 64 67 65 <para>Finally, if the <acronym>DHCP</acronym> configured interface is66 used as your default gateway, you should remove the GATEWAY and GATEWAY_IF67 variables from <filename>/etc/sysconfig/network</filename>: </para>68 69 <screen><userinput><command>sed -i "s/GATEWAY/#GATEWAY/" /etc/sysconfig/network</command></userinput></screen>70 71 68 </sect1> -
connect/dhcp/dhcpcd.xml
r68df39bf rafa198d 111 111 <screen><userinput><command>make install-service-dhcpcd</command></userinput></screen> 112 112 113 <note><para>The default behavior of <command>dhcpcd</command> is to overwrite 114 (after making backup copies) <filename>/etc/resolv.conf</filename>, 115 <filename>/etc/yp.conf</filename> and <filename>/etc/ntp.conf</filename> with 116 new files containing information from the <acronym>DHCP</acronym> server. If 117 this is undesirable, review the <command>dhcpcd</command> man page for 118 switches to add to the <command>dhcpcd</command> command in the network 119 service script.</para></note> 113 <para>Finally, create the 114 <filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename> 115 configuration file using the following commands. Adjust appropriately 116 for additional interfaces.</para> 120 117 121 <para>Now create the <filename>ifconfig.eth0</filename> configuration 122 file using the following commands. Adjust appropriately for additional 123 interfaces.</para> 124 125 <para><emphasis>Note:</emphasis> This will overwrite any existing file.</para> 126 127 <screen><userinput><command>cat > /etc/sysconfig/network-devices/ifconfig.eth0 << "EOF"</command> 128 ONBOOT=yes 118 <screen><userinput><command>install -d /etc/sysconfig/network-devices/ifconfig.eth0 && 119 cat > /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd << "EOF"</command> 120 ONBOOT="yes" 121 SERVICE="dhcpcd" 129 122 DHCP_START="<replaceable>[insert appropriate start options here]</replaceable>" 130 DHCP_STOP="-k <replaceable>[insert other stop options here]</replaceable>" 131 SERVICE=dhcpcd 123 DHCP_STOP="-k <replaceable>[insert additional stop options here]</replaceable>" 132 124 <command>EOF</command></userinput></screen> 133 125 … … 136 128 values, examine the man page for <command>dhcpcd</command>.</para> 137 129 138 <para>Finally, if the <acronym>DHCP</acronym> configured interface is 139 used as your default gateway, you should remove the GATEWAY and GATEWAY_IF 140 variables from <filename>/etc/sysconfig/network</filename>: </para> 141 142 <screen><userinput><command>sed -i "s/GATEWAY/#&/" /etc/sysconfig/network</command></userinput></screen> 130 <note>The default behavior of <command>dhcpcd</command> is to overwrite 131 (after making backup copies) <filename>/etc/resolv.conf</filename>, 132 <filename>/etc/yp.conf</filename> and <filename>/etc/ntp.conf</filename> 133 with new files containing information from the <acronym>DHCP</acronym> 134 server. If this is undesirable, review the <command>dhcpcd</command> 135 man page for switches to add to the <envar>DHCP_START</envar> 136 value.</note> 143 137 144 138 </sect3>
Note:
See TracChangeset
for help on using the changeset viewer.