免费注册 查看新帖 |

Chinaunix

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

[新手入门] SLIP [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-20 23:20 |只看该作者 |倒序浏览

SLIP
Configuring SLIP over a Modem
To configure Serial Line Interface Protocol (SLIP) between two systems that communicate through a modem, you can use the Web-based System Manager fast path wsm network or use the following procedure, which alternates between the System Management Interface Tool (SMIT) interface and the command line to complete the configuration. For clarity, the following instructions use the names bronze and gold for the two hosts.
  • Physically connect the modems to bronze and gold.
  • To create a tty on bronze using SMIT:
  • Enter: smit maktty
  • Select rs232 as the type of tty you wish to create.
  • Select an available serial port, for example sa0 (system serial port 1).
  • Select a port number for this tty from the list.
  • Set the BAUD rate to the baud rate of your modem.
  • Set Enable LOGIN to disable.
  • Exit SMIT.
  • Create a tty on gold.
    Follow the same procedure as you did for bronze (in step 2 above), except set Enable LOGIN to enable.
    The rest of these instructions assume that the tty number on both bronze and gold is tty1.
  • Test the physical connection with ATE.
  • On bronze, enter: ate
  • At the Unconnected Main Menu, select the Alter subcommand. Set the Rate to the baud rate of your modem and the Device to tty1.
  • At the Unconnected Main Menu, select the Connect subcommand. When ATE prompts you for a phone number, enter the phone number of gold and press Enter.
  • At this point, you should receive a login prompt for gold. Login.
  • Finally, return to the connected screen, logout from gold, press Ctrl-v (to get to the ATE CONNECTED MAIN MENU), press t to terminate the connection, and press q to exit ATE.
    Note: If you do not receive a login prompt, return to step 1 and verify that your configuration is correct. Do not proceed until you can login to gold.Because the tty configuration for use with ATE is slightly different from the configuration for use with SLIP, you must make the following changes:
  • On bronze, enter: smit chgtty
  • On gold, enter: smit chgtty-pdisable tty1Select tty1, then select Change/Show TTY Program. Set Enable LOGIN to disable, then exit SMIT.
  • Add the following line to the /usr/lib/uucp/Devices file on both bronze and gold: Direct tty1 - 9600 direct  
    or replace 9600 with whatever your modem speed is.
  • Create a SLIP network interface on bronze.
  • Enter: smit mkinet1sl
  • For TTY PORT for SLIP Network Interface, select tty1.
  • Specify an INTERNET ADDRESS, for example, 130.130.130.1.
  • Specify the DESTINATION address (of gold), for example, 130.130.130.2.
  • Specify the BAUD RATE of your modem.
  • Specify the DIAL STRING, for example:

    • "" AT OK ATDT555-1234 CONNECT ""
    • The meaning of this command is: Use tty1 at 9600 baud. Send AT to the modem. The modem should respond with OK. Dial the phone number 555-1234. The modem should respond with CONNECT. The spaces before and after the "" characters are necessary.

  • Exit SMIT.
  • Create a SLIP network interface on gold.
    Follow the same procedure as you did for bronze (in step 5 above), except exchange the INTERNET ADDRESS and the DESTINATION address.
  • Add the following two entries to the /etc/hosts file on both bronze and gold: 130.130.130.1   bronze
    130.130.130.2   goldThe name you assign should be unique. In other words, if the Token-Ring interface on bronze is already assigned the name bronze, assign the SLIP interface a name such as bronze_slip.
    Note: For a simplified interface to the slattach command, you may use the script /usr/sbin/slipcall.
  • Test the SLIP connection.
  • On bronze, enter: ping gold
  • On gold, enter: ping bronzeIf both tests succeed, the SLIP connection is ready for use. If not, return to step 5 and verify that the configuration on both bronze and gold is correct.
    Configuring SLIP over a Null Modem Cable
    To configure SLIP between two systems that are attached using a null modem cable, you can use the Web-based System Manager fast path wsm network or use the following procedure, which alternates between the System Management Interface Tool (SMIT) interface and the command line to complete the configuration. For clarity, these instructions use the names bronze and gold for the two hosts.
  • Physically connect bronze and gold by the null modem cable. You will need the following cables. (The cables are listed in the order they will be connected from bronze to gold.)
  • Cable B (part number 00G0943). Serial Port Jumper Cable; two are provided with each system, except models 220, 340, and 350 do not require them.
  • Cable D (part number 6323741, feature code 2936). Asynchronous Cable EIA-232/V.24.
  • Cable E (part number 59F2861, feature code 2937). Printer/Terminal Interposer EIA-232 (null modem cable).
  • Changer Adapter (both sides of the adapter are sockets).
  • Create a tty on bronze.
  • Enter: smit maktty
  • Select rs232 as the type of tty you wish to create.
  • Select an available serial port, for example sa0 (system serial port 1).
  • Select a port number for this tty from the list.
  • Set the BAUD rate to 19200. (Later, you will change this to 38400. But for now, use 19200.)
  • Set Enable LOGIN to disable, and then exit SMIT.
  • Create a tty on gold.
    Follow the same steps as you did for bronze (in step 2 above), except set Enable LOGIN to enable.
    Note: The rest of these instructions assume that the tty number on both bronze and gold is tty1.
  • Test the physical connection with ATE.
  • On bronze, enter: ate
  • At the Unconnected Main Menu, select the Alter subcommand. Set the Rate to 19200, and the Device to tty1.
  • At the Unconnected Main Menu, select the Connect subcommand. When ATE prompts you for a phone number, press Enter. You should receive the message: ate: 0828-010 The Connect command has made a connection through port tty1
  • Press Enter. You should receive a login prompt for gold. Login to gold.
  • Finally, return to the connected screen, logout from gold, press Ctrl-v (to get to the ATE CONNECTED MAIN MENU), press t to terminate the connection, and press q to exit ATE.
    Note: If you do not receive a login prompt, return to step 1 and verify that your configuration is correct. Do not proceed until you can login to gold.Since the tty configuration for use with ATE is slightly different from the configuration for use with SLIP, you must make the following changes:
  • On bronze, enter: smit chgttySelect tty1. Set the BAUD rate to 38400, and then exit SMIT.
  • On gold, enter: pdisable tty1
  • On gold, enter: smit chgttySelect tty1. Set Enable LOGIN to disable, set the BAUD rate to 38400, and then exit SMIT.
  • Add the following line to the /usr/lib/uucp/Devices file on both bronze and gold: Direct tty1 - 38400 direct
  • Create a SLIP network interface on bronze.
  • Enter: smit mkinet1sl
  • For TTY PORT for SLIP Network Interface, select tty1.
  • Specify an INTERNET ADDRESS, for example 130.130.130.1.
  • Specify the DESTINATION address (of gold), for example, 130.130.130.2, and then select OK or Enter.
  • Create a SLIP network interface on gold.
    Follow the same procedure as you did for bronze (in step 5 above), except exchange the INTERNET ADDRESS and the DESTINATION address.
  • Add the following two entries to the /etc/hosts file on both bronze and gold: 130.130.130.1   bronze
    130.130.130.2   goldThe name you assign should be unique. In other words, if the Token-Ring interface on bronze is already assigned the name bronze, assign the SLIP interface a name such as bronze_slip.
  • Start SLIP on both bronze and gold.
    Enter:
    slattach tty1
  • Test the SLIP connection.
  • On bronze, enter: ping gold
  • On gold, enter: ping bronzeIf both tests succeed, the SLIP connection is ready for use. If not, return to step 5 and verify that the configuration on both bronze and gold is correct.
    Deactivating a SLIP Connection
    To deactivate a SLIP connection:
  • Enter: ps -ef | grep slattNote the process numbers of processes associated with the slattach command.
  • For each process number, enter: kill process_numberDo not use the -9 flag of the kill command.
    If slattach is accidentally killed with a -9 flag, a slip lock may remain in /etc/locks. Delete this lock file to clean up after slattach.
    Removing a TTY
    To remove a tty, you can use the Web-based System Manager fast path, wsm network, or the System Management Interface Tool (SMIT) fast path, smit rminet.


    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/2984/showart_130531.html
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

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

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP