後一个字是 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上一页 [1] [2] [3] [4] [5] 下一页 |