Page MenuHomeVyOS Platform

Vlan-range vlan_mon not working for ipoe service
Closed, InvalidPublicBUG

Description

Configuration to reproduce:

set service ipoe-server authentication mode 'noauth'
set service ipoe-server interface eth2 client-subnet '192.168.0.0/24'
set service ipoe-server interface eth2 network-mode 'L2'
set service ipoe-server interface eth2 vlan-range '2-305'

ipoe section

[ipoe]
verbose=1
interface=eth2,shared=1,mode=L2,ifcfg=1,range=192.168.0.0/24,start=dhcpv4,ipv6=1
noauth=1
proxy-arp=1

Expected interface range + vlan_mon

...
interface=re:^eth2\.([2-9]|[1-9]\d|[1-2]\d{2}|30[0-5])$
vlan-mon=eth2,2-305

Also we don't see any values for vlan_mon

# commit
[ service ipoe-server ]
{'auth_interfaces': [],
 'auth_mode': 'noauth',
 'chap_secrets_file': '/run/accel-pppd/ipoe.chap-secrets',
 'client_ipv6_delegate_prefix': [],
 'client_ipv6_pool': [],
 'dnsv4': [],
 'dnsv6': [],
 'interfaces': [{'ifcfg': '1',
                 'mode': 'L2',
                 'name': 'eth2',
                 'range': '192.168.0.0/24',
                 'sess_start': 'dhcpv4',
                 'shared': '1',
                 'vlan_mon': []}],

Details

Difficulty level
Normal (likely a few hours)
Version
VyOS 1.3.1-S1, VyOS 1.4-rolling-202204080957
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav changed Version from VyOS 1.3.1-S1 to VyOS 1.3.1-S1, VyOS 1.4-rolling-202204080957.Apr 8 2022, 9:02 PM

I missed option network vlan:

set service ipoe-server interface eth2 network 'vlan'

configs looks good:

[ipoe]
verbose=1
interface=re:eth2\.\d+,shared=0,mode=L2,ifcfg=1,range=192.168.0.0/24,start=dhcpv4,ipv6=1
username=ifname
password=csid
proxy-arp=1

vlan-mon=eth2,2-305