免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3029 | 回复: 15
打印 上一主题 下一主题

[SCO UNIX] sco拨号详解(原创) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2002-05-19 18:11 |只看该作者 |倒序浏览
[这个贴子最后由Fenng在 2002/05/22 01:08pm 编辑]

SCO Openserver 5 拨号详解

           by Fenng

操作系统:    SCO openserver 5.0.5
   
路由器的名字:Router
用户名和口令:user/user
路由器的地址:10.154.0.1
loopback地址:10.154.15.1
地址池的地址:10.154.14.1-10.154.14.62
网络掩码:     255.255.255.192

-----------------------------------------
Modem Manager管理工具

首先应该熟悉modem 的管理工具:
Modem Manager用来设置modem.

双击桌面上的System Administration 图标,选择 Networks,最后选  Modem Manager.
在命令行输入scoadmin启动 SCOadmin 选择 "Networks", 再选择 "Modem Manager".
在命令行输入 scoadmin modem manager
-----------------------------------------
安装调制解调器

1.自动检测调制解调器
在Modem Manager中如果选择自动检测,要确保以下的几点:

1.确保modem已经连接上了并且是打开的(上电的)
2.从 Modem菜单种选择添加,继续选择 Automatic detection.
3.选择modem连接的 serial port , 或者选择 Any让系统检查所有的串口.
4.选择 OK开始查找 modem.当连接modem的串口被检测的时候 ,modem 上的指示灯会闪烁数秒钟。该过程中 Modem Manager检测相应的串口,并生成检测到的modem的清单。
5.检测完成的时候,选择要添加的modem,点击OK添加。

如果没检测到调制解调器的话,确保modem已经正确连接并且开关是打开的。一些太“古老”的或者太新的modem不能被正确检测到,这个时候应该考虑手工添加的方式。
------------------------------------------

手工添加modem

在 Modem Manager中,手工添加modem:
1.从 Modem 菜单中选择Add,选择 Manual configuration,出现 Modem Configuration(modem设置)窗口
2.输入下列信息:
-----------------------------------
Modem vendor (modem提供商)
选择你的modem的制造商,如果没有列出,选择标准的modem类型即可

Modem model (modem类型)
输入modem类型,如果在上面选择了标准modem类型,选择标准modem就可以了

Line speed (bps)
输入串行线速,默认的是38,400bps,建议不要选择太高,以免出现不必要的麻烦。
如果不行的话考虑使用9600bps,这是串行的默认速度,比较稳妥一些。

Modem port
选择modem 连接的端口(tty1A或者tty2A)

Answer mode (应答模式)
拨出选择off,如果接受拨如的话选择on
----------------------------------
3.点击 OK接受上述配置


禁止掉非modem控制的端口并且激活modem 控制的端口

如:#disable ttynn (非modem端口)这里的 "ttynn"可以为 tty1a.
    #enable ttynn (modem端口)这里的 "ttynn"可以是 tty1A.

此外,还要确保ttynn为uucp 所有,不妨干脆来个:
# chown -R uucp:uucp /dev/ttynn
用相应的端口号(1A或者2A)替换nn

小技巧:
测试是否可以拨出
1.# cu –l tty1A dir
2.激活 modem的喇叭,以便可以听到拨号音:
ATM2
(ATM0 关掉.)
3.输入下列命令:
ATDT电话号码 。如:ATDT163
4.确认modem 可以拨出后,输入~.(一个波浪线加上一个小点) 退出cu

设定uucp连接

可以手工编辑 /usr/lib/uucp/Systems和 /usr/lib/uucp/Devices文件来达到目的。最好用UUCP Manager/uuinstall软件来完成

在/usr/lib/uucp目录下的 Systems文件包含了uucp所“知道“的系统的列表。并且指明了用于连接到每个系统的设备和方法 。Devices 文件指明了可用的设备,使用的速度,还有设备可以连接到的端口。

以root 用户登录运行 SCOadmin--〉Networks --〉UUCP Manager 或者是在命令行使用 uuinstall(ADM)命令 菜单如下:

     # uuinstall

                     UUCP Administration Utility
                     ===========================

     1. Display or update site name
     2. Display or update list of remote sites       (Systems)
     3. Display or update direct- or dial-out lines  (Devices)
     4. Display or update direct- or dial-in lines   (/etc/inittab)
     5. Check consistency of UUCP files
     6. Test connection with remote site
     7. Convert old UUCP files to new format

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

        Display or update site or machine name (/etc/systemid)
        ======================================================

        1. Display local site name and machine names
        2. Update local site name and machine names

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

                     UUCP Administration Utility
                     ===========================

     1. Display or update site name
     2. Display or update list of remote sites       (Systems)
     3. Display or update direct- or dial-out lines  (Devices)
     4. Display or update direct- or dial-in lines   (/etc/inittab)
     5. Check consistency of UUCP files
     6. Test connection with remote site
     7. Convert old UUCP files to new format

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

At a prompt, enter the text followed by <Return>;.  Use "?"<Return>;
to get help, "q"<Return>; to quit back to the menu, "-"<Return>; for
an unwanted entry, or just <Return>; to keep the default text shown.

        Display or update list of remote sites (Systems)
        ================================================

        1. Display the Systems file
        2. Add a new site entry
        3. Delete a site entry
        4. Change a site entry

Choose an option (1-4), or q to quit : 2

Site names listed in the Systems file :

  sosco   scolon


Which entry do you want to COPY (or <Return>; to see all) ? sosco
----------------
  Site name    : sosco
  Schedule     : Any
  Device type  : ACU
  Speed range  : 2400-9600
  Phone number : scz4253502
  Expect login : -\r\d-ogin:-\K\d-ogin:-\K\d-ogin:
  Send login   : uusls
----------------这是原来的配置
  Site name    ? sosco test
  Schedule     ? Any
  Device type  ? ACU
  Speed range  ? 2400-9600 9600
  Phone number ? scz4253502 62177722
  Expect login ? -\r\d-ogin:-\K\d-ogin:-\K\d-ogin: -
----------------修改的

   实际上系统编辑的是 /usr/lib/uucp/Systems文件。
  
        
   注意最后一行只输入一个小“-”。用户名和密码不在这里输入。
   
  说明:系统本来有两个模版,选择添加的时候会提示你。**建议不要修改原来的模版**,选择copy为好,还有不要用退格擦去原来的信息,直接在后面填上你的信息就可以了。

之后屏幕显示:

New entry is accepted :

  Site name    : yzpp
  Schedule     : Any
  Device type  : ACU
  Speed range  : 9600
  Phone number : 6052733
  Expect login : -

        Display or update list of remote sites (Systems)
        ================================================

        1. Display the Systems file
        2. Add a new site entry
        3. Delete a site entry
        4. Change a site entry


Choose an option (1-4), or q to quit : q
   
   修改完后会提示你是否写入文件,选择y.

Changes have been made.  These should now be written to the file,
or otherwise they will be discarded.  Write out to file (y/n) ? y
Systems file successfully updated.
Use main menu option 5 to check files.

   输入q回到主菜单,选择5 测试文件的一致性。通过后选择6,测试uucp的连接。



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

                  Check consistency of UUCP files
                  ===============================

          This option checks the consistency of the files
          Systems, Devices, Dialcodes and /etc/inittab, but
          does not modify them nor attempt any connection.
          Use main menu option 6 to test connections.

          Errors are shown on screen, and also saved in
          the file /usr/lib/uucp/Checklog.

Proceed to checking (y/n) ? y

Reading the Systems file ...

Reading the Devices file ...

Reading the Dialcodes file ...

Reading the Dialers file ...

Reading /etc/inittab file ...

Checking the Systems file ...

Checking the Devices file ...

Checking the Dialcodes file ...

Checking /etc/inittab file ...

Press <Return>; 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需要的文件和目录。这个命令也检查文件的明显错误。
uulog     显示特定主机日志目录中的日志内容。
uuname    列出你要联接的机器
uustat    显示当前uucp的请求队列或到其它系统的连接的队列的状态。
uutry     调用 uucico 进行调试,将信息保存到/tmp/machine ,并在终端上显示最后的10行 。 -x 选项改变调试级别(默认第五级)。

论坛徽章:
0
2 [报告]
发表于 2002-05-19 18:29 |只看该作者

sco拨号详解(原创)

精采!THANK U !

论坛徽章:
0
3 [报告]
发表于 2002-05-19 18:32 |只看该作者

sco拨号详解(原创)

很好。

只是现在用猫的可能会越来越少了。

论坛徽章:
1
15-16赛季CBA联赛之北控
日期:2022-03-04 22:35:50
4 [报告]
发表于 2002-05-19 21:14 |只看该作者

sco拨号详解(原创)

不错!可以加到精华中。

论坛徽章:
0
5 [报告]
发表于 2002-05-19 21:16 |只看该作者

sco拨号详解(原创)

精华区在哪儿呀?

论坛徽章:
1
15-16赛季CBA联赛之北控
日期:2022-03-04 22:35:50
6 [报告]
发表于 2002-05-19 21:17 |只看该作者

sco拨号详解(原创)

仔细看连接。

论坛徽章:
0
7 [报告]
发表于 2002-05-19 21:53 |只看该作者

sco拨号详解(原创)

hehe,多谢支持!这样我才会有动力:)

论坛徽章:
1
15-16赛季CBA联赛之北控
日期:2022-03-04 22:35:50
8 [报告]
发表于 2002-05-19 21:55 |只看该作者

sco拨号详解(原创)

请继续。

论坛徽章:
0
9 [报告]
发表于 2002-06-18 10:08 |只看该作者

sco拨号详解(原创)

我一台单机上网,需要路由吗?
路由器的名字,地址,LOOPBACK 地址,地址池的地址怎么设置和得到?

我一直想把我的sco unix 连接internet ,却一直找不到方法。不知哪里有详细的资料

论坛徽章:
0
10 [报告]
发表于 2002-09-23 21:34 |只看该作者

sco拨号详解(原创)

不错,不过讲得太多,我用的是slip,然后联上个网点的sco住机,中间用js8500作的通讯服务器,ppp和slip好象不是差很多,你能说说他们的不同嘛?我是新手,还不太了解,你是搞什么的?可以做个朋友嘛!!
我的email:kuber1978@sohu.com,很希望认识您!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP