Previous SectionNext Section

10.2 Configuring an Internet Connection

The Red Hat Linux Network Administration Tool simplifies configuration of your system to access the Internet via a telephone dialup, ISDN, DSL, Ethernet, or wireless connection. The Network Administration Tool requires you to follow a three-step process:

  1. Set up the hardware device associated with the connection.

  2. Specify DNS settings and hostnames.

  3. Activate the device, if necessary.

The following subsections explain how to perform these steps.

The Network Administration tool supports all these methods of connecting to the Internet. However, some hardware devices are not compatible with Red Hat Linux. And, some Internet service providers insist that their customers use only Windows. In either case, you can experience difficulties in connecting to the Internet. The final section of this chapter explains some means of last resort that might help you resolve problems.

10.2.1 Setting Up Hardware Devices

In the past, most computer users connected to the Internet via a POTS (plain old telephone service) dial-up modem. However, today, many means of connecting to the Internet are available. For example, many home computer users have high-speed connections using ISDN or DSL. Corporate computer users often connect to the Internet via a their local area network, using an Ethernet adapter. And wireless network adapters are becoming quite popular.

To set up a hardware device using the Network Administration Tool, login as root and choose System Settings Network from the GNOME or KDE menu. The Network Administration Tool appears, as shown in Figure 10-1.

Figure 10-1. The Network Administration Tool
figs/rh3_1001.gif

The Network Administration Tool has four tabs:

Devices

Used to associate a physical device with a network connection

Hardware

Used to set up a physical device

Hosts

Used to specify names of hosts not known to a DNS server

DNS

Used to specify DNS servers and related options

To begin setting up an Internet connection, click the Add button of the Device tab. A dialog box appears, inviting you to choose the type of your device, as shown in Figure 10-2. Choose the appropriate device type and click Forward. Then, follow the steps in the following subsection appropriate to the type of your device.

Red Hat Linux supports two schemes used by DSL providers: PPPoE (Point-to-Point Protocol over Ethernet) and DHCP (Dynamic Host Control Protocol). If your DSL provider uses DHCP, you should configure your DSL connection as though it were an Ethernet connection. Otherwise, you should specify xDSL as the device type.

Figure 10-2. The Add new Device Type dialog box
figs/rh3_1002.gif
10.2.1.1 Setting up a dialup modem

When you specify a Modem as the device type, the Network Administration Tool probes for your modem. This process may take several seconds. Once the Network Administration Tool locates the modem, it displays the Select Modem dialog box, shown in Figure 10-3, which lets you specify modem characteristics. Generally, the defaults are acceptable. However, check the documentation for your modem to be sure. If your phone line does not support touch tone dialing, de-select the Use touch tone dialing checkbox. Then, click Forward to continue.

Figure 10-3. The Select Modem dialog box
figs/rh3_1003.gif

The Select Provider dialog box appears, as shown in Figure 10-4. If your country and provider are listed, select them. Otherwise, Specify the phone number, name, login name, and password associated with your account. Then click Forward to continue.

Figure 10-4. The Select Provider dialog box
figs/rh3_1004.gif

The main Tool screen reappears. However, this time the screen includes a line identifying your modem as a ppp (Point-to-Point Protocol) device, as shown in Figure 10-5. Click Apply to save your changes.

Figure 10-5. The Network Administration Tool
figs/rh3_1005.gif

If the Network Administration Tool is unable to successfully probe your modem, your modem may not be compatible with Linux. Many laptops contain incompatible modems. Some modems—so-called WinModems—are compatible only with Windows. Other modems—so-called LinModems—are supported by their manufacturer only for Windows, but have available Linux drivers. To learn more about your modem and its compatibility with Linux, see http://www.linmodems.org or Rob Clark's WinModems Are Not Modems page, http://www.idir.net/~gromitkc/winmodem.html. If your modem is not compatible with Linux, you can often work around the problem by using an external modem. Because external modems connect via the serial port, essentially every serial modem designed for PC use is compatible with Linux.

10.2.1.2 Setting up an ISDN modem

When you specify an ISDN modem as the device type, the Network Administration Tool presents a list of supported ISDN modems, as shown in Figure 10-6. Specify the device characteristics and choose the D Channel Protocol used by your ISDN provider. Click Forward to continue.

Figure 10-6. The Select ISDN Adapter dialog box
figs/rh3_1006.gif

The Select Provider dialog box appears, shown earlier in Figure 10-4. If your country and provider are listed, select them. Otherwise, specify the phone number, name, login name, and password associated with your account. Then, click Forward to continue. The main Tool screen reappears. However, this time the screen includes a line identifying your ISDN modem as an ippp (ISDN Point-to-Point protocol) device. Click Apply to save your changes.

10.2.1.3 Setting up an xDSL modem

Several varieties of DSL are in use, including IDSL, ADSL, and SDSL. The xDSL device type supports each variety. When you specify DSL modem, the Network Administration Tool presents the Configure DSL connection dialog box, as shown in Figure 10-7. Specify the Ethernet device associated with your DSL link and the login name and password associated with your DSL account. Click Forward to continue. The main Tool screen reappears. However, this time the screen includes a line identifying your DSL modem as a ppp (Point-to-Point Protocol) device. Click Apply to save your changes.

Figure 10-7. The Configure DSL connection dialog box'
figs/rh3_1007.gif
10.2.1.4 Setting up an Ethernet adapter

When you select Ethernet adapter as the device type, the Network Administration Tool probes your system for supported Ethernet adapters and displays a list of the adapters it finds, as shown in Figure 10-8. Select the adapter you want to configure and click Forward.

Figure 10-8. The Select Ethernet Device dialog box
figs/rh3_1008.gif

The Configure Network Settings dialog box appears, as shown in Figure 10-9. If your ISP provides a DHCP server that supplies your system with its network configuration, enable the Automatically obtain IP address settings with radiobutton and choose DHCP from the drop-down list. Also, enable the Automatically obtain DNS information from provider checkbox. If your provider uses BOOTP, which is now unusual, choose BOOTP from the drop-down list.

Figure 10-9. The Configure Network Settings dialog box
figs/rh3_1009.gif

If your provider requires you to manually specify your system's network configuration, enable the Statically set IP address radiobutton. Then, specify the IP address, subnet mask, and default gateway address as directed by your network administrator. Click Forward to continue. The main Tool screen reappears. However, this time the screen includes a line identifying your Ethernet adapter as an eth device. Click Apply to save your changes.

10.2.1.5 Setting up a wireless adapter

When you select Wireless adapter as the device type, the Network Administration Tool probes your system for supported wireless adapters and displays a list of the adapters it finds, as shown in Figure 10-10. Select the appropriate adapter and click Forward.

Figure 10-10. The Select Wireless Device dialog box
figs/rh3_1010.gif

If the adapter is not specifically identified, choose Other Wireless Card and click Forward. The Select Ethernet Adapter dialog box appears, as shown in Figure 10-11. Choose the appropriate adapter and specify its characteristics. Click Forward to continue.

Figure 10-11. The Select Ethernet Adapter dialog box
figs/rh3_1011.gif

The Configure Wireless Connection dialog box appears, as shown in Figure 10-12. Specify the mode (Managed or Ad Hoc) in which your wireless access point operates or specify Auto to configure the adapter to use whatever mode the access point uses.

Figure 10-12. The Configure Wireless Connection dialog box
figs/rh3_1012.gif

Access points using Ad Hoc mode are vulnerable to several types of attack. It's generally best to configure your access points to use Managed mode and specify Managed rather than Auto as the adapter mode.

Specify the SSID (Service Set Identifier) of your network or specify Auto if you want to connect to any available network. Then, specify the channel, transmit rate, and key (if any) associated with your network. Click Forward to continue. The main Tool screen reappears. However, this time the screen includes a line identifying your Ethernet adapter as an eth device. Click Apply to save your changes.

Many users install access points that operate using the default SSID set by the manufacturer and no key. Such users' networks are vulnerable to attack by passersby. For more information, see http://www.wardriving.com.

10.2.2 Specifying DNS Settings and Hostnames

The DNS tab of the Network Configuration Tool, shown in Figure 10-13, lets you configure DNS. However, if your ISP provides DNS information via DHCP, you don't need to do so.

Figure 10-13. The DNS tab of the Network Configuration Tool
figs/rh3_1013.gif

Internet hosts are generally known by both an IP address and hostname. DNS translates hostnames to IP addresses and IP addresses to hostnames. Translating a hostname to an IP address is called hostname lookup or address resolution. Translating an IP address to a hostname is called reverse lookup. DNS is important, but not essential. For instance, without DNS, you'd have to type IP addresses rather than hostnames when browsing the Web. Doing so would be inconvenient, but workable. However, you wouldn't be able to simply click hyperlinks specified using hostnames. Instead, you'd have to somehow figure out and type the proper IP address.

Using the tab, you can specify the hostname of your system, and the IP addresses of primary, secondary, and tertiary DNS servers. You can also specify one or more domain names that are automatically added to hostnames when performing hostname lookups. For example, if you frequently access hosts in the example.com domain, you can include example.com on the search path. Then, you can refer to the host www.example.com as simply www.

10.2.3 Activating the Device

The Network Administration Tool activates some network devices, such as Ethernet adapters, automatically. Other network devices, such as dial-up modems, must be manually activated and deactivated. To activate a device, select its name in the Devices tab of the Network Administration Tool and click Activate. If the device is a dial-up modem, it will attempt to connect to your ISP.

Once a connection is established, you should be able to access the Internet. Try to ping an Internet host by issuing a command such as ping www.redhat.com in a terminal window. You should see replies from the host:

PING www.redhat.com (66.187.232.56) from 10.0.0.2 : 56(84) bytes of data.
64 bytes from redhat.com (66.187.232.56): icmp_seq=0 ttl=239 time=94.383 msec
64 bytes from redhat.com (66.187.232.56): icmp_seq=1 ttl=239 time=92.060 msec
64 bytes from redhat.com (66.187.232.56): icmp_seq=2 ttl=239 time=91.961 msec
--- www.redhat.com ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/mdev = 91.961/92.801/94.383/1.146 ms

Terminate the ping command by typing Ctrl-C.

If the command doesn't work, perhaps your connection isn't working. Or perhaps your ISP's DHCP server failed to properly provide DNS information. Try pinging the IP address of a host you know to be available. For example, issue a command such as:

$ ping -n 66.187.232.56

If pinging the IP address works, simply use the DNS tab to revise your DNS configuration and you're set. Otherwise, you may have some difficulty getting the connection to work. Use the ifconfig and route commands to view your network configuration. If you can figure out the problem, again you're set. If not, you may be able to obtain help from your ISP or from participants in an Internet newsgroup, such as linux.redhat or linux.redhat.misc.

To terminate a connection, deactivate the associated device by clicking Deactivate on the Devices tab.

After setting up your hardware device, you can edit its characteristics by highlighting the line identifying it and clicking Edit.

If you use your computer in multiple locations, you can use profiles to establish multiple network connections from which you can conveniently choose. For information on doing so, see section 11.12 of The Official Red Hat Linux Customization Guide.

    Previous SectionNext Section