动态网站制作指南 [  QQ表情  ]
[ 投票调查 ]
[ 企业邮箱 ]
[ 网站空间 ]
网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
ASP源码 | .Net源码 | PHP源码 | JSP源码 | JAVA源码 | CGI源码 | VB源码 | C++源码 | Delphi源码 | PB源码 | VF源码 | 汇编 | 服务器
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > 数据库 > Oracle教程
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
数据库:数据库教程,数据库技巧,Oracle教程,MySQL教程,Sybase教程,Access教程,DB2教程,数据库安全,数据库文摘
文章搜索服务
邮件订阅
输入你的邮件地址,
你将不会错过任何关于:
[ Oracle教程 ]的信息

本月文章推荐
.EMC存储技术上使用ASM的最佳实践.
.Oracle ORA-00903错误具体原因分.
.深入分析Oracle数据库日志文件.
.Oracle failsafe与rac两者之间的.
.Function怎么返回一个数据集?.
.用Pro*C开发多线程应用程序.
.Oracle优化SQL执行效能的几点常识.
.Oracle数据库技术(2).
.statspack报告数据结果解释.
.[Oracle] Ora2html--收集Oracle数.
.优化Oracle库表设计的若干方法.
.Oracle Lite 10g数据库第三版正式.
.教你如何彻底删除Windows上的 Or.
.如何在Linux下解压Winzip格式的文.
.使用Oracle10g提供的flashback d.
.使用exp工具进行数据库备份及恢复.
.两种方法分析每月工作日计算程序.
.Oracle webserver中文介绍-第三.
.ADSL+RH8.0透明网关指南.
.oracle里常用命令.

Linux与Linux之间的互拔

发表日期:2008-2-9 |



  一.Linux与Linux之间的互拔:
   请看图一:
   我家里: 办公室:
   机器名:j128 机器名:vms68
   OS: RedHat5.1 OS: RedHat5.1
   IP: 192.168.88.128 <----电话网----> IP: 192.168.89.68 <--->
  Internet
   [ttyS0] [ttyS1] [ttyS0]
   网线
  
   机器名:j003
   OS: Win98
   IP: 192.168.88.3
  第一步要配置Linux为ppp服务器,答应拔入,如姚飞所说:
   使用mgetty
   (以下假设modem装在ttyS0)
   cd /etc
   vi inittab
   add :
   d1:2345:respawn:/sbin/mgetty ttyS0 # COM1口答应拔入
   d2:2345:respawn:/sbin/mgetty ttyS1 # COM2口答应拔入
   then: init q # 重读配置文件/etc/inittab
   注重, 假如想拔号出去, pppd 使用的设备也必须是/dev/ttyS0或/dev/ttyS1,
   而不是/dev/modem, 要不然是拨不出去的.
  我这样做后,j128和vms68都可答应拔入,但还不是ppp server,还需要以下几步:
   在vms68里:
   adduser ppp #新加一个用户
   passwd ppp #为ppp起个密码
   在/home/ppp下建一个脚本ppplogin,内容如下:
   exec /usr/sbin/pppd 115200 modem asyncmap 0 proxyarp
   192.168.89.68:192.193.89.69
   ##### LOCALIP:REMOTEIP
   vi /etc/passwd
   将这行ppp:xxxx:505:505:ppp acount:/home/ppp:/bin/bash
   改为ppp:xxxx:505:505:ppp acount:/home/ppp:/home/ppp/ppplogin
   在j128里:
   adduser ppp #新加一个用户
   passwd ppp #为ppp起个密码
   在/home/ppp下建一个脚本ppplogin,内容如下:
   exec /usr/sbin/pppd 115200 modem asyncmap 0 proxyarp
   0.0.0.0:0.0.0.0.0 ###等vms68分配ip地址
   vi /etc/passwd
   将这行ppp:xxxx:505:505:ppp acount:/home/ppp:/bin/bash
   改为ppp:xxxx:505:505:ppp acount:/home/ppp:/home/ppp/ppplogin
  下一步要配j128拔到vms68,这很简单,
  跟拔到Internet是一样的,文件ppp-onvms68如下:
  # Script to initiate a ppp connection. This is the first part of the
  # pair of scripts. This is not a secure pair of scripts as the codes
  # are visible with the 'ps' command. However, it is simple.
  #
  # These are the parameters. Change as needed.
  TELEPHONE=xxxx # The telephone number for the connection
  ACCOUNT=ppp # The account name for logon (as in 'George Burns')
  PASSWord=xxxx # The password for this account (and 'Gracie Allen')
  LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic = 0.0.0.0
  REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally 0.0.0.0
  NETMASK=255.255.255.0 # The proper netmask if needed
  #
  # EXPort them so that they will be available at 'ppp-on-dialer' time.
  export TELEPHONE ACCOUNT PASSWORD
  #
  # This is the location of the script which dials the phone and logs
  # in. Please use the absolute file name as the $PATH variable is not
  # used on the connect option. (To do so on a 'root' account would be
  # a security hole so don't ask.)
  #
  DIALER_SCRIPT=/home/ppp/ppp-on-dialer
  #
  # Initiate the connection
  #
  # I put most of the common options on this command. Please, don't
  # forget the 'lock' option or some programs sUCh as mgetty will not
  # work. The asyncmap and escape will permit the PPP link to work with
  # a telnet or rlogin connection. You are welcome to make any changes
  # as desired. Don't use the 'defaultroute' option if you currently
  # have a default route to an ethernet gateway.
  #
  exec /usr/sbin/pppd /dev/ttyS0 115200 modem $LOCAL_IP:$REMOTE_IP
   defaultroute lock crtscts asyncmap 0 connect $DIALER_SCRIPT
   debug
  现在配vms68拔到j128,文件ppp-onj128如下:
  # Script to initiate a ppp connection. This is the first part of the
  # pair of scripts. This is not a secure pair of scripts as the codes
  # are visible with the 'ps' command. However, it is simple.
  #
  # These are the parameters. Change as needed.
  TELEPHONE=xxxx # The telephone number for the connection
  ACCOUNT=ppp # The account name for logon (as in 'George Burns')
  PASSWORD=xxxx # The password for this account (and 'Gracie Allen')
  LOCAL_IP=192.168.89.68 # Local IP address if known. Dynamic = 0.0.0.0
  REMOTE_IP=192.168.89.69 # Remote IP address if desired. Normally 0.0.0.0
  NETMASK=255.255.255.0 # The proper netmask if needed
  #
  # Export them so that they will be available at 'ppp-on-dialer' time.
  export TELEPHONE ACCOUNT PASSWORD
  #
  # This is the location of the script which dials the phone and logs
  # in. Please use the absolute file name as the $PATH variable is not
  # used on the connect option. (To do so on a 'root' account would be
  # a security hole so don't ask.)
  #
  DIALER_SCRIPT=/home/ppp/ppp-on-dialer
  #
  # Initiate the connection
  #
  # I put most of the common options on this command. Please, don't
  # forget the 'lock' option or some programs such as mgetty will not
  # work. The asyncmap and escape will permit the PPP link to work with
  # a telnet or rlogin connection. You are welcome to make any changes
  # as desired. Don't use the 'defaultroute' option if you currently
  # have a default route to an ethernet gateway.
  #
  exec /usr/sbin/pppd /dev/ttyS1 115200 modem $LOCAL_IP:$REMOTE_IP
   lock crtscts asyncmap 0 connect $DIALER_SCRIPT
   debug
  这里要注重LOCAL_IP和REMOTE_IP要给值,还有的是在pppd里没有defaultroute。

  因为vms68还要拔上Internet,所以不要defaultroute。
  在j128上用ppp-onvms68拔上vms68,连通后telnet vms68,执行以下命令:
   nohup sleep 30;ppp-onj128
  然后在j128上断线,等待vms68拔入。拔通后,在j128上要执行以下命令:
  route add -net 192.168.89.0 gw 192.168.89.69 ppp0
  route add default gw 192.168.89.69 ppp0
  ipfwadm -F -a m -S 192.168.88.0/24 -D 0.0.0.0/0
  现在可再telnet vms68,在vms68上拔号上网,这样j003可通过j128,再通
  过vms68上网,我也不用付任何费用。
  二.Win98与Linux之间的互拔:
   请看图二:
   我家里: 办公室:
   机器名:j128 机器名:vms68
   OS: RedHat5.1 OS: RedHat5.1
   IP: 192.168.88.128 IP: 192.168.89.68 <--->
  Internet
   [ttyS1] [ttyS0]
   网线
  
   机器名:j003
   OS: Win98 ---------------------------
   IP: 192.168.88.3 电话网
  这里vms68要象第一步所说的,要配成答应拔入的ppp server。
  这里主要是win98的配置,首先象上Internet那样,在拔号网络里新建一个连接,
  要注重两点,一要设置连通后弹出终端窗口,二是最主要的,在“控制面板”里
  选“调制解调器”,选用来连线的modem,选“属性”按钮,选“连接”,再选
  “高级”按钮,再在“附加设置”里输入&C0S0=001。
  为什么要这样做?因为win98自带的ppp client会自动退出当远端ppp server挂线
  时,因此要骗一骗win98,要modem不要报告断线,并自动应答拔入。&C0就是要
  modem不要检测carrier,s0=001要modem在响一下后就应答。
  现在配vms68拔到j003,文件ppp-onj003如下:
  # Script to initiate a ppp connection. This is the first part of the
  # pair of scripts. This is not a secure pair of scripts as the codes
  # are visible with the 'ps' command. However, it is simple.
  #
  # These are the parameters. Change as needed.
  TELEPHONE=xxxx # The telephone number for the connection
  #ACCOUNT=ppp # The account name for logon (as in 'George Burns')
  #PASSWORD=xxxx # The password for this account (and 'Gracie Allen')
  LOCAL_IP=192.168.89.68 # Local IP address if known. Dynamic = 0.0.0.0
上一篇:为最佳性能而调优 Red Hat(4) 人气:403
下一篇:LINUX的引导过程 人气:453
浏览全部Oracle教程的内容 Dreamweaver插件下载 常用网页广告代码全集
  最新网站源码 最新软件下载
2008-9-6 Movie34电影搜索引擎 v3.0
2008-9-6 wap2.0仿帝国建站喜用 v2.0
2008-9-6 免费人才招聘网 宽屏版 v3.01
2008-9-6 喜喔喔视频采集程序 v1.0 beta
2008-9-6 ASP客户管理系统
2008-9-6 主流驿站中秋祝福程序
2008-9-6 php实现msn协议的类
2008-9-5 Coppermine Photo Gallery v1.4.
2008-9-5 清松网络日记本 v2.4
2008-8-23 Mini WinMount V0.4
2008-8-23 Vista优化大师3.11正式版
2008-8-23 Wine 1.13
2008-8-23 KlipFolio 5.0 Build 5899-80
2008-8-23 Windows Sysinternals Desktops
2008-8-23 OneTap Movies1.2破解版
2008-8-23 AnnotaterPDF阅读1.1.503 破解版
2008-8-23 SoundMeter分贝测量仪 v1.0汉化破
2008-8-23 iDrum音乐节拍1.0破解版
  发表评论
姓 名: 验证码:
内 容:
站长工具:网站收录查询 | Google PR查询 | ALEXA排名查询 | CSS在线编辑器 | 广告代码 | Html转换js | js/vbs加密 | md5加密 | 进制转换
实用工具:汉字翻译拼音 | 符号对照表 | 个税计算 | 经典小工具 | 汉字简繁转换 | 普通单位换算 | 公制单位换算 | 生辰老黄历 | 国内电话区号 国家代码与域名缩写 | 文字加密解密 | 健康查询 | 万年历 | 汉字横竖排版 | 手机号码查询 | 计算器 | ip搜索
业务联系 | 广告刊登 | 频道合作 | 投稿荐稿 | 联系方式 | 加入收藏 | RSS订阅
Copyright © 2000-2008 www.knowsky.com All rights reserved | 网络实名:动态网站制作指南 | 沪ICP备05001343号
ホームページ制作 不動産検索システム 求人情報
防水工事·改修工事 フットサル大会 探偵