Connecting Your BeOS System to the Internet
The BeOS is an Internet-native operating system, based on the same networking standards and protocols as those that control the Internet. These include TCP/IP, the basic Internet networking standard, and standards for file sharing, remote access, the worldwide web, and electronic mail. By utilizing these standards, your BeOS system can communicate with any other system on the Internet, including other BeOS systems, Windows, Mac OS, Unix, and other Internet-capable systems.
Introduction
This chapter discusses how to configure your BeOS system for Internet networking. The next chapter, "Using Internet Services," describes how to set up your BeOS system for file sharing, worldwide web access, receiving Internet electronic mail, Internet remote access, and setting up a worldwide web server. Connecting your BeOS system to the Internet consists of these five steps;
You can also connect to the Internet using a modem. The BeOS supports a wide selection of modems, connected to your system through one of your computer's serial ports.
For information on installing networking interface cards, transceivers, modems, and cables to your PowerMacintosh or BeBox system, see your PowerMacintosh-compatible hardware user's guide, BeBox hardware system user's guide, and the guides that came with your networking interface cards, modems, and cables. Once you have connected the proper hardware, return here to learn how to configure the BeOS software for your specific setup.
· Internet IP Address
An IP (Internet Protocol) address is a set of four numbers, each ranging from zero to 255, separated by periods (also known as dots, and so sometimes an IP address is known as a dot address). An example of an IP address is 192.168.0.67. This is the basic form of "street address" for the Internet. All connected computers, and the hardware that runs the Internet, understand IP addresses. No two computers connected to the Internet have the same IP address at the same time.
· Internet Domain Name
A domain name is a human-readable (or human-rememberable) version of the IP address. A domain name is a set of characters, separated by periods. An example is www.be.com, the domain name of the main Internet web server at Be, Inc.
To set up your BeOS system for the Internet, you need a set of Internet IP addresses to tell the BeOS your location on the Internet. You then use domain names like www.be.com or mail.server.com to locate web sites, check mail, and access other services on the Internet. The IP address configuration information differs slightly if you're connecting to the Internet via an Ethernet network, or via a modem and phone lines.
If you are connecting to the Internet via Ethernet you should contact your network administrator to get the information you need to configure your BeOS system. If you are connecting via modem and phone lines, you'll receive this basic information from your Internet Service Provider (ISP), or from your company's network administrator if you're connecting to a modem at your company.
Mac OS TCP/IP Configuration Information" section in this chapter for details.
Note: If you're using the BeOS on a PowerMacintosh, and your system is connected to the Internet using the Mac OS, you can get IP address information from the TCP/IP control panel in the Mac OS. See the "
This is all the information you need to configure your computer for connection via an Ethernet network. If you are connecting to the Internet via modem, you need a few additional pieces of information:
Once you have the information listed above, you're ready to set up your BeOS system for connecting to the Internet.
Adding Network Interfaces
Configuring BeOS networking is done through the Networking Preferences, found on your main hard disk in the Preferences folder (file://boot/preferences/Network). When you double-click the Network preferences icon, this window appears: Network Interfaces for Ethernet Connections
If you are using an Ethernet connection, you will likely use one of three types of network interfaces, depending on the specific network hardware in your computer system:
Choose the proper network interface type from the list for your networking hardware, and press the Add button. The following window appears:
Network Interfaces for Modem Connections
If you are connecting to the Internet by modem, your computer uses the Point-to-Point Protocol (PPP) to complete your Internet connection via the phone line. You should therefore add a PPP Network Interface. Select PPP from the Add Interfaces window and press the Add button. You'll see the following window:
Once you have completed the PPP configuration window and pressed the Set button, your PPP Network Interface appears in the Network preferences window. You can now continue with configuring domain name services.
Configuring Domain Name Services
After you add the proper network interface, you return to the Network preferences window. Your newly added network interfaces appear in the window (with your computer's assigned IP address, or 0.0.0.0 if you are using server addressing).
Using Internet Services." You can ignore these fields for now. The Enable AppleTalk checkbox is described in the chapter "Learning Be Application Basics." Disabling DNS and enabling IP forwarding are described in this chapter in the sections "Disabling Domain Name Service" and "IP Forwarding."
Note: The checkboxes and fields in the Network Services portion of the window are described in the chapter "
Any time you change the BeOS Networking Preferences, you should restart networking. This allows the BeOS to disconnect from current network services, and reconnect using the new settings.
Once you save the settings and restart networking, you may close the Network preferences window. Your BeOS system is now configured for accessing the Internet.
Note: Restarting networking interrupts currently running network operations, such as retrieving mail or downloading a web page. Make sure you don't have any open applications that actively use Internet services before you restart networking. Also, if for some reason an application or your Ethernet network causes BeOS networking to temporarily stop functioning, you can use the Network preferences window's Restart Networking button to reset networking.
To save a configuration, configure networking options in the Network preferences window. Then press the Backup... button in the Configurations portion of the window. The following window appears:
Give the configuration a name, and press the Backup button. Your configuration will be saved to disk.
To restore a configuration, press the Restore... button in the Configurations portion of the Network preferences window. You will see the following window:
Select the configuration you wish to restore, and press the Restore button. The network preference settings are replaced with the restored configuration. Then press the Save button to save the network settings and restart networking for the new configuration to take effect.
If you want to permanently delete a saved network configuration, press the Delete... button in the Configurations portion of the Network preferences window. You will see the following window:
Select the configuration you want to delete, and press the Delete button. The selected configuration is removed from the list of saved configurations.
The PPP connection begins automatically in ten seconds. You can type an alternate phone number for the connection if needed. You can also press the OK button to begin the connection immediately.
Once the BeOS is connected to the Internet, the window changes to look like this:
Note: Pressing the Cancel button, or clicking the close box, cancels the PPP session initiation. Many applications, however, try multiple times to initiate the connection, so you may have to click cancel a few times before the application gives up.
This window shows how long the PPP connection has been active, the IP address being used, and the actual speed of the modem connection. You can press the Cancel button, or click the close box, to terminate the PPP connection and disconnect the modem. The PPP connection automatically starts again if your BeOS system or an application needs to communicate with the Internet.
Since the BeOS is a native Internet networking system, it relies on the Internet's TCP/IP protocol to communicate over Ethernet, even if it is not connected to the Internet. But if you're creating a stand alone network, you don't have a network administrator to provide IP addresses and other information needed to configure networking. How do you configure networking in such a situation?
Fortunately, the creators of the Internet anticipated just such a situation, and set aside a class of IP addresses to use only for stand alone networks. These addresses all have the following configuration:
IP Address: | 192.168.0.xxx |
Network Mask: | 255.255.255.0 |
The xxx in the IP address can be replaced with any number from 1 to 254. This means that you can have up to 254 devices connected to a stand alone network
Setting Up BeOS for Both Stand Alone Network and Modem-Based Internet Use"below) you may have problems with conflicting IP addresses. It's best to use the reserved 192.168.0.xxx address format for local networks.
Note: You can't use 0 and 255 be used as the last number in the IP address, because Internet protocols reserve these numbers for specific network functions; using them may confuse some computer systems. You can use other IP addresses for a stand alone network, but if you later connect your stand alone network to the Internet (as in "
You can give other systems on your stand alone network other addresses in the 192.168.0.xxx range (remember, each device must have a unique number). To configure Windows, Mac OS or Unix systems for stand alone networks, refer to the user's guides that came with those systems.
Setting Up BeOS for Both Stand Alone Network
You may find yourself in a situation where you want to connect your BeOS system to a stand alone network, and at the same time be connected to the Internet via a modem. This is common in small businesses or home office situations where multiple systems are interconnected, and only the BeOS system has a modem connected. You will want to communicate with the local systems and with services on the Internet without disruption.
and Modem-Based Internet Use
There is only one rule to keep in mind. Each network interface must have a different IP address. You cannot assign the same IP address to multiple interfaces because the interface that information should be sent by and received from will be unclear. For this same reason, you are restricted to one PPP interface that uses server addressing (although you can have multiple PPP interfaces that use manual addressing).
The answer is yes. To enable this function, check the Enable IP Forwarding check box in the Network preferences window. The other computer systems on your local network should have the IP address of your BeOS system as the router IP address in their TCP/IP configuration.
The BeOS then forwards Internet-bound information for the stand alone network. In a way, your BeOS system acts as a lightweight Internet router for your local network.
Note: IP forwarding requires a lot of processing time if there is heavy traffic coming from and going to the local network. Keep this in mind before using the BeOS system you're working with IP forwarding.
Note: The IP Forwarding checkbox will only be enabled once the BeOS is configured with more than one network interface.
With DNS disabled, the BeOS only checks the local hosts file to resolve any domain names. This means that the only domain names that can be used are those specifically placed in the hosts file.
Note: Disabling DNS is not recommended if you are connected to the Internet. Most Internet services, notably worldwide web pages, require DNS services to operate correctly. Any reference of the type www.be.com will be unresolved and unreachable. Disabling DNS should only be used in stand alone networks, or in unusual network configurations.
A standard BeOS system does not have a hosts file. However, there is a hosts sample file (file://boot/home/config/etc/hosts-sample) which can be duplicated and modified. Duplicate the hosts sample file and rename it hosts. You can then edit the hosts file to add the appropriate domain names and IP addresses.
The hosts sample file initially looks like this:
#
# Sample hosts file for assigning names to IP addresses.
# You do not need this file if you are using the Domain Name Service (DNS).
#
# Copy this file to /system/hosts and edit as necessary.
# The format is nearly identical to the Unix hosts file format.
#
# NB: do not put any leading tabs or spaces at the beginning of the line
#
# Format is:
#
# IP-address hostname aliases (optional)
#
192.0.0.23 Unixbox.mycompany.com Unixbox
192.0.0.123 bebox.mycompany.com bebox
You can add new IP addresses and domain names to the bottom of this file (and you can remove the Unixbox and bebox lines). For more information on using this file, refer to the Be web site (http://www.be.com). You can also find information on this standard file in many Unix networking publications.
BeOS network driver files may have come in the same package as the network adapter card. You may also find information about new network drivers as they are created on Be's web site (http://www.be.com).
Network drivers are add-ons to the BeOS network server and the BeOS kernel. Because of this, they should be installed in your Home configuration folder, in the network server add-ons folder (file://boot/home/config/add-ons/net_server/) and the kernel add-ons folder (file://boot/home/config/add-ons/kernel/drivers/). If you look in BeOS add-ons folder (file://boot/beos/system/add-ons/net_server/), you'll find the following drivers already installed with the basic BeOS system:
Once you install new network drivers into the appropriate folders (or your installer software has done it for you,) they will appear in the Add Network Interface window, and you can continue with network configuration. For more information on installing drivers and add-ons, see the chapter "Customizing the BeOS."
Mac OS TCP/IP Configuration Information
If you are using a Power Macintosh or compatible, and have already connected your system to the Internet from the Mac OS, you can obtain the information you need to connect your BeOS system to the Internet without having to find your network administrator. To do this, open the TCP/IP control panel from within the Mac OS. You'll see the following window:
Note: If you're using a PPP connection for Mac OS networking, the above window will look a bit different, but will still provide you with the information you need to configure your BeOS system. If you are using non-Apple provided PPP software, you may need to open another window to obtain phone number information. Consult your Mac OS networking guides for more information.