麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 系統 > Solaris > 正文

設定 Solaris 2 的 ppp

2024-07-26 00:29:53
字體:
來源:轉載
供稿:網友
Solaris 2 的 asppp (asynchronous ppp) 使用到不少 UUCP 的設定檔
如果你對 UUCP 有一定的概念, 那再好不過了
(關於 UUCP 請參見 RFC 976, 1137)
底下將以交大的 Terminal Server 為例
示 Solaris 2 ppp 的使用方法

0. 請先確定你的系統有 UUCP 與 PPP

   > pkginfo | egrep "PPP|UUCP"

   所得結果當是:

application SUNWapppA      Dial-up PPP Administration
system      SUNWappPR      PPP/ip Asynchronous PPP daemon configuration files
system      SUNWapppu      PPP/IP Asynchronous PPP daemon and PPP login service
system      SUNWbnur       Networking UUCP Utilities, (Root)
system      SUNWbnuu       Networking UUCP Utilities, (Usr)
system      SUNWpppk       PPP/IP and IPdialup Device Drivers

1. 設定 /etc/uucp/Systems 并用 cu -d -L 來測試之
   例如,我的 /etc/uucp/Systems 內容是這麼寫的:

   nctu Any ACU 38400 730600 oice: 6/n

   用 :
   cu -d -L nctu
   來看看撥號與選擇 ppp 是否正常
   (交大 terminal server 的選擇畫面最後一個字是 choice:
    選項 6 是 ppp)
   如果你的是接在 com1, 還得改一改 /etc/uucp/Devices

2. 在 /etc/gateways 中加入

   norip ipdptp0

   告訴 routed 說不要用 RIP(Routing Information Protocol, 參見 RFC 1058, 1723)

3. 把 /etc/nsswitch.conf 中寫的是

   hosts: files

   請改為

   hosts: files dns

4. 在 /etc/resolv.conf 中加入適當的 nameserv
   例如交大的 server 是:

   nameserver 140.113.1.1
   domain     nctu.edu.tw

5. 在 /etc/hosts 中加入

   0.0.0.0      void
   140.126.1.1  nctu    # address 隨便寫, 反正 ppp 會幫你設出正確值

6. 寫好 /etc/asppp.conf, 我的 asppp.conf

   ifconfig ipdptp0 plumb void nctu down
   path
        inactivity_timeout 120
        interface ipdptp0
        peer_system_name nctu
        default_route

7. 寫個如下的 shell script, 把它叫 "attach", 挑個你喜歡的地方放

   #!/bin/sh
   detach $1
   ifc_cmd=`egrep "^ifconfig.*$1" /etc/asppp.cf`
   ifc=`echo $ifc_cmd | awk '{print $2}'`
   ifconfig $ifc up
   route add default $1 1 >/dev/null
   ping $1

8. 寫個如下的 shell script, 把它叫 "detach", 挑個你喜歡的地方放

   #!/bin/sh
   ifc_cmd=`egrep "^ifconfig.*$1" /etc/asppp.cf`
   ifc=`echo $ifc_cmd | awk '{print $2}'`
   if [ -n "`ifconfig -a | grep $ifc`" ]
   then
       ifconfig $ifc down
       id=`ps -e | grep aspppd | awk '{print $1}`
       if test -n "$id"
       then
           kill -1 $id
       fi
       ifconfig $ifc unplumb
   fi
   eval $ifc_cmd
   exit 0

把 attach 與 detach 所在的目錄加進你的 $PATH 中
重新開機後, 就大功告成了,
用 "attach nctu"/"detach nctu" 就可以連接/切斷與交大 terminal server 的 ppp


NOTE:
Solaris 2.4 的 PPP 沒有 implement PAP, 所以若您撥接 SeedNet 的 PPP
請安裝 dp(ftp://nctuccca.edu.tw/UNIX/networking/ppp/dp/ )

Bibliography:
1. Peter Block , "Solaris 2.4, PPP and dynamic address"
2. M. Horton, "UUCP mail interchange format standard", 02/01/1986(RFC1137)
3. SunSoft, "TCP/IP Network Administration Guide"
4. W. Simpson, "The Point-to-Point Protocol (PPP)", 07/21/1994.(RFC1661)
5. W. Simpson, "PPP in HDLC-like Framing", 07/21/1994.(RFC1662)


連上 hinet ppp

  修改以下檔案
  /etc/asppp.cf
ifconfig ipdptp0 plumb 192.1.1.10 168.95.4.254 up
#使用 hinet gateways ip 168.95.4.254 your machine is 192.1.1.10
path
    interface ipdptp0
    inactivity_timeout 120
    will_do_authentication pap
    pap_id (your id)
    pap_passWord( your password)
    peer_system_name hinet
    default_route
    debug_level 9
    negotiate_address on

  /etc/resolv.conf
  domain hinet.net
  nameserver 168.95.192.1
  nameserver 168.95.1.1

  /etc/nsswitch.conf加入
  hosts:      files dns

  /etc/gateways
  norip ipdptp0

  /etc/uucp/Systems
  hinet Any ACUTEC 38400 4125678

  /etc/uucp/Devices
  ACUTEC cua/b - Any hayes
#使用 hayes 就不用修改 /etc/uucp/Dialers

  我是做了以上的修改就可連上hinet,但不知是否連線速率被影響?
  希望你也能連上,在此感謝bbs上的siegfried的幫助,其他在討論中提供資料的人
  謝謝。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 免费试看av | 亚州综合 | 一区二区三区国产在线 | 黄色高清av | 丁香天堂网| 中文字幕专区高清在线观看 | 亚洲第一成av人网站懂色 | 99视频有精品| 自拍亚洲伦理 | 国产一级免费在线视频 | 久久亚洲春色中文字幕久久 | 黄色一级片在线免费观看 | 精品中文字幕久久久久四十五十骆 | 久久久久久中文字幕 | 操操影视 | 男女生羞羞视频网站在线观看 | 黄色大片大毛片 | 国产女做a爱免费视频 | 亚洲精华液久久含羞草 | 免费特黄| 欧美亚洲国产成人综合在线 | 精品国产视频一区二区三区 | 免费一级毛片观看 | 日韩精品免费一区二区三区 | 国产乱xxxx | 国产九九 | 亚洲综合一区在线观看 | 成人三级电影网站 | 毛片视频免费观看 | 精品一区二区三区毛片 | 免费观看一级黄色片 | 久久亚洲一区二区三区成人国产 | 中文字幕国产一区 | 精品久久久久久久久久久久久久久久久久久 | 中国hd高清xxxxvideo | sese在线视频 | 亚洲小视频在线播放 | 欧美第1页 | 国产精品99久久久久久大便 | 欧美伦理一区二区 | 成人国产精品一区二区毛片在线 |