/etc/ppp/ppp.conf
default:
set log Phase Chat LCP IPCP CCP tun command
set device "!/usr/sbin/pppoe -i re0"
#set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK #ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" //
man手册里也没懂,正
#则表达式?注释不注释我都尝试过,都是不行。
pppoe:
set phone ****
//貌似没有必要,这个是unix拨号风格吧?
set login
set authname ****
set authkey ****
set timeout 120
set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0
add default HISADDR
enable dns
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 packets transmitted, 0 packets received, 100.0% packet loss
# ppp -auto pppoe
Working in auto mode
Using interface: tun0
//我很好奇怎么使用tun0呢?
# tail /var/log/messages
Apr 20 16:04:41 @@@ ppp[29796]: tun0: Warning: deflink: /dev/tun0: Device busy
Apr 20 16:05:27 @@@ ppp[32615]: tun1: Warning: deflink: /dev/tun0: Device busy
Apr 20 16:08:27 @@@ ppp[7884]: tun0: Warning: deflink: /dev/tun0: Device busy
Apr 20 16:08:46 @@@ last message repeated 3 times
Apr 20 16:10:03 @@@ ppp[20066]: tun0: Warning: Chat script failed
# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33196
priority: 0
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet 127.0.0.1 netmask 0xff000000
athn0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:12:7b:62:72:9c
priority: 4
groups: wlan
//怎么无线网卡还有group呢,re0就没有?
media: IEEE802.11 autoselect
status: no network
ieee80211: nwid ""
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:e0:4c:70:0b:99
//怎么是lladdr,我看网上都是addr?
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::2e0:4cff:fe70:b99%re0 prefixlen 64 scopeid 0x2
enc0: flags=0<>
priority: 0
groups: enc
status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33196
priority: 0
groups: pflog
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
priority: 0
groups: tun egress
status: active
inet 10.0.0.1 --> 10.0.0.2 netmask 0xffffffff
//怎么不用re0呢?
,这下真是崩溃了,实在不行,man ppp看了,网络知识缺乏很多词不懂,以后再补吧,现在先连上网就好。
其他信息:网通 adsl 猫:上海贝尔home plus 500 …… 网卡是瑞昱RTL8102E/8103E Family PCI-E Fast Rthernet NIC
大侠帮看看吧,先谢过!