<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>1. Network and Internet Connection Management</title> <link rel="stylesheet" href="images/mdk-doc.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.73.2"> <link rel="start" href="index.html" title="Mastering Mandriva Linux"> <link rel="up" href="mcc-network.html" title="Chapter 10. Setting up your Network and Accessing the Web"> <link rel="prev" href="mcc-network.html" title="Chapter 10. Setting up your Network and Accessing the Web"> <link rel="next" href="drakconnect-proxy.html" title="2. Proxies Configuration"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">1. Network and Internet Connection Management </th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="mcc-network.html">Prev</a> </td> <th width="60%" align="center">Chapter 10. Setting up your Network and Accessing the Web</th> <td width="20%" align="right"> <a accesskey="n" href="drakconnect-proxy.html">Next</a></td> </tr> </table> <hr> </div> <div class="section" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name="internet-connection"></a>1. Network and Internet Connection Management </h2> </div> </div> </div> <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Tip"> <tr> <td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="images/tip.png"></td> <th align="left">Tip</th> </tr> <tr> <td align="left" valign="top"> <p><a name="BId-internet-connection-pa1"></a>Before connecting to the Internet, you are encouraged to set up a firewall on your machine so as to avoid bad surprises such as intrusions into your system. You can set up a very simple, yet effective firewall using <span class="application">DrakFirewall</span>. Please refer to <a class="xref" href="tinyfirewall.html" title="3. Securing your Internet Access via DrakFirewall">Section 3, “Securing your Internet Access via DrakFirewall”</a> for more information. </p> </td> </tr> </table> </div> <p><a name="BId-internet-connection-pa2"></a><a class="indexterm" name="BId-internet-connection-it1"></a> The <span class="application">drakconnect</span> set of tools allows you to easily configure your network access, whether it be to the <em class="glossterm">Internet</em> or to a local network, while the new <span class="application">Network Center</span> allows you to reconfigure and monitor your network interfaces. Open <a class="indexterm" name="BId-internet-connection-it2"></a> <span class="application">Mandriva Linux Control Center</span> and select the <span class="guilabel">Network & Internet</span> section to access these tools. A view of the main interface is shown in <a class="xref" href="internet-connection.html#drakconnect-main" title="Figure 10.1. Network Configuration and Monitoring Tools">Figure 10.1, “Network Configuration and Monitoring Tools”</a> . </p> <div class="figure"><a name="drakconnect-main"></a><p class="title"><b>Figure 10.1. Network Configuration and Monitoring Tools</b></p> <div class="figure-contents"> <div class="mediaobject"><img src="images/drakconnect-main.png" alt="Network Configuration and Monitoring Tools"></div> </div> </div><br class="figure-break"> <div class="section" lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a name="drakconnect-new"></a>1.1. Setting Up a New Network Interface </h3> </div> </div> </div> <p><a name="BIdNEW-internet-connection-pa17"></a><span class="inlinemediaobject"><img src="images/drakconnect-new-icon.png"></span> <span class="application">drakconnect</span> supports different types of Internet and network connections<sup>[<a name="d5e6569" href="#ftn.d5e6569" class="footnote">10</a>]</sup>. The first step consists of choosing which type of connection you want to configure. Always make sure you have all the information provided by your <acronym class="acronym">ISP</acronym> or network administrator at hand. </p> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Note"> <tr> <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="images/note.png"></td> <th align="left">Note</th> </tr> <tr> <td align="left" valign="top"> <p><a name="BIdNEW-internet-connection-pa61"></a>After a connection has been configured, it may be further modified using the <span class="guilabel">Network Center</span> (see <a class="xref" href="internet-connection.html#drakconnect-manage" title="1.2. Network Center: Reconfiguring and Monitoring Network Interfaces">Section 1.2, “Network Center: Reconfiguring and Monitoring Network Interfaces”</a>). </p> </td> </tr> </table> </div> <div class="section" lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a name="drakconnect-lan"></a>1.1.1. Wired Ethernet Connection </h4> </div> </div> </div> <div class="procedure"> <ol type="1"> <li> <p><a name="BIdNEW-internet-connection-pa25"></a>Your <acronym class="acronym">NIC</acronym>s are detected automatically; if you have more than one, select the one you want to configure. You can also load a driver for your <acronym class="acronym">NIC</acronym> manually. </p> </li> <li> <p><a name="BIdNEW-internet-connection-pa26"></a>You now have to specify whether the network parameters are automatically set up (<span class="guilabel">Automatic IP (BOOTP/DHCP)</span>) or not (<span class="guilabel">Manual configuration</span>): fill the next fields with the parameters that your <acronym class="acronym">ISP</acronym> or network administrator gave you. </p> </li> <li> <ol type="a"> <li> <div class="figure"><a name="drakconnect-static-ip"></a><p class="title"><b>Figure 10.2. Setting Static LAN Connection Parameters</b></p> <div class="figure-contents"> <div class="mediaobject" align="center"><img src="images/drakconnect-static-ip.png" align="middle" alt="Setting Static LAN Connection Parameters"></div> </div> </div><br class="figure-break"> <p><a name="BIdNEW-internet-connection-pa33"></a>If you chose the static <acronym class="acronym">IP</acronym> configuration type, you must specify the rest of the parameters, namely the hostname, <acronym class="acronym">DNS</acronym> server <acronym class="acronym">IP</acronym> address(es) and the <acronym class="acronym">IP</acronym> address of the machine giving you access to the Internet, known as the gateway (see <a class="xref" href="internet-connection.html#drakconnect-static-ip" title="Figure 10.2. Setting Static LAN Connection Parameters">Figure 10.2, “Setting Static LAN Connection Parameters”</a>). </p> </li> <li> <p><a name="BIdNEW-internet-connection-pa34"></a>If you configure the network with <acronym class="acronym">DHCP</acronym>, you can optionally provide <acronym class="acronym">DNS</acronym> server information (remove the check from the <span class="guilabel">Get DNS servers from DHCP</span> option and fill the corresponding fields with the <acronym class="acronym">IP</acronym> addresses or hostnames of the <acronym class="acronym">DNS</acronym> servers) and the machine's hostname (remove the check from the <span class="guilabel">Assign host name from DHCP address</span> option and fill the corresponding field with the hostname: this is the name which will be assigned to the machine when no network configuration has been found). </p> </li> </ol> </li> <li> <div class="variablelist"> <dl> <dt><span class="term"><a name="BIdNEW-internet-connection-te1"></a><span class="guilabel">Allow users to manage the connection</span></span></dt> <dd> <p><a name="BIdNEW-internet-connection-pa62"></a>If you want users to be able to bring up or shutdown the connection without having to provide the administrator (<code class="literal">root</code>) password check this box. </p> </dd> <dt><span class="term"><a name="BIdNEW-internet-connection-te2"></a><span class="guilabel">Start the connection at boot</span></span></dt> <dd> <p><a name="BIdNEW-internet-connection-pa63"></a>Uncheck this if you want the connection to be activated on demand only. </p> </dd> </dl> </div> </li> </ol> </div> <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Tip: The Net
 Applet"> <tr> <td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="images/tip.png"></td> <th align="left">The Net Applet </th> </tr> <tr> <td align="left" valign="top"> <p><a name="BIdNEW-internet-connection-pa35"></a>An applet appears in the desktop's panel indicating that the connection is up <span class="inlinemediaobject"><img src="images/drakconnect-connected-icon.png"></span> or down <span class="inlinemediaobject"><img src="images/drakconnect-disconnected-icon.png"></span>. Right click on it to access a menu that also allows you to control the connection's state, as well as other parameters. </p> </td> </tr> </table> </div> </div> <div class="section" lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a name="drakconnect-wifi"></a>1.1.2. Wireless Connection </h4> </div> </div> </div> <p><a name="BIdNEW-internet-connection-pa51"></a>This entry allows you to configure <acronym class="acronym">WiFi</acronym> (<acronym class="acronym">PCMCIA</acronym> or <acronym class="acronym">PCI</acronym>) devices. </p> <div class="procedure"> <ol type="1"> <li> <p><a name="BIdNEW-internet-connection-pa52"></a>If your WiFi card is not listed, insert the manufacturer's card drivers CD, then choose the <span class="guilabel">Use a Windows driver (with ndiswrapper)</span> entry and select the driver (it's a file whose name ends in <code class="literal">.inf</code>) from the CD. </p> </li> <li> <p><a name="BIdNEW-internet-connection-pa64"></a>A list of detected networks is then shown. Select yours; otherwise, choose <span class="guilabel">unlisted</span>. </p> </li> <li> <div class="variablelist"> <dl> <dt><span class="term"><a name="BIdNEW-internet-connection-te3"></a><span class="guilabel">Operating Mode</span></span></dt> <dd> <p><a name="BIdNEW-internet-connection-pa65"></a>The mode the card will operate on, with respect to the other WiFi devices in the network. The most common one is <span class="guimenuitem">Managed</span> to simply connect to an existing access point. </p> </dd> <dt><span class="term"><a name="BIdNEW-internet-connection-te4"></a><span class="guilabel">Network Name (ESSID)</span></span></dt> <dd> <p><a name="BIdNEW-internet-connection-pa66"></a>The name of the network you want to connect to. Ask your network administrator. </p> </dd> <dt><span class="term"><a name="BIdNEW-internet-connection-te5"></a><span class="guilabel">Encryption Mode</span></span></dt> <dd> <p><a name="BIdNEW-internet-connection-pa67"></a>This depends on the network settings, ask your network administrator. </p> </dd> <dt><span class="term"><a name="BIdNEW-internet-connection-te6"></a><span class="guilabel">Encryption Key</span></span></dt> <dd> <p><a name="BIdNEW-internet-connection-pa68"></a>This also depends on the network settings, ask your network administrator for the key the network uses. </p> </dd> </dl> </div> </li> <li> <p><a name="BIdNEW-internet-connection-pa70"></a>This is similar to the traditional Ethernet network setup: see <a class="xref" href="internet-connection.html#drakconnect-lan" title="1.1.1. Wired Ethernet Connection">Section 1.1.1, “Wired Ethernet Connection”</a>. </p> </li> <li> <p><a name="BIdNEW-internet-connection-pa71"></a>Check the <span class="guilabel">Allow access point roaming</span> box if you want the connection to automatically switch from one access point to another, depending on its signal strength. This is particularly useful when moving a laptop around. </p> </li> </ol> </div> </div> <div class="section" lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a name="drakconnect-adsl"></a>1.1.3. DSL Connection </h4> </div> </div> </div> <div class="procedure"> <ol type="1"> <li> <p><a name="BIdNEW-internet-connection-pa36"></a>Choose which device your <acronym class="acronym">DSL</acronym> modem is connected to, and click <span class="guibutton">Next</span>. </p> </li> <li> <p><a name="BIdNEW-internet-connection-pa37"></a>You then see a list of countries/<acronym class="acronym">ISP</acronym>s. If yours is listed, select it: most of the following parameters will be automatically set. If your <acronym class="acronym">ISP</acronym> is not listed, select the <span class="guilabel">Unlisted - edit manually</span> option, click on <span class="guibutton">Next</span> and fill the parameters with the settings provided by your <acronym class="acronym">ISP</acronym>. </p> </li> <li> <p><a name="BIdNEW-internet-connection-pa38"></a>You have to specify the connection protocol, as advertised by your provider. The most common protocol being <acronym class="acronym">DHCP</acronym>, followed by <acronym class="acronym">PPPoE</acronym> and <acronym class="acronym">PPPoA</acronym>. </p> <div class="figure"><a name="drakconnect-adsl-type"></a><p class="title"><b>Figure 10.3. Setting the DSL Connection Protocol</b></p> <div class="figure-contents"> <div class="mediaobject" align="center"><img src="images/drakconnect-adsl-conn-type.png" align="middle" alt="Setting the DSL Connection Protocol"></div> </div> </div><br class="figure-break"> <p><a name="BIdNEW-internet-connection-pa45"></a>All protocol types need at least a user name and a password, fill the corresponding fields with them. The required packages are installed. </p> </li> <li> <p><a name="BIdNEW-internet-connection-pa47"></a>You are then asked whether users can bring the connection up/down and whether or not to bring the connection up at boot: since <acronym class="acronym">DSL</acronym> connections are of the “<span class="quote">always up</span>” type, you can safely check the <span class="guilabel">Start connection at boot</span> option. Finally you can test the connection: we strongly recommend you to do so, to make sure all parameters are accurate. </p> </li> </ol> </div> </div> <div class="section" lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a name="drakconnect-cablemodem"></a>1.1.4. Cable Connection </h4> </div> </div> </div> <p><a name="BIdNEW-internet-connection-pa50"></a>This configuration is very similar to the one described in <a class="xref" href="internet-connection.html#drakconnect-lan" title="1.1.1. Wired Ethernet Connection">Section 1.1.1, “Wired Ethernet Connection”</a>. Make sure you have all required parameters provided by your <acronym class="acronym">ISP</acronym> at hand. </p> <p> <b>Authentication. </b> Some cable <acronym class="acronym">ISP</acronym>s need you to authenticate. If this is your case, select the <span class="guilabel">Use BPALogin</span> option. If you are unsure or don't know, it is safe to select the <span class="guilabel">None</span> option. </p> </div> <div class="section" lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a name="drakconnect-modem"></a>1.1.5. Modem Connection (POTS) </h4> </div> </div> </div> <div class="procedure"> <ol type="1"> <li> <p><a name="BIdNEW-internet-connection-pa18"></a>A list of detected modems is shown. If no modem was detected, only the <span class="guilabel">Manual choice</span> option is shown, click on <span class="guibutton">Next</span> and choose the communications port the modem is connected to. The required packages are installed. </p> </li> <li> <p><a name="BIdNEW-internet-connection-pa24"></a>Then you see a list of countries/<acronym class="acronym">ISP</acronym>s. If yours is listed, select it and continue to the next step: some parameters (connection name, phone number to dial, and authentication scheme) will be automatically set. If not, select the <span class="guilabel">Unlisted - edit manually</span> option. </p> </li> <li> <p><a name="BIdNEW-internet-connection-pa73"></a>Verify the parameters, add the missing ones provided by your <acronym class="acronym">ISP</acronym>. </p> <div class="figure"><a name="drakconnect-2"></a><p class="title"><b>Figure 10.4. Entering Dial-up Connection Parameters</b></p> <div class="figure-contents"> <div class="mediaobject" align="center"><img src="images/drakconnect-2.png" align="middle" alt="Entering Dial-up Connection Parameters"></div> </div> </div><br class="figure-break"> <p><a name="BId-internet-connection-pa13"></a>All parameters should be obvious, except for the authentication type. The value in the <span class="guilabel">Authentication</span> pull-down depends on what your <acronym class="acronym">ISP</acronym> supports: <span class="guilabel">Script-based</span> (an old type of authentication method based on “<span class="quote">expect</span>” and “<span class="quote">send</span>” types of chat between your system and your <acronym class="acronym">ISP</acronym>); <span class="guilabel">Terminal based</span> (a terminal window pops up when the connection is made and you have to login interactively); <span class="guilabel">PAP</span>, <span class="guilabel">CHAP</span>, or <span class="guilabel">PAP/CHAP</span> (authentication information exchange protocols, <acronym class="acronym">CHAP</acronym> is preferred because it is more secure, <span class="guilabel">PAP/CHAP</span> will automatically choose the supported one). </p> </li> <li> <p><a name="BId-internet-connection-pa14"></a>Then come the <acronym class="acronym">IP</acronym>, <acronym class="acronym">DNS</acronym> and gateway settings. Nowadays, most <acronym class="acronym">ISP</acronym>s provide them automatically when a connection is made, so selecting the <span class="guilabel">Automatic</span> option on them is usually a safe bet. </p> </li> <li> <p>You are then asked whether users can bring the connection up/down and whether or not to bring the connection up at boot: since analog modem telephone connections are not of the “<span class="quote">always up</span>” type, you should not check the <span class="guilabel">Start connection at boot</span> option. Finally you can test the connection: we strongly recommend you to do so, to make sure all parameters are accurate. </p> </li> </ol> </div> </div> </div> <div class="section" lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a name="drakconnect-manage"></a>1.2. Network Center: Reconfiguring and Monitoring Network Interfaces </h3> </div> </div> </div> <p><a name="BIdNEW-internet-connection-pa21"></a><span class="inlinemediaobject"><img src="images/netcenter_128.png"></span>The Network Center allows you to check network interface status; modify network interface-specific parameters, after you have set them up through the new interface wizard (see <a class="xref" href="internet-connection.html#drakconnect-new" title="1.1. Setting Up a New Network Interface">Section 1.1, “Setting Up a New Network Interface”</a>); and connect/disconnect the network interfaces. </p> <div class="mediaobject" align="center"><img src="images/drakconnect-NC.png" align="middle"></div> <p>For each network interface the following is shown: an icon<sup>[<a name="d5e6794" href="#ftn.d5e6794" class="footnote">11</a>]</sup> representing interface status (<span class="inlinemediaobject"><img src="images/ethernet-24-on.png"></span> for Up or Connected; <span class="inlinemediaobject"><img src="images/ethernet-24-off.png"></span> for Down or Disconnected; and <span class="inlinemediaobject"><img src="images/ethernet-24-w.png"></span> for Non configured - typical for WiFi interfaces which are not linked to an access point); the interface hardware name; and the interface software device, for example <code class="literal">eth0</code> for the 1<sup>st</sup> Ethernet interface. </p> <p>Click on the small triangle on the interface status icon to show buttons to take actions on the corresponding interface: </p> <div class="variablelist"> <dl> <dt><span class="term">Traffic Monitoring</span></dt> <dd> <p>Click on <span class="guibutton">Monitor</span> to monitor traffic on the interface as shown in <a class="xref" href="internet-connection.html#drakconnect-monitor" title="1.3. Monitoring Connections">Section 1.3, “Monitoring Connections”</a>. </p> </dd> <dt><span class="term">Change Configuration</span></dt> <dd> <p>Click on <span class="guibutton">Configure</span> to change the interface configuration parameters as shown in <a class="xref" href="internet-connection.html#drakconnect-reconfigure" title="1.4. Reconfiguring a Network Interface">Section 1.4, “Reconfiguring a Network Interface”</a>. </p> </dd> <dt><span class="term">Show Available Wireless Networks (if a wireless interface is selected)</span></dt> <dd> <p>Click on <span class="guibutton">Refresh</span> to rescan for available wireless networks, and select the network you want to connect to from the list. For more details about how to use the wireless connections management interface, please refer to <a class="xref" href="drakroam.html" title="5. Managing Wireless Connections (Roaming)">Section 5, “Managing Wireless Connections (Roaming)”</a>. </p> </dd> <dt><span class="term">Connection Control</span></dt> <dd> <p>Simply click on <span class="guibutton">Connect</span>/<span class="guibutton">Disconnect</span> to bring the network link up or down on that interface. </p> </dd> </dl> </div> </div> <div class="section" lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a name="drakconnect-monitor"></a>1.3. Monitoring Connections </h3> </div> </div> </div> <div class="figure"><a name="drakconnect-monitor-main"></a><p class="title"><b>Figure 10.5. Real-Time Network Connection Monitoring</b></p> <div class="figure-contents"> <div class="mediaobject" align="center"><img src="images/drakconnect-monitor-main.png" align="middle" alt="Real-Time Network Connection Monitoring"></div> </div> </div><br class="figure-break"> <p><a name="BIdNEW-internet-connection-pa22"></a>Network interface activity is shown for the selected interface. You can specify some options for the traffic graphic and statistics (see <a class="xref" href="internet-connection.html#drakconnect-monitor-main" title="Figure 10.5. Real-Time Network Connection Monitoring">Figure 10.5, “Real-Time Network Connection Monitoring”</a>). It can also be used to control the status of the network connection, bringing it up or down using the button at the lower left. </p> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Note"> <tr> <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="images/note.png"></td> <th align="left">Note</th> </tr> <tr> <td align="left" valign="top"> <p><a name="BIdNEW-internet-connection-pa60"></a>The network monitoring interface can be brought up by users through the net applet to monitor traffic. </p> </td> </tr> </table> </div> </div> <div class="section" lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a name="drakconnect-reconfigure"></a>1.4. Reconfiguring a Network Interface </h3> </div> </div> </div> <div class="figure"><a name="drakconnect-change-config"></a><p class="title"><b>Figure 10.6. Changing Network Parameters</b></p> <div class="figure-contents"> <div class="mediaobject" align="center"><img src="images/drakconnect-change-config.png" align="middle" alt="Changing Network Parameters"></div> </div> </div><br class="figure-break"> <p><a name="BIdNEW-internet-connection-pa23"></a>Current interface configuration is shown where you can change basic parameters such as whether to use an automatic or manual configuration, and if set to manual then which <acronym class="acronym">IP</acronym> address, gateway and <acronym class="acronym">DNS</acronym> servers to use. Click on <span class="guibutton">Advanced</span> to access more advanced configuration parameters, for example which <acronym class="acronym">DHCP</acronym> client to use. </p> </div> <div class="footnotes"><br><hr width="100" align="left"> <div class="footnote"> <p><sup>[<a name="ftn.d5e6569" href="#d5e6569" class="para">10</a>] </sup>We only describe the most common types. If yours is not described, you may still be able to use the methods described here as a guide. </p> </div> <div class="footnote"> <p><sup>[<a name="ftn.d5e6794" href="#d5e6794" class="para">11</a>] </sup>The example shows the icons for Ethernet interfaces, the icon displayed will vary for other interface types, but the coloring scheme is the same. </p> </div> </div> </div> <div class="navfooter"> <hr> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="mcc-network.html">Prev</a> </td> <td width="20%" align="center"><a accesskey="u" href="mcc-network.html">Up</a></td> <td width="40%" align="right"> <a accesskey="n" href="drakconnect-proxy.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">Chapter 10. Setting up your Network and Accessing the Web </td> <td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td> <td width="40%" align="right" valign="top"> 2. Proxies Configuration </td> </tr> </table> </div> </body> </html>