系统管理指南:网络服务

转换 asppp 文件之前

您可以使用转换脚本 /usr/sbin/asppp2pppd 来转换组成标准 asppp 配置的文件:

有关 asppp 的更多信息,请参见 Solaris 8 System Administration Collection, Volume 3(网址为 http://docs.sun.com)。

/etc/asppp.cf 配置文件示例

如何从 asppp 转换为 Solaris PPP 4.0 中所示的过程使用以下 /etc/asppp.cf 文件。


#

ifconfig ipdptp0 plumb mojave gobi up



path

 inactivity_timeout 120     # Approx. 2 minutes

	interface ipdptp0

	peer_system_name Pgobi    # The name we log in with (also in

				                     # /etc/uucp/Systems

该文件包含以下参数。

ifconfig ipdptp0 plumb mojave gobi up

运行 ifconfig 命令,以配置从本地计算机 mojave 的 PPP 接口 ipdptp0 到远程对等点 gobi 的链路

inactivity_timeout 120

若不活动时间达到两分钟,则终止该线路

interface ipdptp0

在拨出计算机上为异步 PPP 配置接口 ipdptp0

peer_system_name Pgobi

指定远程对等点 Pgobi 的名称

/etc/uucp/Systems 文件示例

如何从 asppp 转换为 Solaris PPP 4.0 中所示的过程使用以下 /etc/uucp/Systems 文件。


#ident  "@(#)Systems	1.5  92/07/14 SMI"  /* from SVR4 bnu:Systems 2.4 */

#



# .

# .

Pgobi Any ACU 38400 15551212 in:--in: mojave word: sand

该文件包含以下参数:

Pgobi

使用 Pgobi 作为远程对等点的主机名。

Any ACU

通知拨出计算机 mojave 上的调制解调器,可在一天内的任何时间与 Pgobi 上的调制解调器建立链路。Any ACU 表示“在 /etc/uucp/Devices 文件中查找 ACU”。

38400

将链路的最大速度设置为 38400。

15551212

指定 Pgobi 的电话号码。

in:—in: mojave word: sand

定义 Pgobi 需要用来对拨出计算机 mojave 进行验证的登录脚本。

/etc/uucp/Devices 文件示例

如何从 asppp 转换为 Solaris PPP 4.0 中所示的过程使用以下 /etc/uucp/Devices 文件。


#ident  "@(#)Devices  1.6  92/07/14 SMI"  /* from SVR4 bnu:Devices 2.7 */



.

.

#



TCP,et - - Any TCP -

.

.

#

ACU cua/b - Any hayes

# 0-7 are on a Magma 8 port card

Direct cua/0 - Any direct

Direct cua/1 - Any direct

Direct cua/2 - Any direct

Direct cua/3 - Any direct

Direct cua/4 - Any direct

Direct cua/5 - Any direct

Direct cua/6 - Any direct

Direct cua/7 - Any direct

# a is the console port (aka "tip" line)

Direct cua/a - Any direct

# b is the aux port on the motherboard

Direct cua/b - Any direct

# c and d are high speed sync/async ports

Direct cua/c - Any direct

Direct cua/d - Any direct

此文件支持连接到串行端口 cua/b 的任何 Hayes 调制解调器。

/etc/uucp/Dialers 文件示例

如何从 asppp 转换为 Solaris PPP 4.0 中所示的过程使用以下 /etc/uucp/Dialers 文件。


#

#<Much information about modems supported by Solaris UUCP>





penril	=W-P	"" \d > Q\c : \d- > s\p9\c )-W\p\r\ds\p9\c-) y\c : \E\TP > 9\c OK

ventel	=&-%	"" \r\p\r\c $ k\c ONLINE!

vadic	=K-K	"" \005\p *-\005\p-*\005\p-* D\p BER? \E\T\e \r\c LINE

develcon ""	"" \pr\ps\c est:\007 \E\D\e \n\007

micom	""	"" \s\c NAME? \D\r\c GO

direct

#

#

#

#   Hayes Smartmodem -- modem should be set with the configuration

#   switches as follows:

#

#       S1 - UP		S2 - UP		S3 - DOWN	S4 - UP

#       S5 - UP		S6 - DOWN	S7 - ?		S8 - DOWN

#

hayes	=,-,	"" \dA\pTE1V1X1Q0S2=255S12=255\r\c OK\r \EATDT\T\r\c CONNECT



<much more information about modems supported by Solaris UUCP>

此文件包含所有类型调制解调器的聊天脚本,包括 /etc/uucp/Dialers 文件中支持的 Hayes 调制解调器。