looks strange on pppoe

Tang Ho Yim hoyimtang at yahoo.com
Thu Sep 29 08:48:12 PDT 2005


Hi, I am going to setup a FreeBSD 5.4 box as a
Internet gateway by pppoe.

The lan card, xl0(Mac:00:50:da:19:2e:78) is attach
directly to the ISP server (I think) which using DHCP
to get the private IP (10.167.X.X ) when boot up. Then
go though Internet by pppoe....

/etc/ppp/ppp.conf
default:
        set log Phase tun command
        set device PPPoE:xl0
        set pppoe standard
        set speed sync
        set mru 1492
        set mtu 1492
        set timeout 0
        disable deflate
        disable pred1
        disable vjcomp
        disable acfcomp
        disable protocomp
        disable lqr
        add default HISADDR
Internet:
        set authname name at broadband.com
        set authkey xxxxxxx

The Internet connection seem ok, but I get the error
say "session in wrong state".

I dump the packets and found something that I don't
understand (may be in cause the error "session in
wrong state" ?)

#tcpdump -e -i xl0 -s 1500 not ip
#pppoe -ddial Internet
02:16:41.790177 00:50:da:19:2e:78 > Broadcast,
ethertype PPPoE D (0x8863), length 32: PPPoE PADI
[Host-Uniq 0x409A1FC1]
02:16:41.791614 00:e0:fc:12:f4:ca > 00:50:da:19:2e:78,
ethertype PPPoE D (0x8863), length 60: PPPoE PADO
[Host-Uniq 0x409A1FC1] [Service-Name] [AC-Name
"SUNC-AG
G-BRAS01"] [EOL]
02:16:41.791678 00:e0:fc:0e:97:45 > 00:50:da:19:2e:78,
ethertype PPPoE D (0x8863), length 60: PPPoE PADO
[Host-Uniq 0x409A1FC1] [Service-Name] [AC-Name
"HIDC-AG
G-BRAS01"] [EOL]
02:16:41.791794 00:50:da:19:2e:78 > 00:e0:fc:12:f4:ca,
ethertype PPPoE D (0x8863), length 51: PPPoE PADR
[Host-Uniq 0x409A1FC1] [AC-Name "SUNC-AGG-BRAS01"]
02:16:41.792336 00:e0:fc:0f:39:a2 > 00:50:da:19:2e:78,
ethertype PPPoE D (0x8863), length 60: PPPoE PADO
[Host-Uniq 0x409A1FC1] [Service-Name] [AC-Name
"SUNC-AG
G-BRAS05"] [EOL]
02:16:41.792359 00:e0:fc:0e:96:be > 00:50:da:19:2e:78,
ethertype PPPoE D (0x8863), length 60: PPPoE PADO
[Host-Uniq 0x409A1FC1] [Service-Name] [AC-Name
"SUNC-AG
G-BRAS03"] [EOL]
02:16:41.793481 00:e0:fc:12:f4:ca > 00:50:da:19:2e:78,
ethertype PPPoE D (0x8863), length 60: PPPoE PADS [ses
0x5] [Host-Uniq 0x409A1FC1] [AC-Name "SUNC-AGG-BRA
S01"] [Service-Name] [EOL]

02:16:41.793605 00:e0:fc:12:f4:ca > 00:50:da:19:2e:78,
ethertype PPPoE S (0x8864), length 60: PPPoE  [ses
0x5] PPP-LCP (0xc021), length 21: LCP, Conf-Request
(0x01), id 0, MRU  1492, Auth-Prot  CHAP, MD5,
Magic-Num  0x6a2b9767, length 19
02:16:42.797894 00:50:da:19:2e:78 > 00:e0:fc:12:f4:ca,
ethertype PPPoE S (0x8864), length 36: PPPoE  [ses
0x5] PPP-LCP (0xc021), length 16: LCP, Conf-Request
(0x01), id 1, MRU  1492, Magic-Num  0x2f5cb37e, length
14
02:16:42.798612 00:50:da:19:2e:78 > 00:e0:fc:12:f4:ca,
ethertype PPPoE S (0x8864), length 41: PPPoE  [ses
0x5] PPP-LCP (0xc021), length 21: LCP, Conf-Ack
(0x02), id 0, MRU  1492, Auth-Prot  CHAP, MD5,
Magic-Num  0x6a2b9767, length 19
02:16:42.799492 00:e0:fc:12:f4:ca > 00:50:da:19:2e:78,
ethertype PPPoE S (0x8864), length 60: PPPoE  [ses
0x5] PPP-LCP (0xc021), length 16: LCP, Conf-Ack (0x02)
, id 1, MRU  1492, Magic-Num  0x2f5cb37e, length 14

02:16:42.800390 00:e0:fc:12:f4:ca > 00:50:da:19:2e:78,
ethertype PPPoE S (0x8864), length 60: PPPoE  [ses
0x5] PPP-CHAP (0xc223), length 23: Chal(1), Value 4375
4f127b461a693f4f97f5490e80ed, Name 
02:16:42.801011 00:50:da:19:2e:78 > 00:e0:fc:12:f4:ca,
ethertype PPPoE S (0x8864), length 67: PPPoE  [ses
0x5] PPP-CHAP (0xc223), length 47: Resp(1), Value 82ec
08d7efab73a63d6097a8747427da, Name name at broadband.com
02:16:42.806136 00:e0:fc:12:f4:ca > 00:50:da:19:2e:78,
ethertype PPPoE S (0x8864), length 60: PPPoE  [ses
0x5] PPP-LCP (0xc021), length 20: LCP, Conf-Request (0
x01), id 1, MRU  1492, Auth-Prot  PAP, Magic-Num 
0x6a2bc421, length 18
02:16:42.807189 00:50:da:19:2e:78 > 00:e0:fc:12:f4:ca,
ethertype PPPoE S (0x8864), length 36: PPPoE  [ses
0x5] PPP-LCP (0xc021), length 16: LCP, Conf-Request
(0x01), id 2, MRU  1492, Magic-Num  0x98aa8b62, length
14
02:16:42.807468 00:50:da:19:2e:78 > 00:e0:fc:12:f4:ca,
ethertype PPPoE S (0x8864), length 40: PPPoE  [ses
0x5] PPP-LCP (0xc021), length 20: LCP, Conf-Ack
(0x02), id 1, MRU  1492, Auth-Prot  PAP, Magic-Num 
0x6a2bc421, length 18
02:16:42.808306 00:e0:fc:12:f4:ca > 00:50:da:19:2e:78,
ethertype PPPoE S (0x8864), length 60: PPPoE  [ses
0x5] PPP-LCP (0xc021), length 16: LCP, Conf-Ack
(0x02), id 2, MRU  1492, Magic-Num  0x98aa8b62, length
14

02:16:42.808841 00:50:da:19:2e:78 > 00:e0:fc:12:f4:ca,
ethertype PPPoE S (0x8864), length 60: PPPoE  [ses
0x5] PPP-PAP (0xc023), length 40: Auth-Req(1), Peer
name at broadband.com, Name xxxxxxx
02:16:42.867620 00:e0:fc:12:f4:ca > 00:50:da:19:2e:78,
ethertype PPPoE S (0x8864), length 72: PPPoE  [ses
0x5] PPP-PAP (0xc023), length 52: Auth-Ack(1), Msg Wel
come to use Quidway ROUTER, Huawei Tech.\015\012
02:16:42.867676 00:e0:fc:12:f4:ca > 00:50:da:19:2e:78,
ethertype PPPoE S (0x8864), length 60: PPPoE  [ses
0x5] PPP-IPCP (0x8021), length 12: IPCP, Conf-Request
(0x01), id 0, IP-Addr x.x.x.x, length 10

02:16:42.868994 00:50:da:19:2e:78 > 00:e0:fc:12:f4:ca,
ethertype PPPoE S (0x8864), length 26: PPPoE  [ses
0x5] PPP-unknown (0x80fd), length 6: unknown,
Conf-Request (0x01), id 1

02:16:42.869494 00:50:da:19:2e:78 > 00:e0:fc:12:f4:ca,
ethertype PPPoE S (0x8864), length 32: PPPoE  [ses
0x5] PPP-IPCP (0x8021), length 12: IPCP, Conf-Request
(0x01), id 1, IP-Addr host.domain, length 10
02:16:42.869637 00:50:da:19:2e:78 > 00:e0:fc:12:f4:ca,
ethertype PPPoE S (0x8864), length 32: PPPoE  [ses
0x5] PPP-IPCP (0x8021), length 12: IPCP, Conf-Ack
(0x02), id 0, IP-Addr x.x.x.x, length 10
02:16:42.870116 00:e0:fc:12:f4:ca > 00:50:da:19:2e:78,
ethertype PPPoE S (0x8864), length 60: PPPoE  [ses
0x5] PPP-LCP (0xc021), length 8: LCP, Prot-Reject
(0x08), id 2, Rejected unknown Protocol (0x80fd),
length 6
02:16:42.870915 00:e0:fc:12:f4:ca > 00:50:da:19:2e:78,
ethertype PPPoE S (0x8864), length 60: PPPoE  [ses
0x5] PPP-IPCP (0x8021), length 12: IPCP, Conf-Nack
(0x03), id 1, IP-Addr y.y.y.y, length 10
02:16:42.871242 00:50:da:19:2e:78 > 00:e0:fc:12:f4:ca,
ethertype PPPoE S (0x8864), length 32: PPPoE  [ses
0x5] PPP-IPCP (0x8021), length 12: IPCP, Conf-Request
(0x01), id 2, IP-Addr y.y.y.y, length 10
02:16:42.872641 00:e0:fc:12:f4:ca > 00:50:da:19:2e:78,
ethertype PPPoE S (0x8864), length 60: PPPoE  [ses
0x5] PPP-IPCP (0x8021), length 12: IPCP, Conf-Ack
(0x02), id 2, IP-Addr y.y.y.y, length 10
................
................
then many PPP-IP packet about Echo-Request and
Echo-Reply between x.x.x.x(server) and y.y.y.y(client)

>From the above, the PPPoE negotiation is ok, but
during authenticate, you can see that ISP request two
times, CHAP & PAP ! Usually just using any one I know.
It sounds strange right ?
After authenticate, client send a Conf-Requset packet
"PPP-unknown" to SERVER. What is it ?
Is these two cause the error message "session in wrong
state" or my ppp.conf wrong ?

I have check the RFC2516 and take a google search, but
no idea. So I would to discuss about this......Thanks
!




		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


More information about the freebsd-questions mailing list