[RP-PPPoE] 回复: QinQ with rp-pppoe

守得云开 axinchan at qq.com
Wed Nov 12 20:32:22 EST 2014


------------------ 原始邮件 ------------------
发件人: "Adrian Ban";<adrian at abtelecom.ro>;
发送时间: 2014年11月11日(星期二) 晚上10:38
收件人: "For users of RP-PPPoE client/server software"<rp-pppoe at lists.roaringpenguin.com>; 

主题: Re: [RP-PPPoE] QinQ with rp-pppoe



                   Hi,
     
     First at all using QinQ sounds strange for me. Only if you have a     lease line which ISP granted to you a MTU more than 1500 to create     VLANs under certain VLAN.
     From what you said there "create 1000 QinQ VLAN on interface eth0"     sound more like: "create dot1q VLAN on interface eth0"
     To create QinQ under linux you have to do something like this:
     eth0 -> eth0.100 (transport VLAN) with MTU more that 1500
     under eth0.100 you will create 1000 of other VLANs, like
     eth0.100 -> eth0.100.123
     eth0.100 -> eth0.100.124
     .. so on.
     
     If you want 1000 VLAN ask first if the system supports too many     VLANs and will not overloads the OS. Good NICs can handle hardware     VLANs so you will get an offload.
     
     Next you can start for each interface one pppoe-server instance with     -I argument. But use always offset argument -o and also -N argument.     For example:
     
     root      5642  0.0  0.0   4264   120 ?        S    15:58   0:00     /usr/sbin/pppoe-server -k -S ABTelecom -S DMNetwork -L 10.0.0.1 -R     10.0.0.10 -N 256 -o 0 -I eth2
     root      5676  0.0  0.0   4264   500 ?        S    15:58   0:00     /usr/sbin/pppoe-server -k -S ABTelecom -S DMNetwork -L 10.0.0.1 -R     10.0.0.10 -N 256 -o 256 -I tap1
     root      5702  0.0  0.0   4264   504 ?        S    15:58   0:00     /usr/sbin/pppoe-server -k -S ABTelecom -S DMNetwork -L 10.0.0.1 -R     10.0.0.10 -N 256 -o 512 -I veth-toInternet
     root      5727  0.0  0.0   4264   120 ?        S    15:58   0:00     /usr/sbin/pppoe-server -k -S ABTelecom -S DMNetwork -L 10.0.0.1 -R     10.0.0.10 -N 256 -o 768 -I eth0.990
     
     I make a script which is searching for available ethernet interfaces     (also with configurable exclude/include interface) and calculate     using the maximum number of sessions per process (-N) the next     offset.
     
=========
something like eth0+ in iptables is a suggestion! 
eth0+ matches all interface begin with eth0, ‍
eth0.+ matches eth0.100 eth0.101 eth0.100.100 eth0.100.101 , all vlans on eth0~!


     Regards,
     Adrian
     
     
     On 11/11/2014 10:21 AM, hbreschner       wrote:
     
                   hi,
         
         without discussing why you are using 1000 vlan networks ...
         
         a single PPPoE Server process is only listing to the devices         that you gave it with -I, but you can add several interfaces         with several -I parameters.
         
         I am working with several instances each dedicated for a single         VLAN.
         So, I am not sure what is the max of interfaces that you can add         to a single process with the -I parameter.
         You may need to look into the code to find any limit.
         
         Please post here what is your finding regarding the max amount         of interfaces you could add.
         
         Best,
         Christian
         
         On 11/08/2014 05:02 PM, 守得云开 wrote:
       
       I am trying QinQ(802.1adVLAN) on Linux 3.10 with         rp-pppoe         
         
         if i create 1000 QingQ VLAN on interface eth0, I have to           make pppoe-server listen on 1000 interface(with 1000 -I           parameters‍)?
         
         
         can i listen to just eth0, or any suggestions?
         
                  
         _______________________________________________ RP-PPPoE mailing list RP-PPPoE at lists.roaringpenguin.com http://lists.roaringpenguin.com/cgi-bin/mailman/listinfo/rp-pppoe               
       
              
       _______________________________________________ RP-PPPoE mailing list RP-PPPoE at lists.roaringpenguin.com http://lists.roaringpenguin.com/cgi-bin/mailman/listinfo/rp-pppoe           
     -- 
       Adrian Ban
       IP/MPLS Engineer
         ----------------------------------------
         mobil: +40788388190 / +32484849697
         web: www.abtelecom.ro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.roaringpenguin.com/pipermail/rp-pppoe/attachments/20141113/33bc16ed/attachment.html>


More information about the RP-PPPoE mailing list