IPoE Assigning Static Ip's to End users

Hi,

Im struggling to get this to work. Ive tried loads of things.

We are using VYOS and ipoe to auth customers on our FTTP network. But we need to be able allocate users static IP’s if they need them and at the moment i cant figure out how to make it work.

Ive already tried adding to /run/accel-pppd/ipoe.conf

gw-ip-address=192.168.1.1/24

Here is the log :

[2021-08-27 15:29:00.770] ipoe0: 1919d93c4ef4a590: recv [DHCPv4 Discover xid=4c6f9f51 chaddr=cc:19:a8:05:84:8f <Message-Type Discover> <Request-IP 192.168.1.2> <Lease-Time 600> <Request-List Subnet,Router,DNS,Host-Name,Domain-Name,Broadcast,Classless-Route,Vendor-Specific,120,66,67,NTP> <Relay-Agent {Agent-Circuit-ID  PON 0/0/4/15:0.1086} {Agent-Remote-ID Cabinet WiFi}>]
[2021-08-27 15:29:00.782] ipoe0: 1919d93c4ef4a590: recv [RADIUS(1) Access-Accept id=1 <DHCP-Client-IP-Address 192.168.1.60> <Framed-IP-Address 192.168.1.60> <Filter-Id "1024000/1024000">]
[2021-08-27 15:29:00.782] ipoe0: 1919d93c4ef4a590: cc:19:a8:05:84:8f: authentication succeeded
[2021-08-27 15:29:00.782] ipoe0: 1919d93c4ef4a590: send [DHCPv4 Offer xid=4c6f9f51 yiaddr=192.168.1.2 chaddr=cc:19:a8:05:84:8f <Message-Type Offer> <Server-ID 192.168.1.1> <Lease-Time 600> <T1 300> <T2 525> <Router 192.168.1.1> <Subnet 255.255.255.0> <DNS 8.8.8.8,8.8.4.4> <Relay-Agent {Agent-Circuit-ID  PON 0/0/4/15:0.1086} {Agent-Remote-ID Cabinet WiFi}>]
[2021-08-27 15:29:00.791] ipoe0: 1919d93c4ef4a590: recv [DHCPv4 Request xid=4c6f9f51 chaddr=cc:19:a8:05:84:8f <Message-Type Request> <Request-IP 192.168.1.2> <Server-ID 192.168.1.1> <Lease-Time 600> <Request-List Subnet,Router,DNS,Host-Name,Domain-Name,Broadcast,Classless-Route,Vendor-Specific,120,66,67,NTP> <Relay-Agent {Agent-Circuit-ID  PON 0/0/4/15:0.1086} {Agent-Remote-ID Cabinet WiFi}>]
[2021-08-27 15:29:00.791] ipoe0: 1919d93c4ef4a590: ipoe: activate session

It looks like its totally ignoring the radius request for the IP address to be set.

Any ideas how to solve this. I dont mind if it has to be done at low level in the accell conf.

Stewart

Hello @stewyl , also try to add attr-dhcp-client-ip=Framed-IP-Address to [ipoe] section and restart service.

sudo accel-cmd restart -p 2002

No still the same

[2021-08-27 16:13:50.440] ipoe0: 1919d93c4ef4a979: create interface ipoe0 parent eth4.1086
[2021-08-27 16:13:50.440] ipoe0: 1919d93c4ef4a979: send [RADIUS(1) Access-Request id=1 <User-Name "cc:19:a8:05:84:8f"> <NAS-Port 11> <NAS-Port-Id "ipoe0"> <NAS-Port-Type Ethernet> <Calling-Station-Id "cc:19:a8:05:84:8f"> <Called-Station-Id "eth4.1086"> <User-Password 0xa2a67fb93a0b20c04ddfddac1d160d5e>]
[2021-08-27 16:13:50.450] ipoe0: 1919d93c4ef4a979: recv [RADIUS(1) Access-Accept id=1 <DHCP-Client-IP-Address 192.168.1.60> <Framed-IP-Address 192.168.1.60> <Filter-Id "1024000/1024000">]
[2021-08-27 16:13:50.450] ipoe0: 1919d93c4ef4a979: cc:19:a8:05:84:8f: authentication succeeded
[2021-08-27 16:13:50.450] ipoe0: 1919d93c4ef4a979: send [DHCPv4 Offer xid=58497133 yiaddr=192.168.1.2 chaddr=cc:19:a8:05:84:8f <Message-Type Offer> <Server-ID 192.168.1.1> <Lease-Time 600> <T1 300> <T2 525> <Router 192.168.1.1> <Subnet 255.255.255.0> <DNS 8.8.8.8,1.1.1.1> <Relay-Agent {Agent-Circuit-ID  PON 0/0/4/15:0.1086} {Agent-Remote-ID Cabinet WiFi}>]
[2021-08-27 16:13:50.460] ipoe0: 1919d93c4ef4a979: recv [DHCPv4 Request xid=58497133 chaddr=cc:19:a8:05:84:8f <Message-Type Request> <Request-IP 192.168.1.2> <Server-ID 192.168.1.1> <Lease-Time 600> <Request-List Subnet,Router,DNS,Host-Name,Domain-Name,Broadcast,Classless-Route,Vendor-Specific,120,66,67,NTP> <Relay-Agent {Agent-Circuit-ID  PON 0/0/4/15:0.1086} {Agent-Remote-ID Cabinet WiFi}>]
[2021-08-27 16:13:50.460] ipoe0: 1919d93c4ef4a979: ipoe: activate session

here is the ipoe config file

### generated by ipoe.py ###
[modules]
log_syslog
ipoe
shaper
ipv6pool
ipv6_nd
ipv6_dhcp
radius
ippool

[core]
thread-count=12

[log]
copy=1
level=5
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

[ipoe]
verbose=1
username=lua:username
lua-file=/config/scripts/ipoeusername.lua
password=1234
interface=eth4.1086,shared=1,mode=L2,ifcfg=1,range=192.168.1.0/24,start=dhcpv4,ipv6=1
proxy-arp=1
attr-dhcp-client-ip=DHCP-Client-IP-Address

[dns]
dns1=8.8.8.8
dns2=1.1.1.1


[ipv6-nd]
verbose=1

[ipv6-dhcp]
verbose=1


[radius]
verbose=1
dictionary=/usr/share/accel-ppp/radius/dictionary
server=172.16.55.105,testing123,auth-port=1812,acct-port=1813,req-limit=0,fail-time=0


acct-timeout=3
timeout=3
max-try=3



[cli]
tcp=127.0.0.1:2002

any ideas what im doing wrong?

Bump, still having the same issue.