[j-nsp] J2300 / PPPoE

Peter Lundqvist plundqvi at juniper.net
Mon Jul 4 12:22:04 EDT 2005


Example in mind Hannes adds below



[Pepsi]---fe-0/0/1---fa2/3--[erx(LAC)]---core---[Cisco(LNS)]---> 
Internet--->



[edit access]
lunkan at pepsi# run monitor traffic interface fe-0/0/1
verbose output suppressed, use <detail> or <extensive> for full protocol 
decode
Listening on fe-0/0/1, capture size 96 bytes


<authentication towards LAC>

11:41:39.101314 Out PPPoE PADI [Host-Uniq UTF8] [Service-Name]
11:41:39.111199  In PPPoE PADO [AC-Name "erx"] [Host-Uniq UTF8] 
[Service-Name] [AC-Cookie UTF8]
11:41:39.111376 Out PPPoE PADR [Host-Uniq UTF8] [Service-Name] [AC-Name 
"erx"] [AC-Cookie UTF8]
11:41:39.151173  In PPPoE PADS [ses 93] [Service-Name] [Host-Uniq UTF8] 
[AC-Name "erx"] [AC-Cookie UTF8]
11:41:39.152433 Out PPPoE  [ses 93] LCP configure request       (type 
0x01  id 0xda  len 0x000e)
   LCP OPTION: Magic number                   (type 0x05 len 0x06 val 
0x427994b7)
   LCP OPTION: Maximum Receive Unit           (type 0x01 len 0x04 val 0x5d4)
11:41:39.291321 Out PPPoE  [ses 93] LCP configure acknowledge   (type 
0x02  id 0x43  len 0x0013)
   LCP OPTION: Maximum Receive Unit           (type 0x01 len 0x04 val 0x5d4)
   LCP OPTION: Authentication protocol        (type 0x03 len 0x05 val 
0xc2 0x23 0x05 )
   LCP OPTION: Magic number                   (type 0x05 len 0x06 val 
0x12c160a0)
11:41:39.320756 Out PPPoE  [ses 93]
11:41:49.651608 Out PPPoE  [ses 93] LCP echo request            (type 
0x09  id 0xdb  len 0x0008)
11:42:00.852382 Out PPPoE  [ses 93] LCP echo request            (type 
0x09  id 0xdc  len 0x0008)
11:42:09.292765 Out PPPoE  [ses 93] IPCP configure request       (type 
0x01  id 0xdd  len 0x000a)
   IPCP OPTION: address                        (type 0x03 len 0x06)
11:42:09.292778 Out PPPoE  [ses 93] LCP terminate request       (type 
0x05  id 0xde  len 0x0004)
11:42:09.292785 Out PPPoE  [ses 93] LCP configure request       (type 
0x01  id 0xdf  len 0x000e)
   LCP OPTION: Magic number                   (type 0x05 len 0x06 val 
0x427bbef6)
   LCP OPTION: Maximum Receive Unit           (type 0x01 len 0x04 val 0x5d4)
11:42:09.383099  In PPPoE PADT [ses 93]



<Authentication towards LNS>

11:42:19.503861 Out PPPoE PADI [Host-Uniq UTF8] [Service-Name]
11:42:19.513911  In PPPoE PADO [AC-Name "erx"] [Host-Uniq UTF8] 
[Service-Name] [AC-Cookie UTF8]
11:42:19.514092 Out PPPoE PADR [Host-Uniq UTF8] [Service-Name] [AC-Name 
"erx"] [AC-Cookie UTF8]
11:42:19.553867  In PPPoE PADS [ses 94] [Service-Name] [Host-Uniq UTF8] 
[AC-Name "erx"] [AC-Cookie UTF8]
11:42:19.555141 Out PPPoE  [ses 94] LCP configure request       (type 
0x01  id 0xe1  len 0x000e)
   LCP OPTION: Magic number                   (type 0x05 len 0x06 val 
0x427fb9b3)
   LCP OPTION: Maximum Receive Unit           (type 0x01 len 0x04 val 0x5d4)
11:42:19.603780 Out PPPoE  [ses 94] LCP configure acknowledge   (type 
0x02  id 0x99  len 0x0013)
   LCP OPTION: Maximum Receive Unit           (type 0x01 len 0x04 val 0x5d4)
   LCP OPTION: Authentication protocol        (type 0x03 len 0x05 val 
0xc2 0x23 0x05 )
   LCP OPTION: Magic number                   (type 0x05 len 0x06 val 
0x5f81e4dd)
11:42:19.613964 Out PPPoE  [ses 94]
11:42:19.793936 Out PPPoE  [ses 94] LCP configure request       (type 
0x01  id 0xe2  len 0x000e)
   LCP OPTION: Magic number                   (type 0x05 len 0x06 val 
0x427fb9b3)
   LCP OPTION: Maximum Receive Unit           (type 0x01 len 0x04 val 0x5d4)
11:42:19.793944 Out PPPoE  [ses 94] LCP configure acknowledge   (type 
0x02  id 0x01  len 0x000f)
   LCP OPTION: Authentication protocol        (type 0x03 len 0x05 val 
0xc2 0x23 0x05 )
   LCP OPTION: Magic number                   (type 0x05 len 0x06 val 
0x2ce987b9)
11:42:21.794094 Out PPPoE  [ses 94] LCP configure acknowledge   (type 
0x02  id 0x02  len 0x000f)
   LCP OPTION: Authentication protocol        (type 0x03 len 0x05 val 
0xc2 0x23 0x05 )
   LCP OPTION: Magic number                   (type 0x05 len 0x06 val 
0x2ce987b9)
11:42:21.813635 Out PPPoE  [ses 94] LCP configure request       (type 
0x01  id 0xe3  len 0x000e)
   LCP OPTION: Magic number                   (type 0x05 len 0x06 val 
0x427fb9b3)
   LCP OPTION: Maximum Receive Unit           (type 0x01 len 0x04 val 0x5dc)


<LCP layer done, NCP layer starts>

11:42:21.824258 Out PPPoE  [ses 94]
11:42:21.861216 Out PPPoE  [ses 94] IPCP configure request       (type 
0x01  id 0xe4  len 0x000a)
   IPCP OPTION: address                        (type 0x03 len 0x06)
11:42:21.863456 Out PPPoE  [ses 94] IPCP configure acknowledge   (type 
0x02  id 0x01  len 0x000a)
   IPCP OPTION: address                        (type 0x03 len 0x06)
11:42:21.874358 Out PPPoE  [ses 94] IPCP configure request       (type 
0x01  id 0xe5  len 0x000a)
   IPCP OPTION: address                        (type 0x03 len 0x06)


<All set...>


11:42:21.908584 Out PPPoE  [ses 94] IP 0.0.0.0 > 224.0.0.13: 0.0.0.0 > 
224.0.0.13:PIMv2, Hello (0), length: 44
11:42:21.909277 Out PPPoE  [ses 94] IP 98.98.98.11 > 224.0.0.1: igmp 
query v2
11:42:21.914132 Out PPPoE  [ses 94] IP 1.1.1.8.syslog > 
192.168.1.111.syslog: SYSLOG local5.info, length: 180
11:42:21.914943 Out PPPoE  [ses 94] IP 1.1.1.8.syslog > 
emanuel_syslog_fw.syslog: SYSLOG local5.info, length: 180
11:42:21.915368 Out PPPoE  [ses 94] IP 1.1.1.8.syslog > 
192.168.1.111.syslog: SYSLOG local5.info, length: 103
11:42:21.915689 Out PPPoE  [ses 94] IP 1.1.1.8.syslog > 
emanuel_syslog_fw.syslog: SYSLOG local5.info, length: 103
11:42:21.916223 Out PPPoE  [ses 94] IP 1.1.1.8.syslog > 
192.168.1.111.syslog: SYSLOG local5.info, length: 183
11:42:21.916592 Out PPPoE  [ses 94] IP 1.1.1.8.syslog > 
emanuel_syslog_fw.syslog: SYSLOG local5.info, length: 183
11:42:21.916981 Out PPPoE  [ses 94] IP 1.1.1.8.syslog > 
192.168.1.111.syslog: SYSLOG local5.info, length: 106
11:42:21.917326 Out PPPoE  [ses 94] IP 1.1.1.8.syslog > 
emanuel_syslog_fw.syslog: SYSLOG local5.info, length: 106
11:42:21.953875 Out PPPoE  [ses 94] IP 98.98.98.11 > 224.0.0.13: 
98.98.98.11 > 224.0.0.13:PIMv2, Hello (0), length: 34
11:42:22.864413 Out PPPoE  [ses 94] LCP echo reply              (type 
0x0a  id 0x01  len 0x000c)
11:42:22.923856 Out PPPoE  [ses 94] IP 98.98.98.11 > 224.0.0.1: igmp 
query v2
^C
41 packets received by filter




<pp0 interface trace>


[edit access]
lunkan at pepsi# run monitor traffic interface pp0 detail layer2-headers
Listening on pp0, capture size 96 bytes

11:47:44.103772  In 0:90:1a:41:76:7e 0:5:85:c0:a4:11 8864 60: PPPoE 
[ses 97] LCP configure request       (type 0x01  id 0xab  len 0x0013)
   LCP OPTION: Maximum Receive Unit           (type 0x01 len 0x04 val 0x5d4)
   LCP OPTION: Authentication protocol        (type 0x03 len 0x05 val 
0xc2 0x23 0x05 )
   LCP OPTION: Magic number                   (type 0x05 len 0x06 val 
0xd1cbfba)
11:47:44.103811  In 0:90:1a:41:76:7e 0:5:85:c0:a4:11 8864 60: PPPoE 
[ses 97] LCP configure acknowledge   (type 0x02  id 0x0a  len 0x000e)
   LCP OPTION: Magic number                   (type 0x05 len 0x06 val 
0x4285fbce)
   LCP OPTION: Maximum Receive Unit           (type 0x01 len 0x04 val 0x5d4)
11:47:44.113822  In 0:90:1a:41:76:7e 0:5:85:c0:a4:11 8864 60: PPPoE 
[ses 97]
11:47:49.094177  In 0:90:1a:41:76:7e 0:5:85:c0:a4:11 8864 60: PPPoE 
[ses 97] LCP configure request       (type 0x01  id 0x01  len 0x000f)
   LCP OPTION: Authentication protocol        (type 0x03 len 0x05 val 
0xc2 0x23 0x05 )
   LCP OPTION: Magic number                   (type 0x05 len 0x06 val 
0x2cee8e32)
11:47:49.104067  In 0:90:1a:41:76:7e 0:5:85:c0:a4:11 8864 60: PPPoE 
[ses 97] LCP configure negative ack  (type 0x03  id 0x0b  len 0x0008)
   LCP OPTION: Maximum Receive Unit           (type 0x01 len 0x04 val 0x5dc)
11:47:51.104447  In 0:90:1a:41:76:7e 0:5:85:c0:a4:11 8864 60: PPPoE 
[ses 97] LCP configure request       (type 0x01  id 0x02  len 0x000f)
   LCP OPTION: Authentication protocol        (type 0x03 len 0x05 val 
0xc2 0x23 0x05 )
   LCP OPTION: Magic number                   (type 0x05 len 0x06 val 
0x2cee8e32)
11:47:51.114215  In 0:90:1a:41:76:7e 0:5:85:c0:a4:11 8864 60: PPPoE 
[ses 97] LCP configure acknowledge   (type 0x02  id 0x0c  len 0x000e)
   LCP OPTION: Magic number                   (type 0x05 len 0x06 val 
0x4285fbce)
   LCP OPTION: Maximum Receive Unit           (type 0x01 len 0x04 val 0x5dc)
11:47:51.114238  In 0:90:1a:41:76:7e 0:5:85:c0:a4:11 8864 60: PPPoE 
[ses 97]
11:47:51.154282  In 0:90:1a:41:76:7e 0:5:85:c0:a4:11 8864 60: PPPoE 
[ses 97]
11:47:51.156712  In 0:90:1a:41:76:7e 0:5:85:c0:a4:11 8864 60: PPPoE 
[ses 97] IPCP configure request       (type 0x01  id 0x01  len 0x000a)
   IPCP OPTION: address                        (type 0x03 len 0x06)
11:47:51.164321  In 0:90:1a:41:76:7e 0:5:85:c0:a4:11 8864 60: PPPoE 
[ses 97] IPCP configure negative ack  (type 0x03  id 0x0d  len 0x000a)
   IPCP OPTION: address                        (type 0x03 len 0x06)
11:47:51.184098  In 0:90:1a:41:76:7e 0:5:85:c0:a4:11 8864 60: PPPoE 
[ses 97] IPCP configure acknowledge   (type 0x02  id 0x0e  len 0x000a)
   IPCP OPTION: address                        (type 0x03 len 0x06)
11:47:52.164331  In 0:90:1a:41:76:7e 0:5:85:c0:a4:11 8864 60: PPPoE 
[ses 97] LCP echo request            (type 0x09  id 0x01  len 0x000c)
11:47:54.744422  In 0:90:1a:41:76:7e 0:5:85:c0:a4:11 8864 60: PPPoE 
[ses 97] LCP echo reply              (type 0x0a  id 0x0f  len 0x0008)
11:48:04.745170  In 0:90:1a:41:76:7e 0:5:85:c0:a4:11 8864 60: PPPoE 
[ses 97] LCP echo reply              (type 0x0a  id 0x10  len 0x0008)
11:48:12.374889  In 0:90:1a:41:76:7e 0:5:85:c0:a4:11 8864 60: PPPoE 
[ses 97] LCP echo reply              (type 0x0a  id 0x11  len 0x0008)
11:48:12.651243  In 0:90:1a:41:76:7e 0:5:85:c0:a4:11 8864 60: PPPoE 
[ses 97] LCP echo request            (type 0x09  id 0x02  len 0x000c)













Hannes Gredler wrote:
> On Sun, Jul 03, 2005 at 08:44:44PM +0200, info at pahgenkemper.org wrote:
> | Hi,
> | 
> | I've spend some hours in trying to get a J2300 working with german telekom
> | (pppoe) without any success and now I'm looking for a running example
> | because the doc is really ugly...
> | 
> | Is there a junos comand like "debug ppp negotiation" ?
> 
> no unfort our kernel-based PPP implementation does not
> have a rich debugging facility; i'd recommend to run
> tcpdump aka "monitor traffic interface <pp-x/y/z> detail"
> do see whats going on at the LCP / IPCP level;
> 
> /hannes
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> http://puck.nether.net/mailman/listinfo/juniper-nsp


-- 
Peter Lundqvist - Beta Engineering
Juniper Networks
Mobile: +46702060472
URL   : http://www.juniper.net


More information about the juniper-nsp mailing list