Internet connections are an important part of many users' work, but if your Linux system is part of a corporate network, it may be even more important to be able to connect to the corporate LAN to share information with your coworkers. This chapter describes how to test your connection to your local network, and how to gather information and set up that connection if it isn't already established.
CAUTION: Setting up network connections can be a challenging task. If the information provided in this chapter doesn't get you connected to your LAN, read further in the administration sections of Chapter XX of this manual or contact your system administrator.
During the installation of OpenLinux, you have the opportunity to configure your network connection. You can also establish or update that connection after the installation using the utilities described in this chapter.
One way to test your LAN connection is to start Netscape Communicator from the Panel or main menu in KDE and connect to a server located within your local area network (your LAN) by entering a URL (Web address) within your organization. This checks you network and your name server.
To just test your network, you can use the ping utility. With a known IP address on your network, from the main menu select Internet|Network utilities. Select the Ping tab, type the IP address (such as 192.66.100.5), and click on Go! After a moment, you should see messages that begin with "64 bytes from..." appearing on your screen. If instead you get a "Network is unreachable" message, your network is not configured properly to reach that IP address. If there is a long pause with no messages, the network might be working, but the computer you are trying to connect to may not be available. Click on Stop to stop pinging that IP address.
If those tests fail, or if you don't have an internal Web site that is convenient for testing, review the configuration information that follows to help establish a connection.
Most LAN connections these days are established via an Ethernet card. Other types of connections include ATM and Token Ring, which Linux does support. Only Ethernet connections are described in this section.
The easiest method of setting up your Ethernet card with the correct network address information is via the Coas administration interface. To start this utility, choose Settings|COAS|Network|Ethernet Interfaces on the KDE main menu.
The main window of the Ethernet configuration screen is shown in See You can configure your Ethernet card via this COAS administration interface..
From this interface, you can see the networking device that your Ethernet card is attached to (generally eth0, or eth1 if you have two Ethernet cards).
Compare the values shown here with the values provided by your network administrator.
If you haven't enabled the default route, the gateway for this Ethernet card is not enabled. This address indicates the address of the machine connected to your LAN that routes the packet you send outside of the LAN.
For many users, this is all that is required to establish your Ethernet-based IP networking. Additional features include:
Once your network card is working correctly, you may need to check your name server information. The name server is a computer on your network that maps a familiar name like www.cnn.com to an actual IP address. Network information packets are routed and delivered solely by these IP addresses.
As with your other networking information, you have the opportunity to define your name server during the installation process. If you need to review or update that information now, follow these steps:
The normal order is host, nis, dns. This means that first your local hosts file (/etc/hosts) is searched to resolve the domain name to an IP address, then the NIS database is checked, and lastly the DNS server is accessed via your network connection.
A dialog box opens where you can define DNS servers by their IP addresses (See You can define DNS servers by entering their IP addresses in this dialog box.).
NOTE: It's a good idea to have at least two DNS servers listed in this dialog box. If one DNS server is unavailable for some reason, your system can query the other DNS server to resolve domain names.
Besides the COAS graphical utilities presented so far in this chapter, Linux includes many other utilities that you can use to explore and manage your networking connections.
Many of these tools are command line utilities that are not as easy to use as the COAS interface. Part of using these command line utilities is knowing where networking information is stored on your system.
You can use the lisa utility to manage your network connections from a character-based command line. Enter the command lisa , then from the LISA screen select System Configuration to reach the Network Configuration selection shown in See You can set up networking via a character interface with the lisa utility..
Other commands that are useful in checking your network connections are described here:
The ping command checks that a network connection can be established between your computer and another computer. To use the ping command, enter ping with the name or IP address of another computer.
You can use ping within your local network to check your Ethernet connection; you can also use ping to check that your connection to the Internet is active.
When using ping to check for networking problems, follow this order of testing:
Another useful command is ifconfig . This command is used behind the scenes by the Coas and lisa utilities to establish your networking within the Linux kernel, based on the IP addresses and other information that you provide.
You can enter the ifconfig command without any parameters to see a list of your current network interfaces:
You can also use ifconfig with various command line parameters and options to manually complete any of the following tasks:
To learn more about the options available with the ifconfig command, review the ifconfig man page.
Two files that are important to your networking are:
NOTE: Placing names and IP addresses in the /etc/hosts file can save time by not having to resolve an address over the network. However, if a host's IP address changes, it will not be automatically picked up in your /etc/hosts file.
This chapter provides an introduction to connecting to your local network and configuring your networking hardware. You may need to refer to additional resources if the installation process and the procedures provided here don't establish the network connections that you need.
Additional information is provided on the Caldera Systems Web site, via the Knowledge Base.