问题总结第一张专辑(2005年开始)[1]

[入库:2005年9月19日] [更新:2007年3月24日]

本文简介:


以前有几位大哥总结了好多问题的帖子,我看了深有感触,因此我要继承他的精神,为大家在服务,顺便也来纪念一下我的学习经历和我的月宝儿,,五一七天乐,可我乐不起来,只好学习了,总结一下也让大家学着方便
由于时间关系我总结了从2005开始的问题。但只是一部分,我会不断总结的。还有就是有的问题可能解决起来难,那有不对的还请斑竹和大家多多帮助多多支持。

1 ) Q: Solaris拔号上网(ADSL),请高手和版主给出一个标准解决方案!
Solaris拔号上网(ADSL),同各位新手一样,让我心烦郁闷! 
我也试过各路高手们的招数,但仍拔不出去? 
Solaris拔号上网(ADSL),真的那么难?!
A: SOLARIS+ADSL+QDNS 

OS:SUN SOLARIS 9.0 FOR X86/SPARC 

1.1确定系统上安装了下列包: 

# pkginfo -l | grep ppp 

SUNWpppd - Solaris PPP Device Drivers 
SUNWpppdr - Solaris PPP configuration files 
SUNWpppdt - Solaris PPP Tunneling 
SUNWpppdu - Solaris PPP daemon and utilities 
SUNWpppdx - Solaris PPP 64-bit (ONLY needed for SPARC) 

1.2建立拨号配置文件: 

# vi /etc/ppp/pppoe.if 
rtls0 
# touch /reconfigure 
# sync 
# reboot 
# ls /dev | grep ppp 
sppp 
sppptun 
# grep ppp /etc/name_to_major 
sppp 146 
sppptun 147 
# vi /etc/ppp/peers/adsl 

============== /etc/ppp/peers/adsl ================ 
sppptun 
plugin pppoe.so 
connect "/usr/lib/inet/pppoec rtls0" 
persist 
user "sjz681a0156@adsl2" 
noauth 
noipdefault 
noccp 
novj 
noaccomp 
nopcomp 
defaultroute 
============== /etc/ppp/peers/adsl ================ 

# mv /etc/ppp/options.tmpl /etc/ppp/options 
# mv /etc/ppp/options.ttya.tmpl /etc/ppp/options.ttya 

1.3设置拨号USERNAME和PASSWORD: 

# vi /etc/ppp/pap-secrets 
sjz681a0156@adsl2 * 123456 //注意他们之间不是空格而是[TAB] 
# vi /etc/ppp/chap-secrets 
sjz681a0156@adsl2 * 123456 //注意他们之间不是空格而是[TAB] 

# chmod 600 /etc/ppp/pap-secrets 
# chmod 600 /etc/ppp/chap-secrets 

1.4确定网卡与ADSL-MODEM之间能够通信: 

# /usr/lib/inet/pppoec -i rtls0 
0:e0:fc:4:63:12 Svc:"" Uniq:00000001 Name:"sjz603-8850" 

1.5建立拨号连接: 

# /usr/bin/pppd call adsl 
# ifconfig -a 

lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1 
inet 127.0.0.1 netmask ff000000 
elxl0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 
inet 192.168.0.1 netmask ffffff00 broadcast 192.168.0.255 
ether 60:0:de:a1:3:4 
rtls0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3 
inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255 
ether 0:e0:4c:ee:8f:35 
sppp0: flags=10008d1<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST,IPv4> mtu 1492 index 6 
inet 218.11.23.138 --> 61.182.243.1 netmask ffffff00 
ether 0:0:0:0:0:0 

1.6建立开机自动启动脚本: 

# vi /etc/init.d/ppplink 

==========/etc/init.d/ppplink============ 
#!/sbin/sh 

# This script compliments the Sun script /etc/init.d/pppd 
# It goes the rest of the way and brings the link up. 
# Written by Phil Dibowitz. 

# This script is provided AS-IS. No warantee of ANY kind implied 
# or stated. Use at your own risk. 


case "$1" in 
'start') 
if [ ! -x /usr/bin/pppd -o ! -c /dev/sppp ] ; then 
# User probably just received the warning 
# From Sun's pppd script, don't bother them more 
exit 1 
fi 
if [ -s /usr/sbin/sppptun -a -f /etc/ppp/pppoe.if ] ; then 
# If same conditions are satisfied 
# Bring up the link 
/usr/bin/pppd call adsl 
fi 
;; 

本文关键:问题总结第一张专辑(2005年开始)
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top