InnerhalbNach weiteren Dokumenten suchenSupport-Ressourcen | Dieses Buch im PDF-Format herunterladen (171 KB)
Chapter 5 Setting Up SLIPThis chapter takes you through the process of setting up a Serial Line Internet Protocol (SLIP) interface on a ChorusOS system. SLIP allows the target system to connect to another system using a direct serial line or modem connection in the same way as an Ethernet connection. If your system does not support serial connections, or if you do not plan to use SLIP with your system, you may skip this chapter. This chapter also describes how to enable SLIP on a host for use with a ChorusOS system during application development. Hardware ConfigurationChorusOS systems may support multiple SLIP interfaces,
each of which is identified by a unique name such as sl0.
The binary distribution of the ChorusOS 4.0 product provides support for only
one SLIP line. (If you have the source distribution, you
can increase the number of lines possible by modifying the value of Note - The first serial line on the ChorusOS system is reserved for system debug, and for console access using the host workstation tip(1) utility. It cannot be used for SLIP. The console requires a terminal type cable. If you are unsure what serial lines your system uses, yet you are able to boot the system, you can use the dtree(1M) utility to display devices listed in the target system device tree:
ChorusOS systems may be used with modems. The chat(1M) utility can help you handle modem connection and configuration. Note - This document does not provide information about modem configuration commands, nor does it provide information about the cables required for connecting modems to targets. Interface CreationAs described in "Interface Creation", interface creation is usually performed by including commands in the sysadm.ini file that you build into the ChorusOS system image for your target. In order to create a SLIP interface, use the mkdev(1M) utility as follows: mkdev sl unit where unit is the number that makes the interface unique. In order to allow the system to use IP, you must also create a loopback interface. Example 5-1 SLIP Interface CreationThe following example sysadm.ini fragment creates a SLIP interface and the loopback interface needed for IP communication. # # Set the file creation mask to 0 during system configuration # umask 0 # # Create a SLIP interface # mkdev sl 0 # # Create a loopback interface # mkdev lo 0 Note that the above commands simply create the interface; nothing is configured for use, yet. Device CreationSLIP interfaces rely on tty devices to communicate directly with the serial hardware. You must therefore create at least one tty device for each SLIP line you intend to open. It is also possible that your applications require a BPF device for raw access to network packets. Example 5-2 SLIP Device CreationThe following example sysadm.ini fragment creates a SLIP interface and the loopback interface needed for IP communication. Next, it creates a BPF device for any applications that require one. # # Set the file creation mask to 0 during system configuration # umask 0 # # Create a SLIP interface # mkdev sl 0 # # Create a loopback interface # mkdev lo 0 # # Create a tty device for the second serial port # # The first serial port is reserved for system debug and console access # through the tip(1) utility on the host workstation # # If you do not know the device tree pathname to the second serial port, # note that the device tree path is visible in the output of dtree(1M). # # Note that major number 0 is conventionally reserved for ttys # mkdev tty 0 # takes first available device # Other possibilities include: #mkdev tty 0 /pci/pci-isa/ns16650-2 #mkdev tty 0 /raven/w83c553/ns16650-2 #mkdev tty 0 /sabre/simba-b/ebus/ns16650-2 mknod /dev/tty01 c 0 0 # # Create a Berkeley Packet Filter device and special file # mkdev bpf 0 mknod /dev/bpf c 23 0 See the appropriate document in the ChorusOS 4.0 Target Family Documentation Collection for serial device IDs for other serial line hardware. SLIP ConfigurationThis section explains how to configure Serial Line Internet Protocol (SLIP) with the ChorusOS 4.0 product standard interface and drivers. It assumes the serial line or modem is already physically connected. Note - Systems often have two IP addresses: one for Ethernet, one for SLIP. This document differentiates between Ethernet Internet addresses and SLIP addresses. As you read, be aware that hostname refers to the Ethernet hostname corresponding to the Ethernet IP address, and that hostname_SLIP refers to the hostname corresponding to the SLIP address. Before starting SLIP, make sure that the target system SLIP interface is correctly registered on the local network with the correct IP address, in particular for NFS access. This section also assumes that you have configured your ChorusOS system image to support the SLIP connection and created the SLIP interface at boot time, even if your system image does not include everything necessary to establish a SLIP connection at boot time. SLIP as implemented in ChorusOS 4.0 handles attaching the SLIP interface to the serial line using the slattach command, and the chat command to handle modem connections and authentication. Enabling SLIP at Boot Time by Including slattach in the System Image
Starting SLIP from the Command LineStart SLIP by running slattach as an actor:
SLIP on a Solaris HostThis section describes how to configure SLIP on a SolarisTM host for use with a ChorusOS system. The following procedures concern hosts running Solaris 2.6. Note - You must be root to install and configure SLIP. If you either do not know the root password for the host system or do not feel comfortable with the tasks required, ask your system administrator to perform the tasks below. Checking for Required Packages
Configuring the Network
Configuring the Terminal
Starting SLIP on the Host
Stopping SLIP on the HostRoutingIf you want the SLIP target to be visible from the whole network, you must enable routing on your workstation.
SLIP on a Windows NT 4.0 HostThis section describes how to configure SLIP on a Windows NT 4.0 host for use with a ChorusOS system. Before You StartSetting up Windows NT 4.0 as a host for SLIP communications is not easy, because Windows NT 4.0 is officially only able to act as a SLIP client. Establishing communication between the Windows NT 4.0 system and the ChorusOS system on the serial line is relatively straightforward. However, making the ChorusOS system visible on the LAN to which the Windows NT 4.0 host is connected is difficult and is not currently supported. Please use PPP for communications if you want full
routing from the target to the LAN through the Windows
NT 4.0 host. The setup of the Configuring the ConnectionInstalling RASTo install the Remote Access Service (RAS), also called Dial-Up Networking (DUN):
Configuring the Serial ConnectionTo configure the serial cable connection:
Reconfiguring DUNWindows NT 4.0 will suggest reconfiguring the RAS because you have changed the modem. If it does not, for example because the DUN was installed earlier, do the following:
Windows NT 4.0 will reconfigure its network settings and suggest rebooting the machine. Do so. Establishing the Connection with the TargetAfter the machine has rebooted, you will be able to establish the connection with the ChorusOS 4.0 target:
You are now connected to the target at the low level. If you have selected addresses which belong to the LAN for your serial line, you must perform a route command, described below, before being able to reach the target from the host. Note - If the RAS dialer hangs displaying the Connecting to MyDialUpServer message box with All devices connected and a Cancel button which does not do anything, kill both Dial-Up Networking windows from the Applications tab of the Windows NT Task Manager (press Ctrl-Alt-Del to show it), run Dial-Up Networking again, click the Hang Up button, confirm and then click the Dial button again. Note that the first IP packet sent to the target after the connection is lost because it is used internally to complete the connection. If the target system is rebooted, and the line is therefore dropped, you will need to Dial again using the Dial-Up Networking window. Alternatively, you can run rasdial MyDialUpServer from the command line. It is possible to see a detailed modem-level log, which traces what happens until SLIP communications are started. It is located in the %SystemRoot%\ModemLog_ChorusOS_Cable.txt file and is enabled during serial cable connection configuration. The log may be useful if problems are encountered. |
||||||||||||||||||||||