Contenues dansTrouver plus de documentationRessources d'assistance comprises | Télécharger cet ouvrage au format PDF (171 Ko)
Chapter 4 Setting Up PPPThis chapter takes you through the process of setting up a Point-to-Point Protocol (PPP) interface on a ChorusOS system. PPP 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 PPP with your system, you may skip this chapter. This chapter also describes how to enable PPP on a host for use with a ChorusOS system during application development. Hardware ConfigurationChorusOS systems may support multiple PPP interfaces,
each of which is identified by a unique name such as ppp0.
Depending on the number of serial lines physically available on the ChorusOS
system, the binary distribution of the ChorusOS 4.0 product provides support
for up to two PPP lines. (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 PPP. The console requires a terminal type cable. A direct connection between a host and a target requires a null modem cable. See "Asynchronous EIA-232-E Null Modem" in Solstice PPP 3.0.1 Administration Guide for details. 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 PPP interface, use the mkdev(1M) utility as follows: mkdev ppp 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 4-1 PPP Interface CreationThe following example sysadm.ini fragment creates a PPP interface and the loopback interface needed for IP communication. # # Set the file creation mask to 0 during system configuration # umask 0 # # Create a PPP interface # mkdev ppp 0 # # Create a loopback interface # mkdev lo 0 Note that the above commands simply create the interface; nothing is configured for use, yet. Device CreationPPP interfaces rely on tty devices to communicate directly with the serial hardware. You must therefore create at least one tty device for each PPP line you intend to open. If the ChorusOS system is configured to "dial on demand", you must also create a pseudo-tty master (ptyp) and a pseudo-tty slave (ttyp) device for each PPP line. It is also possible that your applications require a BPF device for raw access to network packets. Example 4-2 PPP Device CreationThe following example sysadm.ini fragment creates a PPP interface and the loopback interface needed for IP communication. It then creates the tty devices needed to open a PPP line that may be configured for "dial on demand". Finally, 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 PPP interface # mkdev ppp 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 device tree 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 pseudo-tty devices for on-demand dialing # mknod /dev/ptyp0 c 5 0 # Master mknod /dev/ttyp0 c 6 0 # Slave # # 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. PPP ConfigurationThis section explains how to configure Point-to-Point Protocol (PPP) with the ChorusOS 4.0 product standard interface and drivers. It assumes the serial line or modem is already physically connected. On some platforms, a unique serial line is used both for the console (accessed through tip), and for PPP. At boot time, the serial line connector must be connected to the host tip line. Note - Systems often have two IP addresses: one for Ethernet, one for PPP. This document differentiates between Ethernet Internet addresses and PPP addresses. As you read, be aware that hostname refers to the Ethernet hostname corresponding to the Ethernet IP address, and that hostname_PPP refers to the hostname corresponding to the PPP address. PPP as implemented in ChorusOS 4.0 handles IP traffic differently than previous releases.
Figure 4-1 IP Traffic--PPP Only
In order to make sure the Ethernet interface can still be used for IP traffic, use different IP addresses for Ethernet and IP. Figure 4-2 IP Traffic--Both Ethernet and PPP
It is strongly recommended for this release that you use different IP addresses for PPP and Ethernet. As shown above, if each system has only one IP address, when an ifnet interface is set up between target_PPP and host_PPP, all traffic to host_PPP is routed through target_PPP. In other words, all IP traffic passes through the serial line. How to Enable PPP ServicesEnabling PPP services involves using the pppstart actor. Enabling PPP at Boot Time by Including pppstart in the System Image
Enabling PPP Manually
How to Open PPP LinesOpening an available PPP line involves the built-in Opening a PPP Line Manually
How to Close PPP LinesClosing an open PPP line involves using the pppclose command. Closing a PPP Line Manually
How to Disable PPP ServicesDisabling PPP services involves using the pppstop command. Disabling PPP ServicesRun the built-in
PPP on a Solaris HostThis section describes how to configure PPP on the SolarisTM system to work with a ChorusOS 4.0 system. The following procedures concern hosts running Solaris 2.6 and 7. See also the TCP/IP and Data Communications Administration Guide in the Solaris 7 System Administrator Collection for details about setting up PPP on hosts running the Solaris operating environment. Note - You must be root to install and configure PPP. If you either do not know the root password for the workstation or do not feel comfortable with the tasks required, ask your system administrator to perform the tasks below. Checking for Required PackagesBefore configuring PPP, check that the following packages are installed on the host workstation:
If the packages are not installed, you must install them in the order specified above before you continue. Configuration FilesThis section describes all files which must be created or modified to configure PPP on a Solaris host. Configuring the Network
Configuring UUCP
Configuring PPP
Terminal ConfigurationThis section describes how to modify the terminal configuration to allow a PPP connection without login. Configuring a Terminal
Starting and Stopping PPPNote - Once properly configured, PPP starts automatically at boot time. Starting PPP on the Host
Stopping PPP on the HostMaking the PPP Target Visible to the Entire NetworkIf you want the PPP target to be visible from the whole network, you must enable routing on your workstation. Enabling Routing
PPP on a Windows NT 4.0 HostWhen PPP is used, Windows NT 4.0 allows the ChorusOS target to be fully connected to the enterprise LAN, making host-target communications possible with any network node, not only with the Windows NT 4.0 workstation. PPP Connection SetupThis section explains how to set up the basic PPP connection between the host workstation and the ChorusOS target system. Installing the Remote Access ServiceRemote Access Service (RAS) and Dial-Up Networking (DUN) provide the basic serial line and modem connection services.
Configuring the Serial Cable Connection
Configuring the Remote Access ServiceRemote Access Service should be configured after you change the modem configuration.
Starting the Remote Access Service at Boot Time
Adjusting the Auto-Disconnect TimeoutBy default, the Remote Access Service disconnects incoming connections after twenty minutes of inactivity, which may not be suitable with a ChorusOS system. You can modify the default behavior by editing the Registry.
Checking the Remote Access ServiceAfter rebooting, Windows NT 4.0 listens for incoming PPP
calls on the serial line. You can run the
AuthenticationThe Windows NT 4.0 workstation PPP host requires that the client provide a valid username and password in order to connect. Both the username and password must be authorized for dial-in access in the Windows NT 4.0 user database. Currently, the only authentication protocol shared by both ChorusOS systems and Windows NT 4.0 is the plain text Password Authentication Protocol (PAP). Therefore, you must select PAP for logging in. The username and password are the same as the ones used for logging in to the system. Enabling Automated Target-to-Host ConnectionsIn order to allow automated connections of diskless ChorusOS systems to the Windows NT 4.0 host at boot time, pppd supports a ChorusOS specific option, userpass username password, and its functional equivalent +ua filename, which makes it possible to obtain the same information from a file.
Granting Dial-In Permission on the HostUse the
Troubleshooting the PPP ConnectionThe following detailed logs can help you solve connection problems.
Addressing and RoutingOn the HostIn order to make the ChorusOS system visible on the local Ethernet network, you must enable routing on the host workstation.
On the ChorusOS TargetIn order to route target IP traffic through the host workstation, you must add a default route to the IP address of the Windows NT 4.0 system after the connection from the target has been set up using the defaultroute option with pppd. Use the route command to enable a default route:
Note - You can remove existing default routes using the delete option with the route command:
Sharing IP Addresses with the LANWhen you specify a subset of the addresses used on the local area network for serial line connections between the host workstation and one or more target systems, Windows NT 4.0 activates proxy-ARP for the connected serial clients automatically and behaves like a bridge. Windows NT 4.0 makes it possible, by default, to reach the PPP client from other systems on the Ethernet. Setting the Connection SpeedIn order to set the line speed to 115200 bits per second follow the procedure below.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||