Page MenuHomeVyOS Platform

IPoE-server add the ability to start a session with unclassified packet
In progress, NormalPublicFEATURE REQUEST

Description

IPoE-server add the ability to start a session with an unclassified packet.
Currently, the session can be started only by DHCP packet start=dhcpv4
https://github.com/vyos/vyos-1x/blob/df0ef8a25f8f431ed9216b307f817a25d280acd8/data/templates/accel-ppp/ipoe.config.j2#L58

Needs to add start=up option
For sessions, start with the unclassified packet (start=up); the username is the client's IP address.

start=dhcpv4|up|auto

    By default is not defined. Important to set this.
    Parameter specifies which way session starts:

        dhcpv4 - start on DHCP Discover.
        up - unclassified packet.
        auto - means automatically start session with username=interface name. Use it with conjunction vlan_mon.

Proposed CLI:

set service ipoe-server interface eth1 start-session <dhcpv4|unclassified-packet>

Details

Version
-
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)

Event Timeline

Viacheslav triaged this task as Normal priority.
Viacheslav changed the task status from Open to In progress.Fri, Nov 22, 11:32 AM
Viacheslav claimed this task.

PR https://github.com/vyos/vyos-1x/pull/4206

set service ipoe-server authentication mode 'radius'
set service ipoe-server authentication radius server 127.0.0.1 key 'vyos-secret'
set service ipoe-server client-ip-pool POOL range '100.64.0.0/22'
set service ipoe-server gateway-address '100.64.0.1/22'
set service ipoe-server interface eth1 mode 'l2'
set service ipoe-server interface eth1 network 'shared'
set service ipoe-server interface eth1 start-session 'unclassified-packet'
set service ipoe-server name-server '1.1.1.1'
set service ipoe-server name-server '8.8.8.8'

Check config:

vyos@r14:~$ cat /run/accel-pppd/ipoe.conf | grep interface
interface=eth1,shared=1,mode=L2,ifcfg=1,start=up,ipv6=1