User Tools

Site Tools


documentation:examples:pppoe_and_l2tp_lab

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
documentation:examples:pppoe_and_l2tp_lab [2021/04/01 11:42] – [Router 1] olivierdocumentation:examples:pppoe_and_l2tp_lab [2021/04/01 11:47] – [LAC (R2)] olivier
Line 63: Line 63:
  
  
-==== Router 2 ====+==== Router 2 : BAS and LAC ====
  
-Router 2 is configured as a BAS and LAC (forward PPP between PPPoE and L2TP).+Router 2 forwards PPP between PPPoE and L2TP.
  
-=== Modify configuration === 
  
-Set the base parameters: 
 <code> <code>
 sysrc hostname=R2 sysrc hostname=R2
Line 90: Line 88:
 </code> </code>
  
-==== Router 3 ==== +==== Router 3 LNS (L2TP server) ====
- +
-Router 3 is configured as a LNS (L2TP server).+
  
 <code> <code>
 sysrc hostname=R3 sysrc hostname=R3
 sysrc ifconfig_vtnet1="10.0.23.3/24" sysrc ifconfig_vtnet1="10.0.23.3/24"
-sysrc ifconfig_vnet2="88.88.88.4/24"+sysrc ifconfig_vtnet2="88.88.88.4/24"
 sysrc mpd_enable=YES sysrc mpd_enable=YES
 sysrc mpd_flags="-b -s ppp" sysrc mpd_flags="-b -s ppp"
Line 310: Line 306:
 <code> <code>
 cat /var/log/ppp.log                                                                                                                           cat /var/log/ppp.log                                                                                                                          
-Mar  8 10:55:34 R2 newsyslog[1004]: logfile first created +Apr  11:47:11 R2 ppp[54126]: Incoming PPPoE connection request via vtnet0: for service "*" from 58:9c:fc:01:02:01 
-Mar  8 11:36:05 R2 ppp: Multi-link PPP daemon for FreeBSD +Apr  11:47:11 R2 ppp[54126]: [L1-2] Accepting PPPoE connection 
-Mar  8 11:36:05 R2 ppp:   +Apr  11:47:11 R2 ppp[54126]: [L1-2] Link: Matched action 'forward "L2"' 
-Mar  8 11:36:05 R2 ppp: process 3432 started, version 5.5 (root@bigdev.bsdrp.net 04:44  3-Apr-2011) +Apr  11:47:11 R2 ppp[54126]: [R-L1-2] Rep: INCOMING event from L1-2 (0) 
-Mar  11:36:05 R2 ppp: Label 'startup' not found +Apr  11:47:11 R2 ppp[54126]: L2TP: Initiating control connection 0x801e2d610 0.0.0.0 0 <-> 10.0.23.3 1701 
-Mar  8 11:36:05 R2 ppp: PPPoE: waiting for connection on em0:, service "*" +Apr  11:47:11 R2 ppp[54126]: [L1-2] PPPoE: connection successful 
-Mar  8 11:37:36 R2 ppp: Incoming PPPoE connection request via em0: for service "*" from aa:aa:00:00:01:12 +Apr  11:47:11 R2 ppp[54126]: L2TP: Control connection 0x801e2d610 10.0.23.2 31124 <-> 10.0.23.3 1701 connected 
-Mar  11:37:36 R2 ppp: [L1-2] Accepting PPPoE connection +Apr  11:47:11 R2 ppp[54126]: [L2-3] L2TP: Incoming call #1650000 via control connection 0x801e2d610 initiated 
-Mar  11:37:36 R2 ppp: [L1-2] Link: Matched action 'forward "L2"' +Apr  11:47:11 R2 ppp[54126]: [L2-3] L2TP: Call #1650000 connected 
-Mar  11:37:36 R2 ppp: [R-L1-2] Rep: INCOMING event from L1-2 (0) +Apr  11:47:11 R2 ppp[54126]: [R-L1-2] Rep: UP event from L2-3 (1) 
-Mar  11:37:36 R2 ppp: L2TP: Initiating control connection 0x801c8d110 0.0.0.0 0 <-> 10.0.23.3 1701 +Apr  11:47:11 R2 ppp[54126]: [R-L1-2] Rep: UP event from L1-2 (0)
-Mar  11:37:36 R2 ppp: [L1-2] PPPoE: connection successful +
-Mar  11:37:36 R2 ppp: L2TP: Control connection 0x801c8d110 10.0.23.2 37619 <-> 10.0.23.3 1701 connected +
-Mar  11:37:36 R2 ppp: [L2-3] L2TP: Incoming call #6190000 via control connection 0x801c8d110 initiated +
-Mar  11:37:36 R2 ppp: [L2-3] L2TP: Call #6190000 connected +
-Mar  11:37:36 R2 ppp: [R-L1-2] Rep: UP event from L2-3 (1) +
-Mar  11:37:36 R2 ppp: [R-L1-2] Rep: UP event from L1-2 (0)+
 </code> </code>
  
documentation/examples/pppoe_and_l2tp_lab.txt · Last modified: 2021/04/01 11:51 by olivier

Except where otherwise noted, content on this wiki is licensed under the following license: BSD 2-Clause
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki