Dear Yasuoka.

Thanks for your suggestion. And test again.
Actually every thing going to be all right!:)

#today's process and log.
a)setup
#server
#/etc/hostname.bge0
-inet6
up
#/etc/npppd/npppd-users

taro:
:password=taro:
:framed-ip-address=10.0.0.2:

#/etc/npppd/npppd.conf
authentication LOCAL type local {
        users-file "/etc/npppd/npppd-users"
}
tunnel PPPOE protocol pppoe {
        listen on interface bge0
mru 1400
pipex yes
authentication-method pap pap mspapv2
}
ipcp IPCP {
        pool-address 10.0.0.2-10.0.0.254
        dns-servers 192.168.0.1
}
interface pppx0 address 10.0.0.1 ipcp IPCP
bind tunnel from PPPOE authenticated by LOCAL to pppx0

#client
#/etc/hostname.bge0
-inet6
up
#/etc/hostname.pppoe0
inet 0.0.0.0 255.255.255.255 NONE \
pppoedev bge0 authproto pap \
authname 'taro' authkey 'taro' up
dest 0.0.0.1
!/sbin/route add default -ifp pppoe0 0.0.0.1

b)reactive
#server
#terminal:ttyp1
tcpdump -pni bge0 proto 0x8863
#terminal:ttyp2
tcpdump -pni bge0 proto 0x8864
#terminal:ttyp0
npppd -df /etc/npppd.conf

#client
#terminal:ttyp1
tcpdump -pni bge0 proto 0x8863
#terminal:ttyp2
tcpdump -pni bge0 proto 0x8864
#terminal ttyC0
sh /etc/netstart pppoe0

c)log
#server
#terminal:ttyp1 ##couldn't get any things.
#terminal:ttyp2 ##couldn't get any things.
#terminal:ttyp3 ##added
npppctl session all
Ppp Id = 0
          Ppp Id                  : 0
          Username                : taro
          Realm Name              : LOCAL
          Concentrated Interface  : pppx0
          Assigned IPv4 Address   : 10.0.0.2
          Tunnel Protocol         : PPPoE
          Tunnel From             : aa:bb:cc:dd:ee:ff
          Start Time              : 2013/04/23 01:32:31
          Elapsed Time            : 1 sec
          Input Bytes             : 117
          Input Packets           : 7
          Input Errors            : 4 (36.4%)
          Output Bytes            : 171
          Output Packets          : 11
          Output Errors           : 0 (0.0%)

#again
npppctl session all
Ppp Id = 0
          Ppp Id                  : 0
          Username                : taro
          Realm Name              : LOCAL
          Concentrated Interface  : pppx0
          Assigned IPv4 Address   : 10.0.0.2
          Tunnel Protocol         : PPPoE
          Tunnel From             : aa:bb:cc:dd:ee:ff
          Start Time              : 2013/04/23 01:32:31
          Elapsed Time            : 59 sec
          Input Bytes             : 137
          Input Packets           : 9
          Input Errors            : 8 (47.1%)
          Output Bytes            : 203
          Output Packets          : 14
          Output Errors           : 0 (0.0%)

#terminal:ttyp0
npppd -df /etc/npppd/npppd.conf
2013-04-23 01:31:36:NOTICE: Starting npppd pid=27130 version=5.0.0
2013-04-23 01:31:36:NOTICE: Load configuration from='/etc/npppd/npppd.conf' successfully.
2013-04-23 01:31:36:INFO: pppx0 Started pppx
2013-04-23 01:31:36:INFO: Listening /var/run/npppd_ctl (npppd_ctl)
2013-04-23 01:31:36:INFO: ipcp=IPCP pool dyn_pool=[10.0.0.2/31,10.0.0.4/30,10.0.0.8/29,10.0.0.16/28,10.0.0.32/27,10.0.0.64/26,10.0.0.128/26,10.0.0.192/27,10.0.0.224/28,10.0.0.240/29,10.0.0.248/30,10.0.0.252/31,10.0.0.254/32] pool=[10.0.0.2/31,10.0.0.4/30,10.0.0.8/29,10.0.0.16/28,10.0.0.32/27,10.0.0.64/26,10.0.0.128/26,10.0.0.192/27,10.0.0.224/28,10.0.0.240/29,10.0.0.248/30,10.0.0.252/31,10.0.0.254/32]
2013-04-23 01:31:36:INFO: Loading pool config successfully.
2013-04-23 01:31:36:INFO: pppoed Listening on bge0 (PPPoE) [PPPOE] using=/dev/bpf0 address=00:11:22:33:44:55 2013-04-23 01:32:31:INFO: pppoed RecvPADI from=aa:bb:cc:dd:ee:ff service-name= host-uniq=4f38779d if=bge0 2013-04-23 01:32:31:INFO: pppoed SendPADO to=aa:bb:cc:dd:ee:ff serviceName= acName=00:11:22:33:44:55 hostUniq=4f38779d eol if=bge0 2013-04-23 01:32:31:INFO: pppoed if=bge0 session=5460 SendPADS serviceName= hostUniq=4f38779d 2013-04-23 01:32:31:NOTICE: pppoed if=bge0 session=5460 logtype=PPPBind ppp=0 2013-04-23 01:32:31:ERR: ppp id=0 layer=base getnameinfo() failed at ppp_set_tunnel_label 2013-04-23 01:32:31:INFO: ppp id=0 layer=base logtype=Started tunnel=PPPOE(0.0.0.0) 2013-04-23 01:32:31:INFO: ppp id=0 layer=lcp logtype=Opened mru=1492/1492 auth=MD5-pap magic=8040d42c/f6fb68ce 2013-04-23 01:32:31:INFO: ppp id=0 layer=pap proto=pap logtype=Success username="taro" realm=LOCAL 2013-04-23 01:32:31:INFO: ppp id=0 layer=base unhandled protocol ipv6cp, 32855(8057) 2013-04-23 01:32:31:INFO: ppp id=0 layer=ipcp IP Address peer=0.0.0.0 our=10.0.0.2. 2013-04-23 01:32:31:INFO: ppp id=0 layer=base unhandled protocol ipv6cp, 32855(8057) 2013-04-23 01:32:31:INFO: ppp id=0 layer=ipcp logtype=Opened ip=10.0.0.2 assignType=dynamic 2013-04-23 01:32:31:ERR: ppp id=0 layer=base getnameinfo() failed at ppp_set_tunnel_label 2013-04-23 01:32:31:NOTICE: ppp id=0 layer=base logtype=TUNNELSTART user="taro" duration=0sec layer2=PPPOE layer2from=0.0.0.0 auth=MD5-pap ip=10.0.0.2 iface=pppx0
2013-04-23 01:32:31:NOTICE: ppp id=0 layer=base Using pipex=yes
2013-04-23 01:32:32:INFO: ppp id=0 layer=base unhandled protocol ipv6cp, 32855(8057) 2013-04-23 01:32:41:INFO: ppp id=0 layer=base unhandled protocol ipv6cp, 32855(8057)
^C
2013-04-23 01:32:51:NOTICE: pptpd Stopped
2013-04-23 01:32:51:INFO: pppoed if=bge0 session=5460 SendPADT
2013-04-23 01:32:51:ERR: ppp id=0 layer=base getnameinfo() failed at ppp_set_tunnel_label 2013-04-23 01:32:51:NOTICE: ppp id=0 layer=base logtype=TUNNELUSAGE user="taro" duration=20sec layer2=PPPOE layer2from=0.0.0.0 auth=MD5-pap data_in=117bytes,7packets data_out=183bytes,12packets error_in=6 error_out=0 mppe=no iface=pppx0 2013-04-23 01:32:51:INFO: pppoed Shutdown bge0 (PPPoE) [PPPOE] address=00:11:22:33:44:55
2013-04-23 01:32:51:NOTICE: pppoed Stopped
2013-04-23 01:32:51:INFO: pppx0 Stopped
2013-04-23 01:32:52:INFO: realm name=LOCAL Finalized
2013-04-23 01:32:52:NOTICE: Terminate npppd.

#client
#terminal:ttyp1 ##couldn't get any things.
#terminal:ttyp2 ##couldn't get any things.
#terminal:ttyC0
add net default: gateway 0.0.0.1

#terminal:ttyp3 ##added
pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1492
        priority: 0
        dev: bge0 state: session
        sid: 0xdccf PADI retries: 0 PADR retries: 0 time: 00:00:03
        sppp: phase network authproto pap authname "taro"
        groups: pppoe egress
        status: active
inet6 fe80::####:####:####:####%pppoe0 -> prefixlen 64 scopeid 0x1de
        inet 10.0.0.2 --> 10.0.0.1 netmask 0xffffffff

##End of log

I coudn't get again. Just yesterday repeated the same situation.

"c)log #server npppctl session all", I think these "Input Errors" value are so big. I didn't to know value of avarage. (my environment have any problem? if it. I'm apologize.)

#P.S.
#first time. I tried "npppctl -sa"(like a "pfctl -sa")

____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth

Reply via email to