pppoe on vlan interface question

PPPoE related questions
Post Reply
jalee
Posts: 32
Joined: 01 Oct 2017, 16:42

pppoe on vlan interface question

Post by jalee »

Dear All,
I had create 4K vlan interface on the server, but accel-ppp just can create 3445 pppoe session "one pppoe for one vlan-id", I had try to create pppoe session on 3446 ~ 4000 vlan_id, it is fine, so problem is on accel-ppp code.
If I no used vlan interface, I can create 16K pppoe session on my server.

my pppoe client is used tester "N2X". can you tell me what's problem? how can I fix it? :?: :?: :?:

Thanks,


Jalee
jalee
Posts: 32
Joined: 01 Oct 2017, 16:42

Re: pppoe on vlan interface question

Post by jalee »

One more thing, I used version is 1.11.2.
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: pppoe on vlan interface question

Post by Dmitry »

i don't understand "accel-ppp just can create 3445 pppoe session" and "I had try to create pppoe session on 3446 ~ 4000 vlan_id, it is fine"
so, how do you test ?
you manualy created 4k vlans and specified them in config and only 1-3445 are working ?
jalee
Posts: 32
Joined: 01 Oct 2017, 16:42

Re: pppoe on vlan interface question

Post by jalee »

Hi Dmitry,
Yes, only 1-3445 vlans are working. please help check.

Thanks,

my accel-ppp.conf as below:

[modules]
log_file
pppoe
auth_pap
chap-secrets
ippool
pppd_compat
#net-accel-dp

[core]
log-error=/var/log/accel-ppp/core.log
thread-count=8

[common]
#single-session=replace
#sid-case=upper
#sid-source=seq
#max-sessions=1000

[ppp]
verbose=1
min-mtu=1280
mtu=1400
mru=1400
##
accomp=deny
##
pcomp=deny
ccp=0
check-ip=0
##check-ip=1
#mppe=require
mppe=deny
ipv4=require
ipv6=deny
##ipv6-intf-id=0:0:0:1
##ipv6-peer-intf-id=0:0:0:2
##ipv6-accept-peer-intf-id=1
lcp-echo-interval=90
lcp-echo-failure=2
#lcp-echo-timeout=120
unit-cache=1000
#unit-preallocate=1

[auth]
#any-login=0
#noauth=0
timeout=5

[pppoe]
verbose=1
#ac-name=xxx
#service-name=yyy
#pado-delay=0
#pado-delay=0,100:100,200:200,-1:500
called-sid=mac
#tr101=1
#padi-limit=0
#ip-pool=pppoe
#sid-uppercase=0
vlan-mon=eth1.1,1-4000
#vlan-timeout=60
vlan-name=%I.%N
#interface=eth1,padi-limit=1000,net=accel-dp
interface=re:eth1\.[1-4000]
interface=eth1

[dns]
dns1=168.95.1.1
dns2=168.95.192.1

[client-ip-range]
10.0.0.0/8

[ip-pool]
gw-ip-address=100.64.255.255
attr=Framed-Pool
192.168.0.2-255
192.168.1.1-255,name=pool1
192.168.2.1-255,name=pool2
192.168.3.1-255,name=pool3
192.169.0.0/16

[log]
log-file=/var/log/accel-ppp/accel-ppp.log
log-emerg=/var/log/accel-ppp/emerg.log
log-fail-file=/var/log/accel-ppp/auth-fail.log
log-debug=/var/log/accel-ppp/debug.log
copy=1
level=3

[log-pgsql]
conninfo=user=log
log-table=log

[pppd-compat]
#ip-pre-up=/etc/ppp/ip-pre-up
ip-up=/etc/ppp/ip-up
ip-down=/etc/ppp/ip-down
#ip-change=/etc/ppp/ip-change
radattr-prefix=/var/run/radattr
verbose=1

[pap-secrets]
pap-secrets=/etc/ppp/pap-secrets

[cli]
verbose=1
telnet=127.0.0.1:2000
tcp=127.0.0.1:2001
#password=123

[snmp]
master=0
agent-name=accel-ppp

[connlimit]
limit=200/s
burst=3
timeout=30

[accel-dp]
socket=/var/run/accel-dp.sock
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: pppoe on vlan interface question

Post by Dmitry »

try accel-cmd pppoe interface show
do you see all 4k interfaces ?
jalee
Posts: 32
Joined: 01 Oct 2017, 16:42

Re: pppoe on vlan interface question

Post by jalee »

only saw 3542 interface

BR,

inet@250-50-client:~$
inet@250-50-client:~$ ifconfig | grep eth1. | wc -l
4095
inet@250-50-client:~$ accel-cmd pppoe interface show | wc -l
3542
inet@250-50-client:~$
inet@250-50-client:~$ accel-cmd pppoe interface show | more
interface: connections: state:
-----------------------------------
eth1.4093 0 active
eth1.3837 0 active
eth1.3581 0 active
eth1.3325 0 active
eth1.3069 0 active
eth1.2813 0 active
eth1.2557 0 active
eth1.2301 0 active
eth1.2045 0 active
eth1.1789 0 active
eth1.1533 0 active
eth1.1277 0 active
eth1.1021 0 active
eth1.253 0 active
eth1.4094 0 active
eth1.3838 0 active
eth1.3582 0 active
eth1.3326 0 active
eth1.3070 0 active
eth1.2814 0 active
eth1.2558 0 active
eth1.2302 0 active
eth1.2046 0 active
eth1.1790 0 active
eth1.1534 0 active
eth1.1278 0 active
eth1.1022 0 active
eth1.254 0 active
eth1.3839 0 active
eth1.3583 0 active
eth1.3327 0 active
eth1.3071 0 active
eth1.2815 0 active
eth1.2559 0 active
eth1.2303 0 active
eth1.2047 0 active
eth1.1791 0 active
eth1.1535 0 active
eth1.1279 0 active
eth1.1023 0 active
eth1.255 0 active
eth1.3840 0 active
eth1.3584 0 active
eth1.3328 0 active
eth1.3072 0 active
eth1.2816 0 active
eth1.2560 0 active
eth1.2304 0 active
eth1.2048 0 active
eth1.1792 0 active
eth1.1536 0 active
eth1.1280 0 active
....skip
inet@250-50-client:~$ ifconfig eth1.1
eth1.1 Link encap:Ethernet HWaddr 52:54:00:82:65:22
inet6 addr: fe80::5054:ff:fe82:6522/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6662 errors:0 dropped:0 overruns:0 frame:0
TX packets:643 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:280140 (280.1 KB) TX bytes:29002 (29.0 KB)
inet@250-50-client:~$ ifconfig eth1.4094
eth1.4094 Link encap:Ethernet HWaddr 52:54:00:82:65:22
inet6 addr: fe80::5054:ff:fe82:6522/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:738 (738.0 B)
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: pppoe on vlan interface question

Post by Dmitry »

your regular expression is invalid
try this: interface=re:eth1\.
jalee
Posts: 32
Joined: 01 Oct 2017, 16:42

Re: pppoe on vlan interface question

Post by jalee »

Thanks Dmitry

is work.

BR,

inet@250-50-client:~# accel-cmd pppoe interface show | grep eth1. | wc -l
4095
inet@250-50-client:~#
Post Reply