1. Connecting to Your Network (LAN)

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.

Testing your LAN Connection

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.

Checking Your Ethernet Card

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..

 

  1. 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).

  1. Use the Interface address field to enter the IP address of your computer (or of this Ethernet card, if you have more than one).
  2. Check the accuracy of the Broadcast Address and Network Mask fields.

Compare the values shown here with the values provided by your network administrator.

  1. If you want the Ethernet card to be the default route for packets leaving your system, choose the button next to Default Route so that it is Enabled.
  2. Enter the IP address of the Default gateway.

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.

  1. To make this interface active when you start your OpenLinux system, choose the button next to the field Init at boot time so that it reads Enabled.

For many users, this is all that is required to establish your Ethernet-based IP networking. Additional features include:

 

  1. You can select a network card driver from the list in this dialog box.

Checking Your Name Server

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:

  1. Open the Coas interface to set up your name server by choosing COAS|Network|TCP/IP|Resolver from the KDE main menu (See See You can configure how to access your local name server via this Coas dialog box.).
  1. You can configure how to access your local name server via this Coas dialog box.
  2. Check the order of resolving Internet domain names by reviewing the Information source field.

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.

  1. If you want to change the order of this process, choose the button labeled host, nis, dns and rearrange the order.
  2. Check the address of your DNS server as shown in the DNS server field.
  3. If you need to update the DNS server address or add another DNS server, click on the button that contains the address.

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.).

 

  1. 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.

  1. Add additional servers or edit the selected DNS server address by selecting items on the Edit menu.

Using Advanced Tools

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.

The LISA utility

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..

 

  1. 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

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:

ping localhost
  • Use a ping command with an IP address to establish that your Ethernet card is functioning (you can even start with the IP address of your own system to see that the Ethernet interface is configured). For example:
ping 207.179.18.1
  • Use a ping command with a host and domain name to establish that your DNS server is resolving domain names into IP addresses for you. For example:
ping www.calderasystems.com

The ifconfig command

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:

ifconfig

You can also use ifconfig with various command line parameters and options to manually complete any of the following tasks:

  • Add IP aliases to a single Ethernet card
  • Bring up or take down any network interface, such as the localhost test interface, or your eth0 Ethernet interface
  • Define your gateway address, network mask, and so forth.

To learn more about the options available with the ifconfig command, review the ifconfig man page.

The hosts and resolv.conf files

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.