分享
 
 
 

Configuringhigh-speeddialup

王朝other·作者佚名  2008-05-19
窄屏简体版  字體: |||超大  

www.kempston.net/solaris/ www.kempston.org/solaris/

-------------------------

This page contains detailed step-by-step instructions to configure Solaris 7 and Solaris 8 for high-speed dial-out and dial-in using V90 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 doesn't cover connecting a Solaris system to an ISP; this is a special form of dial-out and is covered in Configuring PPP on Solaris to connect to an ISP. It also doesn't cover configuring a Solaris system as a PPP server, accepting incoming PPP connections; this is covered in Configuring PPP dial-in 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 terminal-mode 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. I'm not able to advise about issues with internal modems but there's some useful advice at Celeste Stokely's Web pages and especially in her Tutorial on Solaris 2.x Modems & Terminals. Celeste's 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, step-by-step 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 high-speed 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 dial-out to a remote computer. Implement these instructions first, even if you want to configure your system for dial in access.

1. Configure your serial port for dial out

Start admintool under CDE:

# admintool &

Select the Browse menu and then Serial Ports from the drop-down 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 drop-down list.

Change the following fields:

Template: Modem - Dial out Only Baud Rate: 9600

Cick on OK and close admintool.

2. Test communication with the modem

The unix command "tip" is used to communicate with a modem. If you're 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 Stokely's Tutorial on Solaris 2.x Modems & Terminals which contains a wealth of useful information about modems.

Type:

ATZ

and the modem should respond:

OK

If there's no response from the modem, check that you're using a straight-through cable with pin 2 at one end connected to pin 2 at the other end, pin 3 to pin 3 and so on. A "null-modem" or cross-over cable, designed for use with a terminal, will not work.

Type:

ATI4

Most modems respond to this command by reporting their current settings. If this doesn't work, try AT&v, ATL5, ATL6, ATL7 or AT*c. If all else fails, consult your modem manual. When using a 3COM USR V90 modem, it responds:

U.S. Robotics 56K Message Settings...

B0 E1 F1 L2 M1 Q0 V1 X4 Y0

SPEED=300 PARITY=N WORDLEN=8

DIAL=TONE OFF LINE

&A1 &B1 &C1 &D2 &H1 &I0 &K1

&M4 &N0 &P0 &R2 &S0 &T5 &U0 &Y1

...

Note that the actual speed at which Solaris is communicating with the modem is only 300 baud, or 30 characters per second, despite the speed having been set using admintool to be 9600. The reason for this is that tip defaults to a speed of 300 baud and we'll fix this in the next step.

Close tip by typing "ENTER key, tilde, full stop" as three key strokes:

~.

3. 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#115200

if your modem is attached to the first serial port, or: modem:dv=/dev/cua/b:br#115200

if your modem is attached to the second serial port.

This enables us to communicate with the modem at a speed of 115200 bits per second. It's important to understand that there are two speeds to be considered in modem communication. There's the speed at which the host computer talks to a connected modem and this is known as the Data Terminal Equipment or DTE speed. There's 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 56K or V90 modem is capable of a DCE speed of up to 56K, 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 56K could result in a modem to computer speed (DTE) well in excess of 56K. For this reason, the DTE speed should be set at least 50% higher than the maximum DCE speed and a DTE speed of 115200 is recommended for use with 56K modems.

However, not all Sun hardware is capable of talking to a serial port at this speed. If you have a Sun Ultra 5 or better, or an Intel P90 or better, your system should be able to sustain a DTE speed of 115200. If you have an older Sun system, you may well not be able to drive a V90 modem at its maximum speed and will need to experiment to find the highest DTE speed that your hardware supports. If 115200 doesn't work, try specifying 38400, 19200 or 9600 in the line in /etc/remote.

4. Test high-speed 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 high-speed connection to the modem:

# t

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有