Page MenuHomeVyOS Platform

IPoE server add option 'next-pool' for named ip pools
Closed, ResolvedPublicFEATURE REQUEST

Description

In situations with multiple named IP pools, it is required the option next to be sure that if IP addresses ended in one pool, then they would begin to be allocated from the next named pool

Proposed option next-pool

set service ipoe-server client-ip-pool name first-pool subnet 192.0.2.0/25
set service ipoe-server client-ip-pool name first-pool gateway-address 192.0.2.1
set service ipoe-server client-ip-pool name first-pool next-pool second-pool

set service ipoe-server client-ip-pool name second-pool subnet 203.0.113.0/25
set service ipoe-server client-ip-pool name second-pool next-pool 'third-pool'
set service ipoe-server client-ip-pool name second-pool gateway-address 203.0.113.1

set service ipoe-server client-ip-pool name third-pool gateway-address '198.51.100.1'
set service ipoe-server client-ip-pool name third-pool subnet '198.51.100.0/24'

Expected configuration (ordering is important)

[ipoe]
ip-pool=first-pool
gw-ip-address=192.0.2.1/25
gw-ip-address=203.0.113.1/25
gw-ip-address=198.51.100.1/24

[ip-pool]
198.51.100.1/24,name=third-pool
203.0.113.0/25,name=second-pool,next=third-pool
192.0.2.0/25,name=first-pool,next=second-pool
gw-ip-address=192.0.2.1/25
gw-ip-address=203.0.113.1/25
gw-ip-address=198.51.100.1/24

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)

Event Timeline

Viacheslav renamed this task from IPoE server add option 'next-pool' to IPoE server add option 'next-pool' for named ip pools.Mar 20 2023, 12:11 PM

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

set service ipoe-server authentication mode 'noauth'
set service ipoe-server client-ip-pool name first-pool gateway-address '192.0.2.1'
set service ipoe-server client-ip-pool name first-pool next-pool 'second-pool'
set service ipoe-server client-ip-pool name first-pool subnet '192.0.2.0/25'
set service ipoe-server client-ip-pool name second-pool gateway-address '203.0.113.1'
set service ipoe-server client-ip-pool name second-pool next-pool 'third-pool'
set service ipoe-server client-ip-pool name second-pool subnet '203.0.113.0/25'
set service ipoe-server client-ip-pool name third-pool gateway-address '198.51.100.1'
set service ipoe-server client-ip-pool name third-pool subnet '198.51.100.0/24'
set service ipoe-server interface eth1

ipoe config

[ipoe]
verbose=1
interface=eth1,shared=1,mode=L2,ifcfg=1,start=dhcpv4,ipv6=1
noauth=1
ip-pool=first-pool
gw-ip-address=192.0.2.1/25
gw-ip-address=203.0.113.1/25
gw-ip-address=198.51.100.1/24
proxy-arp=1

[ip-pool]
198.51.100.0/24,name=third-pool
203.0.113.0/25,name=second-pool,next=third-pool
192.0.2.0/25,name=first-pool,next=second-pool
gw-ip-address=198.51.100.1/24
gw-ip-address=203.0.113.1/25
gw-ip-address=192.0.2.1/25
Viacheslav changed the task status from Open to In progress.Mar 21 2023, 3:13 PM
Viacheslav claimed this task.
Viacheslav moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.