IPoE Centos

IPoE related questions
manyax
Posts: 20
Joined: 24 Jun 2016, 15:41

IPoE Centos

Post by manyax »

Hi,
Is it possible to compile ipoe driver on centos 6.8 or 7 ?
I have tried several times .. but no luck. Actually I only succeeded to install it on Debian wheezy 7.11 (3.2.0-4-amd64).


On the last try.
CentOS Linux release 7.2.1511 (Core)
3.10.0-327.el7.x86_64
Got error
[100%] Generating driver/ipoe.ko
make[3]: *** No rule to make target `modules'. Stop.
make[2]: *** [drivers/ipoe/driver/ipoe.ko] Error 2
make[1]: *** [drivers/ipoe/CMakeFiles/ipoe_drv.dir/all] Error 2
make: *** [all] Error 2
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: IPoE Centos

Post by Dmitry »

hi,
you probably specified wrong kernel headers
manyax
Posts: 20
Joined: 24 Jun 2016, 15:41

Re: IPoE Centos

Post by manyax »

It is searching for 'modules'

Updating goal targets....
File `modules' does not exist.
Must remake target `modules'.
make[3]: *** No rule to make target `modules'. Stop.
make[2]: *** [drivers/ipoe/driver/ipoe.ko] Error 2

There are no modules in kernel-devel or in headers.
manyax
Posts: 20
Joined: 24 Jun 2016, 15:41

Re: IPoE Centos

Post by manyax »

Dimitry.. without searching I assume you are one of the developers:) I want to congratulate you for this nice tool .. I know it's not the place to do that :)
Regarding the topic.
I don't mind using debian for this project, I'm using vyos (debian based) anyway. I just found a lot of benefits using accel-ppp ipoe .
I still have concerns regarding how stable it is and if it can be used in production.
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: IPoE Centos

Post by Dmitry »

so what KDIR you specify ?
manyax
Posts: 20
Joined: 24 Jun 2016, 15:41

Re: IPoE Centos

Post by manyax »

/usr/src/kernels/3.10.0-327.22.2.el7.x86_64/
/usr/src/kernels/3.10.0-327.22.2.el7.x86_64/include/
/lib/modules/3.10.0-327.22.2.el7.x86_64/build/
/lib/modules/3.10.0-327.22.2.el7.x86_64/build/include/

When I use /usr/src/kernels/3.10.0-327.22.2.el7.x86_64/include/config/
It reply that the ipoe.ko is build .. but it isn't.

Reading makefiles...
Updating goal targets....
Successfully remade target file `drivers/ipoe/driver/ipoe.ko'.
Must remake target `drivers/ipoe/CMakeFiles/ipoe_drv'.
Successfully remade target file `drivers/ipoe/CMakeFiles/ipoe_drv'.
Must remake target `ipoe_drv'.
Successfully remade target file `ipoe_drv'.
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: IPoE Centos

Post by Dmitry »

so you have to use /usr/src/kernels/3.10.0-327.22.2.el7.x86_64/
show your entire cmake command
manyax
Posts: 20
Joined: 24 Jun 2016, 15:41

Re: IPoE Centos

Post by manyax »

cmake -DKDIR=/usr/src/kernels/3.10.0-327.22.2.el7.x86_64/ -DCMAKE_INSTALL_PREFIX=/usr/ -DRADIUS=TRUE -DNETSNMP=TRUE -DSHAPER=TRUE -DLOG_PGSQL=FALSE -DLUA=TRUE -DBUILD_IPOE_DRIVER=TRUE ../accel-ppp-1.9.0/
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: IPoE Centos

Post by Dmitry »

i tried to build it against that centos kernel and found many incompatibilities with vanilla 3.10 kernel
btw, centos kernel is known as mix of various patches, so it is hard to support it
i'd suggest you to use debian
manyax
Posts: 20
Joined: 24 Jun 2016, 15:41

Re: IPoE Centos

Post by manyax »

Thank's for your time
How about my concerns regarding stability, availability? Can it be trusted to be used in small isp env ? Do you have plans to support ipv6 on ipoe ?
Now I'm using transport links to route /29 .. /28 subnets and a dhcp option82 aware server. The clients get the ip with the circuit-id tag. But it's starting to be impossible to manage, I should have used radius .. but .. but :)
Post Reply