熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> JSP教程 >> 正文

Configuring high-speed dialup

2013-11-15 09:49:15  來源: JSP教程 

  /solaris/ /solaris/
  
   This page contains detailed stepbystep instructions to configure Solaris and Solaris for highspeed dialout and dialin using V modems It shows how to use Solaris to dialup and connect to a remote system with the Solaris system acting as a terninal on the remote system It also shows how to configure Solaris to answer an incoming telephone call and provide terminal access to the calling system It doesnt cover connecting a Solaris system to an ISP; this is a special form of dialout and is covered in Configuring PPP on Solaris to connect to an ISP It also doesnt cover configuring a Solaris system as a PPP server accepting incoming PPP connections; this is covered in Configuring PPP dialin on Solaris but this page is a prerequisite before configuring a PPP server
  
   What this page does cover is using Solaris to dialup a remote system and run a terminal session on that remote system It also covers the reverse scenario: allowing remote systems to dialup your Solaris system and run terminal sessions on it
  
   Why would you want to do this? You may want to use your Solaris system to connect to a BBS for example or to any remote system which allows terminalmode dial in access Or you may want to configure your Solaris system at the office to give your customers dial in access or to enable you to connect to it from a Windows PC at home
  
   Important Notes
  
   The instructions assume that your modem is external and attached to one of the two standard serial ports Note that you must have a real modem; monstrosities known as WinModems are of no use whatsoever with unix Unfortnately I have no experience of using internal modems with Solaris and there may be additional configuration issues with these Im not able to advise about issues with internal modems but theres some useful advice at Celeste Stokelys Web pages and especially in her Tutorial on Solaris x Modems & Terminals Celestes pages cover the configuration of modems in very much more detail than is offered here and are highly recommended for further reading This page is intended to provide a simple stepbystep procedure which should work for most people
  
   Now for the instructions No unix knowledge is assumed other than the ability to edit files using a text editor
  
   Configuring Solaris for highspeed dial out
   Please note that you must be logged in as root while implementing these instructions
   These instructions describe how to configure Solaris and your modem for dialout to a remote computer Implement these instructions first even if you want to configure your system for dial in access
   Configure your serial port for dial out
   Start admintool under CDE:
   # admintool &
   Select the Browse menu and then Serial Ports from the dropdown list Click on the line starting a if your modem is attached to the first serial port or on the line starting b if your modem is connected to the second serial port Select the Edit menu and then Modify from the dropdown list
   Change the following fields:
   Template: Modem Dial out Only Baud Rate:
   Cick on OK and close admintool
   Test communication with the modem
   The unix command tip is used to communicate with a modem If youre interested in the gory detail the manual page for this command can be displayed by typing:
   # man tip
   If your modem is attached to the first serial port:
   # tip /dev/cua/a
   If your modem is attached to the second serial port:
   # tip /dev/cua/b
   and the command should respond:
   connected
   If it responds:
   All ports busy
   it means either that your serial port is configured incorrectly perhaps for dial in instead of dial out or that there is a more fundamental problem in communicating with the port In this case have a look at Celeste Stokelys Tutorial on Solaris x Modems & Terminals which contains a wealth of useful information about modems
   Type:
   ATZ
   and the modem should respond:
   OK
   If theres no response from the modem check that youre using a straightthrough cable with pin at one end connected to pin at the other end pin to pin and so on A nullmodem or crossover cable designed for use with a terminal will not work
   Type:
   ATI
   Most modems respond to this command by reporting their current settings If this doesnt work try AT&v ATL ATL ATL or AT*c If all else fails consult your modem manual When using a COM USR V modem it responds:
  
   US Robotics K Message Settings
  
   B E F L M Q V X Y
   SPEED= PARITY=N WORDLEN=
   DIAL=TONE OFF LINE
  
   &A &B &C &D &H &I &K
   &M &N &P &R &S &T &U &Y
  
   Note that the actual speed at which Solaris is communicating with the modem is only baud or characters per second despite the speed having been set using admintool to be The reason for this is that tip defaults to a speed of baud and well fix this in the next step
  
   Close tip by typing ENTER key tilde full stop as three key strokes:
  
   ~
   Set the modem DTE speed
   Edit the file /etc/remote and insert a line at the start of this file reading: modem:dv=/dev/cua/a:br#
   if your modem is attached to the first serial port or: modem:dv=/dev/cua/b:br#
   if your modem is attached to the second serial port
   This enables us to communicate with the modem at a speed of bits per second Its important to understand that there are two speeds to be considered in modem communication Theres the speed at which the host computer talks to a connected modem and this is known as the Data Terminal Equipment or DTE speed Theres also the speed at which the modem transmits and receives data across the telphone line and this is known as the Data Communication Equipment or DCE speed A K or V modem is capable of a DCE speed of up to K although this is unlikely to be achieved in practice Data sent down a telephone connection is often compressed with the receiving modem uncompressing the data before sending it to the host computer So a modem to modem speed (DCE) of K could result in a modem to computer speed (DTE) well in excess of K For this reason the DTE speed should be set at least % higher than the maximum DCE speed and a DTE speed of is recommended for use with K modems
   However not all Sun hardware is capable of talking to a serial port at this speed If you have a Sun Ultra or better or an Intel P or better your system should be able to sustain a DTE speed of If you have an older Sun system you may well not be able to drive a V modem at its maximum speed and will need to experiment to find the highest DTE speed that your hardware supports If doesnt work try specifying or in the line in /etc/remote
   Test highspeed communication with the modem
   Try the tip test again this time specifying the name of the new entry in /etc/remote as a parameter to tip and you should be rewarded with a highspeed connection to the modem:
  
   # t
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19174.html
  • 上一篇文章:

  • 下一篇文章:
  • 推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.