sco拨号详解( 三 )



Checking the Dialcodes file ...

Checking /etc/inittab file ...

Press to continue



Choose an option (1-7), or q to quit : 6

Test connection with remote site
================================

This option attempts to make a connection to a
remote site with uucico, which uses the Systems
and Devices files.

Its full debug output is shown on screen, and
also saved in the file /usr/lib/uucp/Testlog.

Site names listed in the Systems file :

sosco scolon test

Which site do you want to try (or q to quit) ? test

最后会出现一堆的乱码 。表示通讯正常 。
由于没有输入用户名和密码,乱码会延续下去,切换到另一屏,找到该进程,杀掉即可 。
测试还可以使用这个命令:
/usr/lib/uucp/uutry -r -x9 sitename

uucp 配置完成 。


接下来配置ppp驱动

SCOAdmin-->Networks-->Network Configuration Manager或者在命令行输入netconfig

选择 Hardware-->Add New WAN Connection-->SCO TCP/IP driver-->SCO TCP/IP-->Add

选择ppp


可以配置:Dynamic Outgoing
Dynamic Incoming
Dedicated
Manual Outgoing
这里配置的信息和/usr/bin/pppconf这个文件的内容相对应.
选第一个动态拨出就可以


在我们的例子中:

路由器的名字:Router
用户名/ 口令:user/user
路由器的地址:10.154.0.1
loopback地址:10.154.15.1
地址池的地址:10.154.14.1-10.154.14.62
网络掩码: 255.255.255.192

所以这样配置:
---------------------------------------------------------
Local host name: ppp [ Advanced ]
Host IP address: 10.154.14.1 Options...
Destination name: Router
Destination IP address: 10.154.15.1
Netmask: 255.255.255.192
UUCP destination name: test
Number of UUCP retrIEs:
Gateway: < > Yes <*> No

注释:local host name 可以任意填
host IP address 设置成路由器地址池中的地址之一
Destination name 填入路由器的名字
Destination IP address 路由器回环地址
UUCP destination name uucp目标名字写前面自己添加的那个
netmask也要填写正确
----------------------------------------------------------------

用户名和口令在Advanced options中设置

Debug level: < > 0 < > 1 <*> 2
Tag for /etc/pppfilter:
Inactivity timeout (minutes):
Async. control character map (hex.):
Line flow control: <*> none < > xonxoff < > rtscts
Protocol field compression: <*> Yes < > No
Address-control field compression: <*> Yes < > No
IP address negotiation: <*> Yes < > No
Old IP address negotiation: < > Yes <*> No
Van Jacobson TCP header compression: <*> Yes < > No
Old PPP compatibility: < > Yes <*> No
Authentication protocol: < > none < > PAP <*> CHAP
Authentication timeout (minutes):
Local host ID: user
Local host passWord: user

填完后系统会提示重新连接核心 。
完成后重新启动 。

修改/etc/pppauth,最后一行应该是这样的:
*user user #在下面填入一行
Router user
即路由器的名字和用户的名字,这个修改很关键!其中*代表本地的用户名和密码
没有*的代表远程的路由器的信息

重启后,

#netstat -nr 看一下路由
#/etc/route add default 10.154.0.1
#ping 10.154.0.1
系统就会自动的拨号了:)
修改/etc/tcp,找到/etc/route add字样的一行
在下面写上/etc/route add default 10.154.0.1
存盘退出

#/etc/tcp stop
#/etc/tcp start

挂断modem 可以用这个命令:
#ifconfig ppp0 down
重新启用modem可以用这个命令:
#ifconfig ppp0 up


涉及到的系统命令:
-----------------------------------------------------------------
命令 功能描述
-----------------------------------------------------------------
uucheck 检查uucp需要的文件和目录 。这个命令也检查文件的明显错误 。

推荐阅读