Changeset 36f9a23
- Timestamp:
- 09/21/2003 03:11:22 AM (21 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 12.2, 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, gimp3, 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, v5_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/for-12.3, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/spidermonkey128, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- b2a9f85
- Parents:
- 110ec35a
- Location:
- connect
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
connect/connect.xml
r110ec35a r36f9a23 3 3 <title>Connecting to a Network</title> 4 4 5 <partintro><para>The LFS book covers setting up networking with a static6 IP. There are however, other methods which are used to connect to networks and 7 importantly the internet. We cover the most popular methods in this 8 chapter.</para></partintro>5 <partintro><para>The <acronym>LFS</acronym> book covers setting up networking 6 with a static <acronym>IP</acronym>. There are however, other methods which 7 are used to connect to networks and importantly the internet. We cover the 8 most popular methods in this chapter.</para></partintro> 9 9 10 10 &connect-dialup; -
connect/dhcp/bootscripts.xml
r110ec35a r36f9a23 1 1 <sect1 id="dhcpclient" xreflabel="Configuring the LFS bootscripts to support DHCP clients"> 2 2 <?dbhtml filename="configdhcp.html" dir="connect"?> 3 <title>Configuring the LFS bootscripts to support DHCPclients</title>3 <title>Configuring the <acronym>LFS</acronym> bootscripts to support <acronym>DHCP</acronym> clients</title> 4 4 5 5 <sect2><title>Config files</title> … … 13 13 14 14 <para>Note that on this and the following pages, we 15 use < userinput>eth0</userinput> as the example interface.15 use <emphasis role="strong">eth0</emphasis> as the example interface. 16 16 If you want to configure a different (or more than one) interface, simply 17 replace <userinput>eth0</userinput> with the interface you wish to use.</para> 17 replace <emphasis role="strong">eth0</emphasis> with the interface you wish to 18 use.</para> 18 19 19 <para>These instructions will convert the configuration files from LFS 20 (a static configuration) to a configuration using the DHCP protocol. 21 Note that static and DHCP-based interfaces can co-exist on a LFS system. To 22 do this, you should only make the alterations to those interfaces which 23 need to support DHCP. All of the instructions on this page are applicable 24 no matter which DHCP client you intend to use.</para> 20 <para>These instructions will convert the configuration files from 21 <acronym>LFS</acronym> (a static configuration) to a configuration using the 22 <acronym>DHCP</acronym> protocol. Note that static and 23 <acronym>DHCP</acronym>-based interfaces can co-exist on a 24 <acronym>LFS</acronym> system. To do this, you should only make the 25 alterations to those interfaces which need to support 26 <acronym>DHCP</acronym>. All of the instructions on this page are applicable 27 no matter which <acronym>DHCP</acronym> client you intend to use.</para> 25 28 26 29 <para>If the interface you intend to use as your default gateway is going to 27 use DHCP, the first step is to remove the <envar>GATEWAY</envar> and28 < envar>GATEWAY_IF</envar> variables30 use <acronym>DHCP</acronym>, the first step is to remove the <envar>GATEWAY 31 </envar> and <envar>GATEWAY_IF</envar> variables 29 32 from <filename>/etc/sysconfig/network</filename>. This will only need to be 30 33 done once.</para> 31 34 32 < para><screen><userinput>cd /etc/sysconfig &&35 <screen><userinput><command>cd /etc/sysconfig && 33 36 cp network network.bak && 34 sed "s/GATEWAY/# GATEWAY/" network.bak > network</ userinput></screen></para>37 sed "s/GATEWAY/# GATEWAY/" network.bak > network</command></userinput></screen> 35 38 36 39 <para>You then need to create scripts which will override the default 37 network scripts and provide DHCP support. These two scripts are generic and38 so for use with both DHCP clients. First, the 39 <filename>ifup-eth0</filename> script:</para>40 network scripts and provide <acronym>DHCP</acronym> support. These two scripts 41 are generic and so for use with both <acronym>DHCP</acronym> clients. First, 42 the <filename>ifup-eth0</filename> script:</para> 40 43 41 < para><screen><userinput>cat > /etc/sysconfig/network-devices/ifup-eth0 << "EOF" </userinput>44 <screen><userinput><command>cat > /etc/sysconfig/network-devices/ifup-eth0 << "EOF" </command> 42 45 #!/bin/sh 43 46 … … 49 52 modprobe eth0 50 53 loadproc $DHCP_PROG $DHCP_START 51 < userinput>EOF</userinput></screen></para>54 <command>EOF</command></userinput></screen> 52 55 53 56 <para>Then the <filename>ifdown-eth0</filename> script:</para> 54 57 55 < para><screen><userinput>cat > /etc/sysconfig/network-devices/ifdown-eth0 << "EOF" </userinput>58 <screen><userinput><command>cat > /etc/sysconfig/network-devices/ifdown-eth0 << "EOF" </command> 56 59 #!/bin/sh 57 60 … … 63 66 $DHCP_PROG $DHCP_STOP 64 67 evaluate_retval 65 < userinput>EOF</userinput></screen></para>68 <command>EOF</command></userinput></screen> 66 69 67 70 <para>Finally, we need to make these scripts executable:</para> 68 71 69 < para><screen><userinput>chmod 755 /etc/sysconfig/network-devices/ifup-eth0 &&70 chmod 755 /etc/sysconfig/network-devices/ifdown-eth0</ userinput></screen></para>72 <screen><userinput><command>chmod 755 /etc/sysconfig/network-devices/ifup-eth0 && 73 chmod 755 /etc/sysconfig/network-devices/ifdown-eth0</command></userinput></screen> 71 74 72 75 </sect2> -
connect/dhcp/dhcp-client.xml
r110ec35a r36f9a23 3 3 <title>dhcp-&dhcp-version;</title> 4 4 5 <para>The dhcp package comes with both a client (called dhclient) and a 6 server program for using DHCP. If you want to install this package, 5 <para>The <application>dhcp</application> package comes with both a client 6 (called <command>dhclient</command>) and a server program for using 7 <acronym>DHCP</acronym>. If you want to install this package, 7 8 the instructions can be found at <xref linkend="dhcp"/>. 8 9 Note that if you only want to use the client, you 9 10 do <emphasis>not</emphasis> need to run the server and so do not need 10 11 the startup script and links provided for the server daemon. 11 You only need to run the DHCP server if you're providing this12 service to a network, and it's likely that you'll know if that's the12 You only need to run the <acronym>DHCP</acronym> server if you're providing 13 this service to a network, and it's likely that you'll know if that's the 13 14 case; if it isn't, don't run the server! Once you have installed the 14 15 package, return here for information on how to configure the client 15 ( dhclient).</para>16 (<command>dhclient</command>).</para> 16 17 17 <para>To configure dhclient, you need to create two files,18 <para>To configure <command>dhclient</command>, you need to create two files, 18 19 <filename>/etc/sysconfig/network-devices/ifconfig.eth0</filename> and 19 20 <filename>/etc/dhclient.conf</filename>.</para> … … 23 24 existing file):</para> 24 25 25 < para><screen><userinput>cd /etc/sysconfig/network-devices &&26 cat > /etc/sysconfig/network-devices/ifconfig.eth0 << "EOF"</ userinput>26 <screen><userinput><command>cd /etc/sysconfig/network-devices && 27 cat > /etc/sysconfig/network-devices/ifconfig.eth0 << "EOF"</command> 27 28 ONBOOT=yes 28 29 DHCP_PROG=/sbin/dhclient 29 30 DHCP_START=<appropriate start parameters> 30 31 DHCP_STOP=-r 31 < userinput>EOF</userinput></screen></para>32 <command>EOF</command></userinput></screen> 32 33 33 34 <para>For more information on the appropriate 34 35 <envar>DHCP_START</envar> and <envar>DHCP_STOP</envar> 35 values, examine the man page for dhclient.</para>36 values, examine the man page for <command>dhclient</command>.</para> 36 37 37 38 <para>Next, you should then create 38 39 the <filename>/etc/dhclient.conf</filename> using the following command:</para> 39 40 40 < para><screen><userinput>cat > /etc/dhclient.conf << "EOF"</userinput>41 <screen><userinput><command>cat > /etc/dhclient.conf << "EOF"</command> 41 42 # dhclient.conf 42 43 … … 48 49 } 49 50 # end dhclient.conf 50 < userinput>EOF</userinput></screen></para>51 <command>EOF</command></userinput></screen> 51 52 52 53 </sect1> -
connect/dhcp/dhcp.xml
r110ec35a r36f9a23 1 1 <chapter id="connect-dhcp"> 2 2 <?dbhtml filename="dhcp.html" dir="connect"?> 3 <title> DHCPClients</title>3 <title><acronym>DHCP</acronym> Clients</title> 4 4 5 <para> DHCP stands for Dynamic Host Configuration Protocol. It is a6 protocol which is used by many sites to automatically provide7 information such as IP addresses, subnet masks and routing information8 to computers. If your network uses DHCP, you will need a DHCP client 9 in order to connect to it. DHCP is also used by some cable 10 modems.</para>5 <para><acronym>DHCP</acronym> stands for Dynamic Host Configuration Protocol. 6 It is a protocol which is used by many sites to automatically provide 7 information such as <acronym>IP</acronym> addresses, subnet masks and routing 8 information to computers. If your network uses <acronym>DHCP</acronym>, you 9 will need a <acronym>DHCP</acronym> client in order to connect to it. 10 <acronym>DHCP</acronym> is also used by some cable modems.</para> 11 11 12 <para>We currently provide installation instructions for two DHCP 13 clients, dhclient (from the dhcp package) and dhcpcd. We begin with a page 14 which shows how to alter the LFS bootscripts for generic DHCP support. 15 We then present the two sets of installation instructions which also discuss 12 <para>We currently provide installation instructions for two 13 <acronym>DHCP</acronym> clients, <command>dhclient</command> (from the 14 <application>dhcp</application> package) and <command>dhcpcd</command>. We 15 begin with a page which shows how to alter the <acronym>LFS</acronym> 16 bootscripts for generic <acronym>DHCP</acronym> support. We then present the 17 two sets of installation instructions which also discuss 16 18 how to create an appropriate configuration file to work with the 17 DHCPclient of your choice.</para>19 <acronym>DHCP</acronym> client of your choice.</para> 18 20 19 21 &connect-dhcp-bootscripts; -
connect/dialup/ppp/ppp-config.xml
r110ec35a r36f9a23 1 1 <sect2> 2 <title>Configuring ppp</title>2 <title>Configuring <application>ppp</application></title> 3 3 4 4 <sect3><title>Config files</title> … … 9 9 10 10 <para>The ppp daemon itself requires very little configuration. The 11 main trick is script the connection. This can be done either using the11 main trick is scripting the connection. This can be done either using the 12 12 chat program which comes with this package or by using <xref 13 13 linkend="wvdial"/>.</para> -
connect/dialup/ppp/ppp-desc.xml
r110ec35a r36f9a23 2 2 <title>Contents</title> 3 3 4 <para>The ppp package contains the <userinput>chat</userinput>, 5 <userinput>pppd</userinput>, <userinput>pppdump</userinput> and 6 <userinput>pppstats</userinput> programs.</para> 4 <para>The <application>ppp</application> package contains the 5 <command>chat</command>, 6 <command>pppd</command>, <command>pppdump</command> and 7 <command>pppstats</command> programs.</para> 7 8 8 9 </sect2> … … 11 12 12 13 <sect3><title>chat</title> 13 <para>The chat program defines a conversational exchange between the 14 computer and the modem. Its primary purpose is to establish the connection 15 between the Point-to-Point Protocol Daemon (pppd) and the remote's 16 pppd process.</para></sect3> 14 <para>The <command>chat</command> program defines a conversational exchange 15 between the computer and the modem. Its primary purpose is to establish the 16 connection between the Point-to-Point Protocol Daemon 17 (<acronym>pppd</acronym>) and the remote's <command>pppd</command> process. 18 </para></sect3> 17 19 18 20 <sect3><title>pppd</title> 19 <para> pppdis the Point to Point Protocol daemon.</para></sect3>21 <para><command>pppd</command> is the Point to Point Protocol daemon.</para></sect3> 20 22 21 23 <sect3><title>pppdump</title> 22 <para>pppdump is used to convert PPP record files 24 <para><command>pppdump</command> is used to convert 25 <acronym>PPP</acronym> record files 23 26 to a readable format.</para></sect3> 24 27 25 28 <sect3><title>pppstats</title> 26 <para>pppstats is used to print PPP statistics.</para></sect3> 29 <para><command>pppstats</command> is used to print 30 <acronym>PPP</acronym> statistics.</para></sect3> 27 31 28 32 </sect2> -
connect/dialup/ppp/ppp-inst.xml
r110ec35a r36f9a23 1 1 <sect2> 2 <title>Installation of ppp</title>2 <title>Installation of <application>ppp</application></title> 3 3 4 <para>Install ppp by running the following commands:</para> 4 <note><para><acronym>PPP</acronym> support must be compiled into the 5 kernel or available as a kernel module.</para></note> 5 6 6 <para><screen><userinput>./configure && 7 <para>Install <application>ppp</application> by running the following commands: 8 </para> 9 10 <screen><userinput><command>./configure && 7 11 make && 8 make install</ userinput></screen></para>12 make install</command></userinput></screen> 9 13 10 14 </sect2> -
connect/dialup/ppp/ppp-intro.xml
r110ec35a r36f9a23 1 1 <sect2> 2 <title>Introduction to ppp</title>2 <title>Introduction to <application>ppp</application></title> 3 3 4 <screen>Download location (HTTP): <ulink url="&ppp-download-http;"/> 5 Download location (FTP): <ulink url="&ppp-download-ftp;"/> 6 Version used: &ppp-version; 7 Package size: &ppp-size; 8 Estimated Disk space required: &ppp-buildsize;</screen> 4 <para>The <application>ppp</application> package contains the <command>pppd 5 </command> daemon and the <command>chat</command> program. 6 This is used for connecting to other machines; often for connecting to 7 the Internet via a dial-up connection to an <acronym>ISP</acronym>.</para> 9 8 10 <para>The ppp package contains the pppd daemon and the chat program. 11 This is used for connecting to other machines; often for connecting to 12 the Internet via a dial-up connection to an ISP.</para> 9 <sect3><title>Package information</title> 10 <itemizedlist spacing='compact'> 11 <listitem><para>Download (HTTP): <ulink 12 url="&ppp-download-http;"/></para></listitem> 13 <listitem><para>Download (FTP): <ulink 14 url="&ppp-download-ftp;"/></para></listitem> 15 <listitem><para>Download size: &ppp-size;</para></listitem> 16 <listitem><para>Estimated Disk space required: 17 &ppp-buildsize;</para></listitem> 18 <listitem><para>Estimated build time: 19 &ppp-time;</para></listitem></itemizedlist> 20 </sect3> 13 21 22 <!-- 14 23 <screen>ppp needs nothing to compile but you must have PPP support 15 either compiled in or as a kernel module to use it.</screen> 24 either compiled in or as a kernel module to use it.</screen> --> 16 25 17 26 </sect2> -
connect/dialup/ppp/ppp.ent
r110ec35a r36f9a23 9 9 <!ENTITY ppp-download-ftp "ftp://cs.anu.edu.au/pub/software/ppp/ppp-2.4.1.tar.gz"> 10 10 <!ENTITY ppp-size "524 KB"> 11 <!ENTITY ppp-time "">
Note:
See TracChangeset
for help on using the changeset viewer.